/* Home page composition */

/* Hero: crop the portrait stream photo on the cascade */
.home-hero__img {
  object-position: 50% 48%;
}

/* Intro cards sit a little closer to the hero than a full section */
.home-intros {
  padding-block: var(--section-m);
}

/* Trebartha and De Lank: the mirrored panel with the Pelton runner */

.home-sites__runner {
  object-position: 50% 58%;
}

.home-sites__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
}

.home-sites__photo img {
  aspect-ratio: 1;
  object-fit: cover;
}

.home-sites__photo--weir {
  grid-column: 1 / -1;
}

.home-sites__photo--weir img {
  aspect-ratio: 16 / 9;
}

.home-sites__photo--spate img {
  object-position: 50% 60%;
}

.home-sites__action {
  margin-top: var(--space-6);
}

/* Three across when the text side is wide enough: stacked (36-56rem)
   and on wide screens (75rem up). In between, the mosaic above. */
@media (min-width: 36rem) and (max-width: 55.99rem), (min-width: 75rem) {
  .home-sites__photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-sites__photo--weir {
    grid-column: auto;
  }

  .home-sites__photo--weir img {
    aspect-ratio: 1;
  }
}

@media (min-width: 56rem) and (max-width: 74.99rem) {
  .home-sites {
    --split: 0.56;
  }
}

@media (min-width: 56rem) {
  .home-sites .panel__body {
    max-width: 40rem;
  }
}
