/* Shared story photography, with original image proportions. */
.article[data-story] > .editorial-spread,
.article[data-story] > .story-photo-grid,
.article[data-story] > .image-pair {
  margin-block: clamp(1.35rem, 3.3vw, 2.65rem);
}
.article[data-story] .story-aligned-row {
  display: grid;
  grid-template-columns: var(--story-columns);
  align-items: start;
  gap: clamp(.45rem, 1.25vw, .95rem);
}
.article[data-story] .story-aligned-row > figure {
  min-width: 0;
  margin: 0;
}
.article.visual-rich[data-story] > :is(.editorial-spread, .story-photo-grid) .story-aligned-row > figure.photo img,
.article.visual-rich[data-story] > .story-photo-grid.story-aligned-row > figure.photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.article[data-story] figcaption,
.article[data-story] .spread-caption {
  font-size: clamp(.82rem, 1.45vw, 1rem);
  line-height: 1.45;
}
@media (max-width: 540px) {
  .article[data-story] .story-aligned-row--three {
    grid-template-columns: 1fr;
  }
}

/* Captions belong to the image or to the grid as a whole. */
.article[data-story] > .photo > figcaption,
.article[data-story] .spread-caption {
  text-align: center;
}

.article[data-story] .spread-caption {
  max-width: 65ch;
  margin: 12px auto 0;
}

.article[data-story] > .story-photo-block {
  margin-block: clamp(1.35rem, 3.3vw, 2.65rem);
}

.article[data-story] > .story-photo-block > .story-photo-grid {
  margin-block: 0;
}

.article[data-story] > .story-photo-block > .africa-pictures {
  margin-block-end: 0;
}

.article.visual-rich[data-story] .story-photo-block .story-aligned-row > figure.photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 900px) and (orientation: landscape) {
  .story-hero.editorial-cover[data-story] .hero-copy {
    align-self: start;
  }

  .story-hero.fade-hero[data-story] .hero-copy {
    inset-block-start: 24px;
    inset-block-end: auto;
  }

  .story-dek[data-story],
  .article[data-story],
  .story-followups[data-story],
  .story-recommendations[data-story] {
    width: min(1200px, 88%);
    max-width: none;
    margin-inline: auto;
  }

  .story-dek[data-story] {
    padding-inline: 0;
  }

  .story-dek[data-story] p {
    max-width: none;
  }

  .story-followups[data-story] > .story-audio {
    margin-inline-start: 0;
  }

  .article[data-story] > :is(.editorial-spread, .photo, .story-photo-grid, .image-pair),
  .article[data-story] > .story-photo-block > .africa-pictures {
    position: relative;
    inset-inline-start: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
}
