.event-photo-section {
  margin: 36px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.event-photo-section .event-carousel { container-type: inline-size; }
.event-photo-section .event-carousel-tools { margin-bottom: 12px; }
.event-photo-section .carousel-status {
  margin: 0;
  font-size: .875rem;
}
.event-photo-rail {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 0 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--line);
}
.event-photo-rail:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.event-photo-card {
  --photo-height: clamp(10rem, 36cqw, 17rem);
  flex: 0 0 auto;
  width: min(88%, calc(var(--photo-height) * var(--photo-ratio)));
  min-width: 0;
  scroll-snap-align: start;
  color: var(--ink);
  text-decoration: none;
}
.event-photo-media.upcoming-media {
  aspect-ratio: auto;
  background: transparent;
  cursor: zoom-in;
}
.event-photo-media.upcoming-media img {
  display: block;
  width: 100%;
  height: auto;
}
.event-photo-caption {
  display: block;
  margin-top: 10px;
  font-size: .875rem;
  line-height: 1.45;
  font-weight: 600;
}
.event-photo-card:hover .event-photo-caption,
.event-photo-card:focus-visible .event-photo-caption {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.event-photo-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.event-photo-viewer {
  width: min(1000px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 12px;
  border: 1px solid #465569;
  border-radius: 12px;
  background: #111d2c;
  color: white;
}
.event-photo-viewer::backdrop { background: rgb(9 16 26 / 85%); }
body:has(.event-photo-viewer[open]) { overflow: hidden; }
.event-photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.event-photo-toolbar button {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #8694a5;
  border-radius: 5px;
  background: transparent;
  color: white;
  font: inherit;
  cursor: pointer;
}
.event-photo-toolbar button:hover, .event-photo-toolbar button:focus-visible {
  background: #2d5c9f;
}
.event-photo-toolbar-controls { display: flex; gap: 6px; }
.event-photo-viewer img {
  display: block;
  width: 100%;
  height: min(65dvh, 720px);
  margin: 10px 0;
  object-fit: contain;
  background: #0a131f;
}
.event-photo-viewer [data-photo-caption] { margin: 0; color: white; text-align: center; }
@media (max-width: 740px) {
  .event-photo-rail { gap: 16px; }
  .event-photo-card { --photo-height: clamp(8rem, 49cqw, 15rem); }
}
