.event-gallery {
  grid-column: 1 / -1;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.gallery-heading .eyebrow { margin-bottom: 8px; }
.gallery-heading h3 { font-size: 34px; }
.gallery-heading > p { color: var(--muted); font-size: 11px; max-width: 290px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 9px;
}
.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  background: #e8e5db;
  color: var(--ink);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: contain; }
.gallery-tile:hover { border-color: var(--olive); background: var(--paper); }
.gallery-tile .gallery-hint {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  background: rgba(246,243,235,.94);
  color: var(--olive);
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
}
.gallery-tile[data-type="video"] .gallery-hint { width: 28px; height: 28px; font-size: 13px; }
.gallery-dialog {
  width: min(1080px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 16px;
  border: 1px solid #777b67;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.gallery-dialog::backdrop { background: rgba(23,26,20,.87); }
.gallery-dialog:not([open]) { display: none; }
.gallery-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.gallery-dialog-header h3 { font-size: 24px; }
.gallery-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}
.gallery-control:hover { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.gallery-stage {
  display: grid;
  place-items: center;
  background: #e8e5db;
  min-height: 120px;
}
.gallery-stage img,
.gallery-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 155px);
  max-height: calc(94dvh - 155px);
  object-fit: contain;
}
.gallery-stage video { background: #1d2119; }
.gallery-stage [hidden] { display: none; }
.gallery-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}
.gallery-counter { font-size: 11px; color: var(--muted); text-align: center; }
html.gallery-is-open { overflow: hidden; }
@media (max-width: 760px) {
  .event-gallery { margin-top: 0; padding-top: 26px; }
  .gallery-heading { display: block; margin-bottom: 17px; }
  .gallery-heading > p { margin-top: 10px; max-width: none; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .gallery-dialog { padding: 10px; }
  .gallery-dialog-header h3 { font-size: 21px; }
  .gallery-control { padding: 8px 10px; }
}
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The new full-width row extends the inquiry container: keep the introduction
   in normal flow so it cannot float over the thumbnail grid while scrolling. */
#inquiry > .inquiry-intro { position: static; }
