/**
 * Fullscreen image lightbox + gallery navigation.
 *
 * Two activation surfaces share this stylesheet:
 *   1) Magnifier (.evt-hover-zoom) inside the hover popover / click modal —
 *      opens a single image, no prev/next nav.
 *   2) Photo tile (.photo-tile-img) on /images/ — opens with prev/next
 *      arrows so the user can page through the whole gallery without
 *      closing the lightbox between images.
 *
 * Companion JS: /js/image_lightbox.js (the dispatcher decides which mode
 * based on which class was clicked).
 *
 * Loaded by: photos/index.php, plus indirectly by year/filtered/papers
 * via /css/event_hover_overlay.css's @import below if you prefer that
 * route — currently each template links it explicitly.
 */

.evt-lightbox {
    /* Must sit ABOVE the click-modal (100002), its backdrop (100001), and
       its chrome (100003). 100010 leaves room for any future overlay
       layers below it. */
    position: fixed; inset: 0; z-index: 100010;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.evt-lightbox img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.evt-lightbox-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: #fff; font-size: 22px; font-weight: 700;
    line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.12s;
}
.evt-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* Prev/next arrows — only rendered in gallery mode (when the lightbox
   was opened from a photo tile on /images/). Same look as the click-modal
   side arrows so the visual language stays consistent across the site. */
.evt-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff; font-size: 36px; font-weight: 400;
    line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0 0 4px 0; /* nudge ‹ › glyphs to optical center */
    transition: background 0.12s, transform 0.12s, opacity 0.12s;
}
.evt-lightbox-nav:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.08);
}
.evt-lightbox-nav--disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
.evt-lightbox-nav-prev { left: 18px; }
.evt-lightbox-nav-next { right: 18px; }
@media (max-width: 520px) {
    .evt-lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
    .evt-lightbox-nav-prev { left: 6px; }
    .evt-lightbox-nav-next { right: 6px; }
}
