/* Homepage-only photo sizing; shared colors and other pages remain unchanged. */
body[data-page="home"] .hero-grid {
  align-items: stretch;
}

body[data-page="home"] .hero-media {
  align-self: stretch;
  margin-top: -90px;
  margin-bottom: -82px;
  padding: 0;
  min-height: 400px;
}

body[data-page="home"] .media-frame {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}

body[data-page="home"] .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The picture itself now fills the area previously framed by offset rules. */
body[data-page="home"] .hero-media::before {
  display: none;
}

@media (max-width: 620px) {
  body[data-page="home"] .hero-media {
    margin: 45px 0 0;
    height: min(92vw, 560px);
    min-height: 330px;
  }
}
