.image-fill {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

.image-fill::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--image-fill-source);
  background-position: center;
  background-size: cover;
  filter: blur(16px);
}

.image-fill > img.image-fill__foreground {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}

.product-gallery .image-fill {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.product-gallery__viewer .product-gallery__full-frame {
  height: 100%;
  aspect-ratio: auto;
}
