/* News & Events page */
.event-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 10px; }
.event-filter .chip { font-size: 14.5px; padding: 4px 14px; }
#content h3.year-heading { font-size: 1.35rem; color: var(--blue-dark); margin: 30px 0 4px; }

.event { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 20px; }
.event:last-of-type { border-bottom: 0; }
.event.targeted { background: linear-gradient(90deg, #eef4f9, #fff 60%); }
.event-date {
    flex: none; width: 74px; text-align: center; font-family: var(--head-font); color: #fff; background: var(--blue);
    border-radius: 4px; padding: 8px 0 7px; line-height: 1.15; align-self: flex-start;
}
.event-date b { display: block; font-size: 28px; font-weight: 500; }
.event-date span { display: block; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; }
.event[data-status="past"] .event-date { background: #8fa6b8; }
.event-body { flex: 1; min-width: 0; }
.event-kicker { margin-bottom: 4px; }
.event-kicker .badge + .badge { margin-left: 6px; }
#content .event h3 { margin: 2px 0 6px; font-size: 1.28rem; }
.event-meta { list-style: none; padding: 0 !important; margin: 0 0 10px !important; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 15px; }
.event-meta li { margin: 0 !important; }
.event-meta .fa { color: var(--blue); width: 15px; text-align: center; margin-right: 2px; }
.event-speakers { display: flex; gap: 14px; align-items: center; margin: 0 0 10px; }
.event-speakers p { margin: 0 !important; }
.event-speakers .label { color: var(--muted); }
.speaker-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--soft); }
.event-text p { margin: 0 0 10px; }
details.event-more { margin: 6px 0; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
details.event-more summary {
    cursor: pointer; padding: 7px 14px; font-family: var(--head-font); font-size: 15px; letter-spacing: .3px; color: var(--blue-deep);
    background: var(--soft); list-style: none;
}
details.event-more summary::-webkit-details-marker { display: none; }
details.event-more summary::before { content: "\25B8"; display: inline-block; margin-right: 8px; transition: transform .15s; }
details.event-more[open] summary::before { transform: rotate(90deg); }
details.event-more > p, details.event-more > h4 { margin-left: 14px !important; margin-right: 14px !important; }
details.event-more > p:first-of-type, details.event-more > h4:first-of-type { margin-top: 10px !important; }
details.event-more > *:last-child { margin-bottom: 12px !important; }
#content details.event-more h4 { margin: 12px 14px 4px; font-size: 1rem; }
.event-link { margin: 8px 0 0 !important; font-family: var(--head-font); }

.event-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.event-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--soft); }
.event-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.event-gallery a:hover img { transform: scale(1.04); }
.older-events { text-align: center; color: var(--muted); margin-top: 30px !important; }

/* photo viewer */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 26, .92); z-index: 1000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #222; }
.lightbox .lb-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #e9eef3; font-size: 14px; padding: 0 60px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 28px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; line-height: 48px; padding: 0; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 16px; right: 16px; font-size: 26px; }
.lightbox .lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 16px; top: 50%; margin-top: -24px; }

@media (max-width: 600px) {
    .event { gap: 12px; }
    .event-date { width: 56px; }
    .event-date b { font-size: 22px; }
    .event-date span { font-size: 12px; }
    .event-gallery { grid-template-columns: repeat(2, 1fr); }
    .event-speakers { align-items: flex-start; }
    .speaker-photo { width: 56px; height: 56px; }
}
