/* Crop and ordering refinements for the Amma landing page. */
.amma-home .hero-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.amma-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.home-team-grid img {
  height: 560px;
}

.home-team-grid article:first-child img {
  object-position: center 42%;
}

.home-team-grid article:last-child img {
  object-position: center 34%;
}

@media (max-width: 900px) {
  .home-team-grid img {
    height: 440px;
  }
}

@media (max-width: 600px) {
  .amma-home .hero-media {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--cream);
  }

  .amma-home .hero-media img {
    display: block;
    height: 100%;
    aspect-ratio: auto;
    object-position: center center;
  }

  .amma-home .cards .card img {
    height: 310px;
  }

  .amma-home .gallery-stories img:nth-child(4) {
    grid-column: 1 / -1;
    height: 280px;
  }

  .amma-home .gallery-stories img:nth-child(5),
  .amma-home .gallery-stories img:nth-child(6) {
    grid-column: auto;
    height: 230px;
  }

  .home-team-grid img {
    height: 430px;
  }

  .home-team-grid article:last-child img {
    object-position: center 32%;
  }
}
