/* Image Modal Popup Styles */

/* Image Viewer Modal Overlay */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.image-viewer-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Close Button */
.image-viewer-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-viewer-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Modal Content */
.image-viewer-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Modal Image */
.image-viewer-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    opacity: 0;
}

.image-viewer-content img.loaded {
    opacity: 1;
}

.image-viewer-content img:hover {
    /* No hover effect - static image */
}

/* Image Caption */
.image-viewer-caption {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
    max-width: 600px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Loading State - No Animation */
.image-viewer-content img:not(.loaded) {
    opacity: 0.8;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .image-viewer-container {
        max-width: 95vw;
        max-height: 95vh;
        padding: 20px;
    }
    
    .image-viewer-close {
        top: -40px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .image-viewer-content img {
        max-height: 70vh;
        border-radius: 8px;
    }
    
    .image-viewer-caption {
        font-size: 14px;
        margin-top: 15px;
        padding: 0 10px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .image-viewer-container {
        max-width: 98vw;
        max-height: 98vh;
        padding: 15px;
    }
    
    .image-viewer-close {
        top: -35px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .image-viewer-content img {
        max-height: 60vh;
    }
    
    .image-viewer-caption {
        font-size: 13px;
        margin-top: 10px;
    }
}

/* Modal Animation Effects - Removed Lighting */
.image-viewer-overlay {
    /* No animation - instant display */
}

.image-viewer-overlay.active {
    /* No animation - instant display */
}

/* Modal Content Animation - Removed Lighting */
.image-viewer-container {
    /* No animation - instant display */
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-viewer-content img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-viewer-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .image-viewer-close {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .image-viewer-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .image-viewer-overlay,
    .image-viewer-container,
    .image-viewer-close,
    .image-viewer-content img {
        transition: none;
        animation: none;
    }
    
    .image-viewer-content img:not(.loaded) {
        animation: none;
        opacity: 1;
    }
}
