.replay-event-section,
.replay-event-videos,
.replay-event-notes {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.replay-event-section h2,
.replay-event-section p,
.replay-event-video {
  margin: 0;
}

.replay-event-video {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  padding-bottom: 0.8rem;
}

.replay-event-video video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 0.55rem;
}

.replay-event-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: clamp(0.6rem, 2vw, 0.95rem);
}

.replay-photo-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: zoom-in;
}

.replay-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.replay-photo-thumb:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.replay-photo-dialog {
  width: min(48rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: clamp(0.7rem, 2vw, 1.15rem);
  border: 0;
  border-radius: 0.65rem;
  background: #f6eddf;
  color: #2f1c32;
}

.replay-photo-dialog::backdrop {
  background: rgb(38 22 40 / 82%);
}

.replay-photo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.replay-photo-header h2 {
  margin: 0;
}

.replay-photo-dialog > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  margin: auto;
}

.replay-admin-photo,
.replay-inline-admin {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 0.45rem;
}

.replay-inline-admin .button {
  white-space: normal;
  text-align: center;
}

.replay-inline-admin .row {
  flex-wrap: wrap;
}
