/* ==========================================================================
   TERRA72 - LIGHTBOX POPUP GALLERY STYLES
   ========================================================================== */

#t72-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 10, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    box-sizing: border-box;
    padding: 20px;
    user-select: none;
}

#t72-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Header / Close */
.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(5px);
}

.lightbox-close-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #000000;
    border-color: #d4af37;
    transform: rotate(90deg) scale(1.1);
}

/* Lightbox Content Container */
.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.25);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#t72-lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

/* Navigation Controls */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #000000;
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Lightbox Caption & Counter */
.lightbox-footer {
    margin-top: 16px;
    text-align: center;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}

.lightbox-caption {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 4px;
}

.lightbox-counter {
    font-size: 13px;
    color: #d4af37;
    font-family: 'Roboto Mono', monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .lightbox-close-btn {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .lightbox-img {
        max-width: 95vw;
        max-height: 72vh;
    }
}
