/* Event detail: Programme Highlights gallery and lightbox. Builds on press-releases.css. */
/* Layout mirrors the Popular Courses section: centered heading, same width, card frame and grid breakpoints. */
.ev-highlights.pr-shell { width: min(1200px, calc(100% - 32px)); }
.ev-highlights { padding: 80px 0 24px; text-align: center; }
.ev-highlights-title { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.ev-highlights-title span { color: #57c5c7; }
.ev-highlights-count { margin: 8px 0 0; color: #a9b5bb; font-size: .95rem; }

.ev-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 30px 0 0; padding: 0 0 20px; list-style: none; }
.ev-gallery > li { display: flex; flex: 0 0 calc((100% - 56px) / 3); min-width: 0; }
.ev-tile {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(87, 197, 199, .18);
    border-radius: 16px;
    background: #0c1318;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    text-align: left;
    text-decoration: none;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ev-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(87, 197, 199, .55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(87, 197, 199, .15);
}
.ev-tile:focus-visible { outline: 2px solid #57c5c7; outline-offset: 3px; }
/* Every tile is the same edge-to-edge 16:9 frame; the photo is fitted inside it whole, never cropped. */
.ev-tile-frame { position: relative; display: block; flex: 0 0 auto; overflow: hidden; aspect-ratio: 16 / 9; background: #0f1a20; }
.ev-tile-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.ev-tile-caption { display: block; padding: 18px 22px 22px; color: #e0e0e0; font-size: .9rem; font-weight: 500; line-height: 1.45; }

.ev-footer { margin-top: 32px;}

.ev-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(2, 5, 10, .94); }
.ev-lightbox[hidden] { display: none; }
.ev-lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1200px, 100%); margin: 0; }
.ev-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.ev-lightbox figcaption { color: #eaf3ff; font-family: 'Poppins', sans-serif; font-size: .95rem; text-align: center; }
.ev-lb-close, .ev-lb-nav {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(87, 197, 199, .5);
    border-radius: 50%;
    background: rgba(6, 12, 22, .85);
    color: #57c5c7;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.ev-lb-close { position: absolute; top: 20px; right: 20px; color: #eaf3ff; }
.ev-lb-close:hover, .ev-lb-nav:hover { border-color: #57c5c7; background: #57c5c7; color: #04110f; }

@media (max-width: 1024px) {
    .ev-gallery { gap: 24px; }
    .ev-gallery > li { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
    .ev-highlights { padding-top: 56px; }
    .ev-gallery { gap: 20px; }
    .ev-gallery > li { flex-basis: 100%; max-width: 420px; }
}
@media (max-width: 820px) {
    .ev-lightbox { padding: 72px 12px 24px; }
    .ev-lb-nav { position: absolute; bottom: 20px; }
    .ev-lb-prev { left: calc(50% - 60px); }
    .ev-lb-next { right: calc(50% - 60px); }
    .ev-lightbox img { max-height: calc(100vh - 200px); }
}
@media (prefers-reduced-motion: reduce) { .ev-tile, .ev-tile:hover { transform: none; transition: none; } }
