/* ══════════════════════════════════════════════
   AvyaEvents Lightbox Image Viewer
   Full-screen overlay for browsing images
   ══════════════════════════════════════════════ */

/* ── Full-Screen Overlay ── */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-overlay.active {
    display: flex;
}

/* ── Close Button ── */
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10002;
    line-height: 1;
    padding: 4px 8px;
}
.lightbox-close:hover {
    opacity: 1;
}

/* ── Image Container ── */
.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
    flex-shrink: 0;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Navigation Arrows ── */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
    line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev {
    left: 16px;
}
.lightbox-next {
    right: 16px;
}

/* ── Caption Bar ── */
.lightbox-caption-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
    max-width: 90vw;
}
.lightbox-caption {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}
.lightbox-counter {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
}

/* ── Responsive: Mobile ── */
@media (max-width: 480px) {
    .lightbox-image {
        max-width: 96vw;
        max-height: 75vh;
    }
    .lightbox-image-container {
        max-width: 96vw;
        max-height: 75vh;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
    .lightbox-close {
        top: 10px;
        right: 12px;
        font-size: 1.6rem;
    }
    .lightbox-caption-bar {
        padding: 8px 12px;
        gap: 10px;
        flex-direction: column;
    }
    .lightbox-caption {
        font-size: 0.82rem;
    }
    .lightbox-counter {
        font-size: 0.72rem;
    }
}

/* ── Responsive: Tablet ── */
@media (min-width: 481px) and (max-width: 768px) {
    .lightbox-image {
        max-width: 92vw;
        max-height: 78vh;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
}
