/* Keep the accepted ratio-weighted gallery frames level on wide screens. */
@media (min-width: 64.001rem) {
  .photo-sequence .gallery-row { align-items: stretch; }
  .photo-sequence .gallery-frame { min-width: 0; flex: var(--ratio) 1 0; }
  .photo-sequence .gallery-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--ratio);
    object-fit: contain;
  }
}

/* Pair each paper with its quotation from tablet width upward. */
@media (min-width: 40rem) {
  .reflection-stage-v8,
  .testimony .reflection-stage-v8,
  html.motion .reflection-stage-v8 {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
  }

  .reflection-stage-v8 .reflection-paper,
  .testimony .reflection-stage-v8 .reflection-paper {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: min(25rem, 100%);
  }

  .reflection-stage-v8 .reflection-paper img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  .reflection-stage-v8 blockquote,
  .testimony .reflection-stage-v8 blockquote {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 100%;
    max-width: 39rem;
    font-size: clamp(28.8px, calc(16px + 2vw), 41.6px);
  }

  .reflection-stage-v8:has(.crew-reflection-caption) .crew-reflection-caption { grid-row: 1; }
  .reflection-stage-v8:has(.crew-reflection-caption) .reflection-paper,
  .reflection-stage-v8:has(.crew-reflection-caption) blockquote { grid-row: 2; }

  .testimony .reflection-stage-v8 {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .testimony .reflection-stage-v8 .reflection-paper { grid-column: 2; }
  .testimony .reflection-stage-v8 blockquote { grid-column: 1; }
}

/* Keep the invitation's established image and paper panel on opposite sides. */
@media (min-width: 64.001rem) {
  .invitation .scene-visual { grid-column: 2; grid-row: 1; }
  .invitation > .reading {
    grid-column: 1;
    grid-row: 1;
    background: var(--paper);
  }
}
