@media (min-width: 761px) {
  /* The images meet at their natural proportions, with no letterboxing. */
  html[data-page="weddings"] body main #w-stories#w-stories .w-gallery[data-premium-gallery]:is(#centered-layout,.centered-slider):is(#centered-layout,.centered-slider):is(#centered-layout,.centered-slider) > .gallery-portrait-pair {
    display: grid;
    align-self: start;
    gap: 16px;
    --pair-width: min(92%, calc(min(52svh, 500px) * var(--pair-ratio) + 16px));
    flex-basis: var(--pair-width) !important;
    width: var(--pair-width) !important;
  }

  html[data-page="weddings"] body main #w-stories#w-stories .w-gallery[data-premium-gallery]:is(#centered-layout,.centered-slider):is(#centered-layout,.centered-slider):is(#centered-layout,.centered-slider) > .gallery-full-frame-landscape {
    --photo-width: min(86%, calc(min(52svh, 500px) * var(--photo-ratio)));
    flex-basis: var(--photo-width) !important;
    width: var(--photo-width) !important;
    height: auto !important;
  }

  html[data-page="weddings"] body main #w-stories#w-stories .w-gallery[data-premium-gallery]:is(#centered-layout,.centered-slider):is(#centered-layout,.centered-slider):is(#centered-layout,.centered-slider) > .gallery-full-frame-landscape img {
    height: auto !important;
  }

  html[data-page="weddings"] body main #w-stories .gallery-portrait-pair figure {
    margin: 0;
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
  }

  html[data-page="weddings"] body main #w-stories .gallery-portrait-pair img[data-full-frame] {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
}
