/* =========================================================================
   Shared photo viewer + scroll reveal
   Used by the Programs and Gallery pages. Any element carrying
   data-lb-full / data-lb-group / data-lb-caption becomes a viewer trigger.
   ========================================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 18, 12, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 70px 20px 100px;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.lb-caption {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 40px));
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.lb-counter {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d4af37;
}

.lb-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lb-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #10281a;
}

.lb-close {
    top: 22px;
    right: 22px;
}

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

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

@media (max-width: 640px) {
    .lightbox {
        padding: 60px 10px 110px;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }
}

