/*
 * ETERNITUM - Lightbox Gallery Component
 * Beautiful fullscreen photo viewer with keyboard navigation
 */

/* ========== LIGHTBOX OVERLAY ========== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== LIGHTBOX CONTENT ========== */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========== NAVIGATION ========== */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    z-index: 10001;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========== THUMBNAILS ========== */
.lightbox-thumbnails {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 10001;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    opacity: 1;
    border-color: #D4AF37;
}

/* ========== COUNTER ========== */
.lightbox-counter {
    position: fixed;
    top: 20px;
    left: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 10001;
}

/* ========== KEYBOARD HINT ========== */
.lightbox-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    z-index: 10001;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 60px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-thumbnails {
        display: none;
    }
}