.event-watch, .event-gallery { margin-block: 1.3rem 1.55rem; }
.event-media-heading {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem;
  margin-bottom: .65rem;
}
.event-media-heading > span { font-size: .86rem; }
.event-media-grid { display: grid; gap: .85rem; }
.event-media-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-media-card {
  display: grid; align-content: start;
  border: 1px solid var(--event-line); border-radius: .84rem;
  overflow: hidden; background: var(--event-surface); min-width: 0;
}
.event-media-display {
  aspect-ratio: 16 / 9; background: #09101a;
  width: 100%; overflow: hidden;
}
.event-media-display > :is(video, img, iframe) { display: block; width: 100%; height: 100%; border: 0; }
.event-media-display > img { object-fit: cover; }
.event-media-display > video { object-fit: contain; }
.event-media-copy { padding: clamp(.95rem, 3vw, 1.6rem); overflow-wrap: anywhere; }
.event-media-tag { font-size: .8rem; font-weight: 740; margin-bottom: .35rem; }
.event-media-copy h3 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
.event-media-copy h3 + p { margin-top: .5rem; }
.event-media-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.event-media-actions .quiet { color: var(--event-ink); border-color: var(--event-line); }
.event-media-actions .quiet:hover { background: var(--event-bg); }
.event-media-actions .primary { color: var(--event-accent-ink); background: var(--event-accent); }
.event-media-actions .primary:hover { box-shadow: inset 0 0 0 2px var(--event-accent-ink); }
.event-media-actions [hidden] { display: none; }
.event-watch-page :is(video, iframe) {
  display: block; border: 0; width: 100%; aspect-ratio: 16 / 9;
  background: #090e15; margin-top: .9rem; border-radius: .6rem;
}

.event-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .6rem; list-style: none; padding: 0; margin: 0;
}
.event-gallery-grid li { min-width: 0; border: 1px solid var(--event-line); border-radius: .7rem; background: var(--event-surface); }
.event-gallery-grid figure { margin: 0; }
.event-gallery-grid a { display: block; border-radius: .7rem; }
.event-gallery-grid a:focus-visible { position: relative; z-index: 1; }
.event-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .65rem; background: var(--event-surface); }
.event-gallery-grid figcaption { padding: .55rem .7rem; font-size: .9rem; overflow-wrap: anywhere; }
.theme-editorial .event-gallery-grid img { aspect-ratio: 5 / 4; }
.theme-grid .event-gallery-grid img { aspect-ratio: 1; }
.theme-stage .event-gallery-grid li:only-child { width: min(100%, 52rem); }
.theme-stage .event-gallery-grid img { aspect-ratio: 16 / 9; }

.event-gallery-dialog {
  width: min(92vw, 60rem); max-height: 92vh; padding: .7rem;
  border-radius: .8rem; border: 1px solid #56687a; background: #0e1924; color: #f3f7fb;
}
.event-gallery-dialog::backdrop { background: #050a10dc; }
.event-gallery-dialog figure { margin: .55rem 0; }
.event-gallery-dialog img { width: 100%; max-height: 62vh; object-fit: contain; }
.event-gallery-dialog figcaption { padding: .4rem .25rem; overflow-wrap: anywhere; }
.event-gallery-dialog figcaption:empty { display: none; }
.event-gallery-dialog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; }
.event-gallery-dialog :focus-visible { outline-color: var(--focus); }
.event-gallery-dialog button:disabled { opacity: .45; cursor: default; }

@media (max-width: 44rem) {
  .event-media-grid-pair { grid-template-columns: minmax(0, 1fr); }
}

.theme-portfolio .event-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-portfolio .event-gallery-grid li:first-child { grid-column: span 2; }
.theme-portfolio .event-gallery-grid li:only-child { grid-column: 1 / -1; }
.theme-portfolio .event-gallery-grid img { aspect-ratio: 5 / 4; }
.theme-portfolio .event-gallery-grid li:first-child img { aspect-ratio: 5 / 2; }
.theme-cinema .event-media-card { box-shadow: 0 .45rem 1.35rem #080e1b38; }
@media (min-width: 56rem) {
  .theme-cinema .event-media-grid:not(.event-media-grid-pair) .event-media-card:has(.event-media-display) {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: center;
  }
}
@media (max-width: 42rem) {
  .theme-portfolio .event-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-portfolio .event-gallery-grid li:first-child img { aspect-ratio: 16 / 9; }
}
