/* Product page hero media (compact handler + glass lifter pages).
   Two variants, both on a black stage so the black-background product renders
   blend into it:
     .product-hero--video  click-to-play YouTube video (js/product-hero.js)
     .product-hero--image  product image, used when there is no video or 3D model
   Edit this file? Bump ?v= on every page that links it (cached immutable). */

.product-hero {
  position: relative;
  width: min(95vw,1920px);
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  border-radius: 20px;
}

/* Image: the renders are 5:3 with a pure black background. On wide screens the
   height is capped and the black stage fills the sides seamlessly. */
.product-hero--image {
  aspect-ratio: 5 / 3;
  max-height: 75vh;
}
.product-hero--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Video: always 16:9, never taller than 80% of the viewport. */
.product-hero--video {
  aspect-ratio: 16 / 9;
  width: min(95vw, calc(80vh * 16 / 9));
}
.product-hero__play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.product-hero__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-hero__play::before {
  /* Soft top shade so the caption stays legible on light footage. The caption
     sits top-left because the videos' own title bars live bottom-left. */
  content: "";
  position: absolute;
  inset: 0 0 70% 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.product-hero__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: #e30614;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.product-hero__icon::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 27px;
  border-style: solid;
  border-width: 17px 0 17px 28px;
  border-color: transparent transparent transparent #fff;
}
.product-hero__play:hover .product-hero__icon,
.product-hero__play:focus-visible .product-hero__icon {
  transform: scale(1.08);
}
.product-hero__play:focus-visible {
  outline: 3px solid #e30614;
  outline-offset: -3px;
}
.product-hero__caption {
  position: absolute;
  left: 24px;
  top: 22px;
  color: #fff;
  font-family: var(--secondary-font, "Helvetica Now Display", Helvetica, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
}
.product-hero__caption span {
  opacity: .75;
  margin-left: 8px;
}
.product-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .product-hero,
  .product-hero--video { border-radius: 14px; }
  .product-hero__icon { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .product-hero__icon::after { left: 25px; top: 19px; border-width: 13px 0 13px 21px; }
  .product-hero__caption { left: 14px; top: 12px; font-size: 13px; }
}
