.product-media-frame {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft, #eff0fa);
}

.product-media-frame > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-position: center;
  pointer-events: none;
}

/* A cover backdrop fills any spare space without cropping the foreground. */
.product-media-frame > .product-media-backdrop {
  object-fit: cover;
  filter: blur(10px) brightness(.85);
  transform: scale(1.25);
}

.product-media-frame > .product-media-image { object-fit: contain; }
.product-media-frame > img[hidden] { display: none; }
