/* Event pages: direct enquiry, open FAQ and accessible photo viewer. */
.event-faq-list { max-width: 900px; margin-top: 32px; }
.event-faq details { border-bottom: 1px solid #aaa; padding: 20px 0; }
.event-faq details:first-child { border-top: 1px solid #aaa; }
.event-faq summary { cursor: pointer; font-size: 20px; font-weight: 700; line-height: 1.4; padding: 12px 16px; border: 1px solid #767676; border-radius: 6px; background: #f3f3f1; }
.event-faq summary:hover { background: #e4e4e2; }
.event-faq details p { max-width: 72ch; margin: 16px 0 0; line-height: 1.65; }
.gallery-trigger { display: block; position: relative; width: 100%; height: 100%; color: #fff; cursor: zoom-in; }
.gallery-trigger img { display: block; }
.gallery-hint { position: absolute; right: 16px; bottom: 16px; background: #111; color: #fff; border: 2px solid #fff; border-radius: 6px; padding: 11px 14px; font-size: 14px; line-height: 1.4; font-weight: 700; box-shadow: 0 3px 0 #767676; }
.gallery-trigger:hover .gallery-hint { background: #fff; color: #111; border-color: #111; }
.gallery-trigger:active .gallery-hint { background: #ddd; color: #111; box-shadow: inset 0 2px 3px #888; }
.gallery-trigger:focus-visible { outline: 4px solid #fff; outline-offset: -7px; }
.event-faq summary:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
.photo-dialog { box-sizing: border-box; width: min(1180px, calc(100vw - 40px)); height: min(880px, calc(100dvh - 40px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #777; border-radius: 8px; background: #111; color: #fff; overflow: hidden; }
.photo-dialog::backdrop { background: rgb(0 0 0 / 88%); }
.gallery-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 20px; gap: 16px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-dialog h2 { font-size: 18px; line-height: 1.4; margin: 0; letter-spacing: normal; }
.gallery-control { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 10px 14px; border: 2px solid #bbb; border-radius: 6px; background: #292929; color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #777; }
.gallery-control:hover { background: #fff; color: #111; }
.gallery-control:active { background: #ddd; color: #111; box-shadow: inset 0 2px 3px #888; }
.gallery-control:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.gallery-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.gallery-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-error { color: #fff; padding: 24px; text-align: center; }
.gallery-error[hidden], .gallery-image[hidden] { display: none; }
.gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gallery-caption { font-size: 16px; line-height: 1.5; margin: 0; max-width: 65ch; }
.gallery-navigation { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.gallery-count { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .event-faq-list { margin-top: 24px; }
  .event-faq summary { font-size: 17px; padding: 12px; }
  .gallery-hint { right: 10px; bottom: 10px; padding: 10px 12px; }
  .photo-dialog { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .gallery-shell { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); gap: 14px; }
  .photo-dialog h2 { font-size: 16px; max-width: 13ch; }
  .gallery-close { flex-shrink: 0; }
  .gallery-bottom { flex-direction: column; gap: 16px; align-items: stretch; }
  .gallery-caption { font-size: 14px; }
  .gallery-navigation { justify-content: space-between; }
}
@media (max-height: 450px) {
  .gallery-shell { padding: 10px; gap: 8px; }
  .gallery-bottom { flex-direction: row; align-items: center; }
  .gallery-caption { font-size: 13px; }
}
