/*
 * Focused compatibility override for existing production releases.
 * Keep this after the Vite stylesheet when publishing it by itself.
 * The values mirror the CMS upload and crop specifications.
 */

@media (min-width: 901px) {
  .hero {
    height: 56.25vw;
    min-height: 0;
  }

  .hero-copy {
    max-width: 980px;
    padding-top: clamp(48px, 5vw, 96px);
    padding-bottom: clamp(48px, 5vw, 96px);
  }

  .hero-copy h1 {
    max-width: 900px;
    font-size: clamp(54px, 5.2vw, 96px);
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { display: none; }
}

.family-grid article {
  aspect-ratio: 5 / 6;
  min-height: 0;
}

.family-grid article.no-image { aspect-ratio: auto; }

.split-feature > .cms-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  align-self: center;
  overflow: hidden;
}

.split-feature > .cms-image img {
  height: 100%;
  min-height: 0;
}

.home-content-visuals figure {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.page-hero > .cms-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  align-self: center;
  overflow: hidden;
}

.page-hero > .cms-image img {
  height: 100%;
  min-height: 0;
}

.cms-gallery-grid .cms-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.cms-gallery-grid .cms-image img { min-height: 0; }

.contact-cms-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.contact-cms-image img { min-height: 0; }

.supplier-proof-images .cms-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.supplier-proof-images img { min-height: 0; }

.footer-cms-image {
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .page-hero > .cms-image,
  .split-feature > .cms-image,
  .page-hero > .cms-image img,
  .split-feature > .cms-image img {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .family-grid article,
  .home-content-visuals figure {
    min-height: 0;
  }
}
