/**
 * static/css/lightbox.css
 * Lightbox modal styling
 */

/* Lightbox container inherits from .modal-content */
#lightbox {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Image container */
#lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Controls container at bottom */
#lightbox-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Counter text */
#lightbox-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

/* Navigation and download buttons */
.lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.lightbox-btn:active {
    transform: scale(0.95);
}

/* Previous/Next buttons */
#lightbox-prev,
#lightbox-next {
    padding: 8px 12px;
    font-size: 18px;
    min-width: 44px;
    min-height: 44px;
}

/* Close button */
#lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 10000;
}

#lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Download buttons */
#lightbox-download-one,
#lightbox-download-all {
    background: rgba(33, 150, 243, 0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#lightbox-download-one:hover,
#lightbox-download-all:hover {
    background: rgba(33, 150, 243, 1);
    color: white;
    text-decoration: none;
}

/* Responsive: smaller screens */
@media (max-width: 768px) {
    #lightbox {
        padding: 12px;
    }

    #lightbox-img {
        max-width: 95vw;
        max-height: 80vh;
    }

    #lightbox-controls {
        margin-top: 16px;
        gap: 8px;
    }

    .lightbox-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    #lightbox-prev,
    #lightbox-next {
        min-width: 36px;
        min-height: 36px;
    }

    #lightbox-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}