/* Event documentation: simple thumbnails and a native image dialog. */
.event-gallery{margin:24px 0;padding:clamp(16px,3vw,36px);background:#000e;border:1px solid #333}
.event-gallery h2{font-size:clamp(24px,3vw,36px);margin-bottom:12px}
.event-gallery>p{color:#bbb;font-size:14px}
.event-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.event-gallery-grid a{display:block;border:1px solid #444;background:#111}
.event-gallery-grid a:hover,.event-gallery-grid a:focus-visible{border-color:#f00}
.event-gallery-grid img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.event-photo-dialog{width:min(1400px,96vw);max-width:96vw;max-height:96vh;max-height:96dvh;padding:16px;border:1px solid #777;background:#080808;color:#fff}
.event-photo-dialog::backdrop{background:#000e}
.event-photo-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.event-photo-toolbar p{margin:0;font-size:14px}
.event-photo-dialog button{padding:8px 12px;min-height:44px}
.event-photo-dialog img{display:block;width:100%;height:auto;max-height:68vh;max-height:68dvh;object-fit:contain;background:#000}
.event-photo-caption{font-size:14px;line-height:1.5;margin:12px 0}
.event-photo-navigation{display:flex;justify-content:space-between;gap:12px}
html:has(.event-photo-dialog[open]){overflow:hidden}
@media(max-width:1000px){.event-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.event-gallery-grid{grid-template-columns:1fr}.event-photo-dialog{padding:12px}.event-photo-navigation button{font-size:12px}}
