/* =========================================================
   SmileAge — Lightbox (shared component)
   -----------------------------------------------------------
   Scope: a reusable image-lightbox used wherever an event
   gallery appears (events.html and the single-event detail
   pages). Every class is prefixed "sa-lb-" — distinct from
   every other namespace on the site — so this file can be
   linked on any page without touching that page's own styles.
   Usage: add data-lightbox="<group-name>" to any <img> you
   want included; images sharing the same group value become
   one navigable set. js/lightbox.js builds the overlay markup
   automatically — nothing else to add to the page.
   ========================================================= */

.sa-lb-trigger {
    cursor: zoom-in;
}

.sa-lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(12, 18, 14, 0.94);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sa-lb-overlay.sa-lb-open {
    display: flex;
    opacity: 1;
}

.sa-lb-stage {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 4.5rem;
}

.sa-lb-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
}

.sa-lb-caption {
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
    max-width: 40rem;
}

.sa-lb-close,
.sa-lb-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background-color 0.2s ease;
}

.sa-lb-close:hover,
.sa-lb-nav:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.sa-lb-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
}

.sa-lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
}

.sa-lb-prev {
    left: 1rem;
}

.sa-lb-next {
    right: 1rem;
}

.sa-lb-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
}
