/* =========================================
   PRISMS News Lightbox (图片放大预览) 样式
   ========================================= */

#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
}

#image-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000000;
    transition: color 0.3s ease;
}

#image-modal .modal-close:hover {
    color: #D4AF37; /* 悬停变为金色 */
}

#image-modal .modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

/* 缩略图鼠标效果 */
.img-frame img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.img-frame img:hover {
    opacity: 0.85;
}

/* 缩放进场动画 */
@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}