/* ============================================
   LIGHTBOX GALLERY STYLES
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 184, 217, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(0, 184, 217, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 184, 217, 0.5);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Lightbox Caption */
.lightbox-caption {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 80%;
    text-align: center;
    border: 2px solid rgba(0, 184, 217, 0.3);
    z-index: 10002;
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 184, 217, 0.9);
    color: var(--color-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10002;
}

/* ============================================
   VIDEO MODAL (UNIFIED STYLE)
   ============================================ */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 184, 217, 0.2), transparent 55%),
                rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 1.5rem;
    z-index: 11001;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 184, 217, 0.5);
    background: radial-gradient(circle at top, rgba(0, 184, 217, 0.15), rgba(0, 0, 0, 0.95));
    animation: zoomIn 0.3s ease;
}

.video-modal-inner {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.video-modal-inner iframe,
.video-modal-inner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11002;
    transition: all 0.25s ease;
}

.video-modal-close:hover {
    background: rgba(0, 184, 217, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 184, 217, 0.6);
}

@media (max-width: 768px) {
    .video-modal-content {
        margin: 0 1rem;
        border-radius: 14px;
    }

    .video-modal-inner {
        padding-top: 62.5%;
    }

    .video-modal-close {
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    #lightbox-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 70px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        max-width: 90%;
    }
    
    .lightbox-counter {
        bottom: 15px;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 480px) {
    #lightbox-image {
        max-width: 100vw;
        max-height: 60vh;
        border-radius: 0;
    }
    
    .lightbox-caption {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}
