/* Hero photo/fade and legacy player styles. product-demo.css overrides the active player visibility rule. */
/* Hero: photo only */
.hero .hero-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hero .hero-product-media .hero-product-photo {
  display: block;
  width: min(100%, 360px);
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Product section: photo and video share the same space */
#metarlight .product-demo {
  position: relative;
  width: min(100%, 420px);
  justify-self: center;
  overflow: hidden;
  border-radius: 12px;
}

#metarlight .product-demo-photo {
  display: block;
  width: 100%;
  height: auto;
}

#metarlight .product-demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

#metarlight .product-demo.is-playing .product-demo-video {
  opacity: 1;
}

#metarlight .product-demo-toggle {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 100px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#metarlight .product-demo [hidden] {
  display: none !important;
}

.hero .hero-product-media .hero-product-photo {
  width: min(100%, 460px);
  height: auto;
  border-radius: 0;
}
