/* Gallery additions only; gallery-base.css is the supplied stylesheet. */
.gallery_banner {
    background: var(--navy);
    padding: 2.3rem 2rem;
    text-align: center;
    width: 100%;
    max-width: none;
}
.gallery_banner h2 {
   color: var(--terracotta);
   margin: 0 0 0.35rem;
}
.gallery_banner p { color: var(--peach-soft); margin: 0; }
.gallery_event { max-width: 1220px; margin: auto; padding: 3.5rem 2rem 4.5rem; }
.gallery_event_heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.gallery_eyebrow { font-size: .72rem; letter-spacing: .16em; font-weight: 600; color: #92502D; margin: 0 0 .7rem; }
.gallery_event h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin: 0; }
.gallery_event time { color: var(--navy-soft); white-space: nowrap; font-size: .9rem; padding-bottom: .2rem; }
.gallery_intro { margin: .85rem 0 0; max-width: 650px; }
.gallery_hint { color: #625D57; font-size: .83rem; margin: .65rem 0 1.7rem; }
/* Columns preserve natural aspect ratios, including future portrait photos. */
.gallery_grid { columns: 3; column-gap: 1rem; }
.gallery_photo { display: block; position: relative; break-inside: avoid; margin: 0 0 1rem; border-radius: 7px; overflow: hidden; background: var(--peach-soft); }
.gallery_photo img { display: block; width: 100%; height: auto; transition: filter .25s ease; }
.gallery_photo:hover img { filter: brightness(.91); }
.gallery_zoom { position: absolute; bottom: .7rem; right: .7rem; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: rgba(28,42,74,.85); font-size: 1.2rem; }
.gallery_photo:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.gallery_body .dates_nav_links { gap: clamp(.65rem, 1.4vw, 1.3rem); }
.gallery_body .dates_nav_links > a[aria-current] { color: var(--peach); text-decoration: underline; text-underline-offset: 6px; }
.gallery_body .dates_site_header { position: relative; z-index: 10; }
.gallery_body footer .footer_socials h4 { color: #CC8050; }
.speakers_social_icon { display: inline-block; vertical-align: -.125em; }
.gallery_skip { position: absolute; top: -100px; left: 1rem; z-index: 50; background: white; padding: .8rem; }
.gallery_skip:focus { top: 1rem; }
.gallery_lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: #121B2CF5; color: white; }
.gallery_lightbox::backdrop { background: #121B2C; }
.gallery_viewer { position: relative; height: 100%; display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; align-items: center; gap: 1rem; padding: 4rem 1.5rem 1.5rem; }
.gallery_viewer figure { margin: 0; text-align: center; min-width: 0; }
.gallery_full { display: block; max-width: 100%; max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; margin: auto; }
.gallery_viewer figcaption { color: #FBE4D4; font-size: .85rem; margin: 1rem auto 0; max-width: 700px; }
.gallery_viewer button { font: inherit; color: white; background: #FFFFFF12; border: 1px solid #FFFFFF45; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; font-size: 2rem; line-height: 1; }
.gallery_viewer button:hover { background: var(--navy-soft); }
.gallery_viewer button:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }
.gallery_close { position: absolute; top: .8rem; right: 1.5rem; }
body.gallery_viewing { overflow: hidden; }
@media (max-width: 1100px) {
    .gallery_body .dates_site_header .dates_nav { flex-wrap: wrap; justify-content: flex-end; }
    .gallery_body .dates_menu_toggle { display: inline-flex; }
    .gallery_body .dates_nav_links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
    .gallery_body .dates_nav_links.is_open { display: flex; }
    .gallery_body .dates_nav_links > a, .gallery_body .dates_programs > summary { display: flex; padding: .8rem .5rem; }
    .gallery_body .dates_program_menu { position: static; width: 100%; box-shadow: none; }
}
@media (max-width: 850px) { .gallery_grid { columns: 2; } }
@media (max-width: 520px) {
    .gallery_event { padding: 2.2rem 1rem 3rem; }
    .gallery_event_heading { align-items: start; flex-direction: column; gap: .7rem; }
    .gallery_grid { columns: 1; }
    .gallery_viewer { grid-template-columns: 40px minmax(0,1fr) 40px; padding: 4rem .5rem 1rem; gap: .35rem; }
    .gallery_viewer button { width: 38px; height: 38px; }
    .gallery_viewer figcaption { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .gallery_photo img { transition: none; } }
