.product-image-carousel {
  display: grid;
  width: 100%;
  max-width: var(--product-image-width, 520px);
  aspect-ratio: 1;
}

.product-image-carousel > img,
.s1-img-stack.product-image-carousel > img,
.ps-image .product-image-carousel > img {
  grid-area: 1 / 1;
  position: static;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transition: opacity 3s ease;
}

.product-image-carousel > img:not(:first-child) {
  opacity: 0;
  pointer-events: none;
}

#product-showcase .product-image-carousel { --product-image-width: 320px; }
.product-showcase-section .product-image-carousel { --product-image-width: 355px; }

@media (max-width: 860px) {
  #product-showcase .product-image-carousel { --product-image-width: 240px; }
  .product-showcase-section .product-image-carousel { --product-image-width: 260px; }
}
