/* The chosen documentary images should lose as little of their original
   composition as possible to the second crop performed by object-fit. */
.hero:has([data-frame="waterside"], [data-frame="trailhead"]) .hero-photo { margin-inline-start: 0; }
.hero:has([data-frame="waterside"], [data-frame="trailhead"]) .hero-in::before { inset: 0; clip-path: none; }
.hero-photo[data-frame="waterside"] img { object-position: 53% 53%; }
.site-photo[data-frame="gathering"] img { aspect-ratio: 25 / 17; object-position: center 62%; }
.site-photo[data-frame="rainbow"] img { aspect-ratio: 1529 / 912; object-position: center 56%; }
.trip-feature .site-photo[data-frame="procession"] img { aspect-ratio: 512 / 249; object-position: center 65%; }
body[data-page="organizations"] .site-photo[data-frame="bicycles"] img { aspect-ratio: 939 / 540; object-position: 45% 52%; }
body[data-page="about"] .site-photo[data-frame="portrait"] img { aspect-ratio: 6 / 5; object-position: 40% 35%; }
.guide-home .site-photo[data-frame="circle"] img { aspect-ratio: 4 / 3; object-position: center 60%; }
.site-photo[data-frame="tricycle"] img { aspect-ratio: 3 / 4; object-position: center; }
.about-story .site-photo[data-frame="stone-window"] { width: min(100%,15.7rem); }
.site-photo[data-frame="stone-window"] img { aspect-ratio: 231 / 500; height: auto; object-position: center; }

@media (min-width:681px) and (max-width:1199px) {
  /* Two narrow columns clip both end riders. Keep the text and group together
     in two wide bands until the photograph has space beside the headline. */
  .hero:has([data-frame="waterside"], [data-frame="trailhead"]) { grid-template-columns: 1fr; grid-template-areas: "copy" "photo"; }
  .hero:has([data-frame="waterside"], [data-frame="trailhead"]) .hero-in { min-height:0; padding: 1.7rem 4.5vw; }
  .hero:has([data-frame="waterside"], [data-frame="trailhead"]) .hero-copy { max-width: none; }
  .hero-photo:is([data-frame="waterside"], [data-frame="trailhead"]) { aspect-ratio: 2.15; }
}
@media (max-width:680px) {
  .hero-photo:is([data-frame="waterside"], [data-frame="trailhead"]) { aspect-ratio: 16 / 9; }
}
/* On a wide split the photo occupies 56.5% of the viewport. Its natural
   16:9 frame therefore needs about 31.78vw of height. Text may still grow. */
@media (min-width:1200px) {
  .hero:has([data-frame="waterside"], [data-frame="trailhead"]) .hero-in { min-height:clamp(24rem,31.78vw,37rem); }
}
