/* DICHANA v2.2.44 — Public hero media balance
   Keeps Products and Factory Standard imagery proportional to their copy
   without cropping important visual content. */

@media (min-width: 1181px) {
  body.product-library-hero-compact-v8560 .product-library-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr) !important;
    gap: clamp(38px, 4vw, 64px) !important;
  }

  body.product-library-hero-compact-v8560 .product-library-hero-visual {
    width: min(100%, 540px) !important;
    max-width: 540px !important;
    max-height: none !important;
    justify-self: end !important;
  }
}

body.product-library-hero-compact-v8560 .product-library-hero-visual > img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (min-width: 1121px) {
  body.factory-evidence-page .fe-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(440px, .98fr) !important;
    gap: clamp(40px, 5vw, 70px) !important;
  }

  body.factory-evidence-page .fe-hero-visual {
    width: min(100%, 620px) !important;
    min-height: 500px !important;
    justify-self: end !important;
  }
}

body.factory-evidence-page .fe-hero-visual > .fe-hero-photo[data-site-media-target] {
  position: absolute !important;
  inset: 16px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

body.factory-evidence-page .fe-hero-photo > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (min-width: 981px) and (max-width: 1180px) {
  body.product-library-hero-compact-v8560 .product-library-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px) !important;
    gap: 32px !important;
  }

  body.product-library-hero-compact-v8560 .product-library-hero-visual {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
  }
}

@media (max-width: 1120px) {
  body.factory-evidence-page .fe-hero-visual {
    width: min(100%, 720px) !important;
    min-height: clamp(390px, 55vw, 500px) !important;
    justify-self: center !important;
  }
}

@media (max-width: 980px) {
  body.product-library-hero-compact-v8560 .product-library-hero-grid {
    grid-template-columns: 1fr !important;
  }

  body.product-library-hero-compact-v8560 .product-library-hero-visual {
    width: min(100%, 540px) !important;
    max-width: 540px !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  body.product-library-hero-compact-v8560 .product-library-hero-visual {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
  }

  body.factory-evidence-page .fe-hero-visual {
    min-height: clamp(340px, 75vw, 460px) !important;
    padding: 10px !important;
  }

  body.factory-evidence-page .fe-hero-visual > .fe-hero-photo[data-site-media-target] {
    inset: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.product-library-hero-compact-v8560 .product-library-hero-visual,
  body.factory-evidence-page .fe-hero-visual {
    transition: none !important;
  }
}
