.event-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.event-heading .pill { flex-shrink: 0; }
.event-gallery {
  --event-gap: clamp(10px, 1.6vw, 22px);
  padding: clamp(12px, 2vw, 26px) 0 16px;
  border: 1px solid #e0e6f6;
  border-radius: 29px;
  background: radial-gradient(ellipse at 88% 0%, #e9e4ff, transparent 52%), #f4f7ff;
}
.event-gallery-view { overflow: auto; scroll-snap-type: x mandatory; }
.event-gallery.is-ready .event-gallery-view { overflow: hidden; scroll-snap-type: none; }
.event-gallery-track { display: flex; touch-action: pan-y pinch-zoom; }
.event-slide {
  flex: 0 0 82%;
  min-width: 0;
  padding-inline: calc(var(--event-gap) / 2);
  scroll-snap-align: center;
}
.event-gallery:not(.is-ready) .event-slide:first-child { margin-left: 9%; }
.event-slide-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 2.03;
  border: 1px solid #26395926;
  border-radius: clamp(13px, 1.8vw, 22px);
  background: radial-gradient(ellipse at 53% 65%, #384363, #171e33);
}
.event-slide-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 58%; }
.event-slide:first-child img { object-position: center top; }
.event-slide-media.is-portrait img { object-fit: contain; padding: 8px; }
.event-portrait-backdrop {
  position: absolute;
  z-index: -1;
  inset: -18px;
  background: linear-gradient(#21284450, #21284475), var(--event-photo) center / cover;
  filter: blur(15px);
}
.event-gallery.is-ready .event-slide:not(.is-active) .event-slide-media { opacity: .63; scale: .96; }
.site-motion-on .event-slide-media { transition: scale 560ms cubic-bezier(.22,.7,.23,1), opacity 480ms ease; }
.event-slide-caption { display: grid; margin-top: 8px; }
.event-gallery.is-ready .event-slide-caption { display: none; }
.event-slide-caption span, .event-photo-copy span { color: var(--quiet); font-size: 13px; }
.event-gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 17px 9% 13px;
}
.event-photo-copy { min-width: 0; display: grid; }
.event-photo-copy strong { font-size: clamp(16px, 2vw, 23px); line-height: 1.3; letter-spacing: -.04em; }
.event-photo-controls, .event-lightbox-bar { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.event-arrow, .event-expand {
  min-width: 41px;
  min-height: 41px;
  border: 1px solid #dce3f5;
  border-radius: 100px;
  background: #fff;
  color: #253a79;
  font-weight: 690;
  cursor: pointer;
}
.event-arrow:hover, .event-expand:hover { background: #e2eaff; }
.event-arrow:disabled { opacity: .5; cursor: default; }
.event-play { font-size: 13px; }
.event-expand { padding: 0 12px; font-size: 13px; white-space: nowrap; }
.event-count { min-width: 47px; text-align: center; color: #4d5c81; font-size: 12px; font-variant-numeric: tabular-nums; }
.event-thumbs { position: relative; display: flex; gap: 8px; overflow: auto; margin-inline: 9%; padding: 5px 4px; }
.event-thumbs button {
  flex: 0 0 clamp(53px, 7vw, 91px);
  overflow: hidden;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #e6ebf7;
  cursor: pointer;
}
.event-thumbs button[aria-current="true"] { border-color: #435fd8; background: #fff; }
.event-thumbs button:focus-visible { outline-offset: 0; }
.event-thumbs img { width: 100%; aspect-ratio: 1.63; height: auto; object-fit: cover; border-radius: 5px; }
.event-next-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: var(--quiet); font-size: 14px; }
.event-next-note strong { color: #283752; }

.event-lightbox {
  position: fixed;
  width: min(1080px, calc(100% - 28px));
  max-height: 91dvh;
  padding: 0;
  border: 1px solid #e0e6f6;
  border-radius: 18px;
  background: #12192a;
  color: white;
  overflow: hidden;
}
.event-lightbox::backdrop { background: #090e20c9; }
.event-lightbox-bar { justify-content: flex-end; padding: 10px 12px; }
.event-lightbox-scroll { max-height: calc(91dvh - 61px); overflow: auto; overscroll-behavior: contain; padding: 0 10px 10px; }
.event-lightbox-scroll img { margin-inline: auto; width: auto; }
body:has(.event-lightbox[open]) { overflow: hidden; }

@media (max-width: 680px) {
  .event-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .event-gallery { border-radius: 19px; }
  .event-slide { flex-basis: 88%; }
  .event-gallery:not(.is-ready) .event-slide:first-child { margin-left: 6%; }
  .event-slide-media { aspect-ratio: 1.52; }
  .event-gallery-footer { flex-wrap: wrap; margin-inline: 6%; }
  .event-thumbs { margin-inline: 6%; }
  .event-photo-controls { gap: 4px; }
  .event-arrow { min-width: 37px; min-height: 37px; }
  .event-expand { min-height: 37px; }
  .event-count { min-width: 39px; }
}
