/* Keep both captions inside the float; their outside margins belong to the
   photograph, even when another paragraph is already flowing alongside it. */
body[data-city-item-id="article:city:amarante"] .intro.editorial-hero:has([data-magazine-spread="pastries"]) {
  display: flow-root;
  max-width: 54rem;
  margin-inline: auto;
  --river-width: min(39%, 19.375rem);
  --shop-width: min(26%, 13.25rem);
  --photo-gutter: clamp(2rem, 4.8vw, 2.875rem);
}
body[data-city-item-id="article:city:amarante"] .intro.editorial-hero > .editorial-story,
body[data-city-item-id="article:city:amarante"] .editorial-story .city-visit-note[data-magazine-spread] {
  display: block;
  clear: none;
}
body[data-city-item-id="article:city:amarante"] .editorial-story .amarante-window-photo,
body[data-city-item-id="article:city:amarante"] .amarante-window-photo > img {
  display: block;
}
body[data-city-item-id="article:city:amarante"] .amarante-window-photo > img {
  width: 100%;
  height: auto;
}
body[data-city-item-id="article:city:amarante"] .intro.editorial-hero :is(figure.photo > figcaption, .amarante-window-photo > .photo-caption) {
  display: block;
  margin: .75rem 0 0;
  padding: 0;
  font-size: .84375rem;
  line-height: 1.65;
  text-align: start;
  color: var(--muted);
}
body[data-city-item-id="article:city:amarante"] .intro.editorial-hero .amarante-window-photo > .photo-caption [lang] { color: inherit; }
@media (min-width: 621px) {
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero:has([data-magazine-spread]) > figure.photo {
    float: right;
    width: var(--river-width);
    margin: 0 0 1.75rem var(--photo-gutter);
  }
  body[data-city-item-id="article:city:amarante"] .editorial-story .amarante-window-photo {
    float: left;
    width: var(--shop-width);
    margin: 2.5rem var(--photo-gutter) 1.75rem 0;
  }
}
@media (min-width: 760px) {
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero .editorial-story p.copy {
    font-size: 1.1875rem;
    line-height: 1.95;
    margin-block: 0 1.75rem;
  }
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero:has([data-magazine-spread]) > div:first-child {
    float: left;
    width: calc(100% - var(--river-width) - var(--photo-gutter) - 1px);
    margin: 0 0 1rem;
  }
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero > .editorial-story { clear: left; }
}
@media (max-width: 620px) {
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero > figure.photo {
    float: none;
    width: min(100%, 24rem);
    margin: 0 0 2rem;
  }
  body[data-city-item-id="article:city:amarante"] .editorial-story .amarante-window-photo {
    float: none;
    width: min(78%, 17rem);
    margin: 2rem 0;
  }
}
/* In a narrow two-part spread the heading needs its own line. The river
   photograph can then start with the bridge paragraph and flow into the next. */
@media (min-width: 621px) and (max-width: 859px) {
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero:has([data-magazine-spread]) {
    --river-width: clamp(14.75rem, 41%, 17.875rem);
  }
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero:has([data-magazine-spread]) > div:first-child {
    float: none;
    width: auto;
    margin-bottom: 1.5rem;
  }
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero > .editorial-story { clear: none; }
  body[data-city-item-id="article:city:amarante"] .intro.editorial-hero .editorial-story p.copy { font-size: 1.125rem; }
}
