/* Spinning garment cards: the scene + badge stay still, only the cut-out garment turns (like a record). */
.scene-stage.has-spin { container-type: size; }
.has-spin .spin-box { position: absolute; left: 50%; top: 50%; display: block; width: 100%; aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
@supports (width: 1cqw) {
  .has-spin .spin-box { width: max(100cqw, 150cqh); height: max(100cqh, 66.667cqw); aspect-ratio: auto; }
}
.has-spin .spin-box .spin-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transform: none !important; }
/* circle centred at (840,520) with a 700px diameter on the 1500x1000 scene */
.spin-disc { position: absolute; left: 32.667%; top: 17%; width: 46.667%; height: 70%; display: block; pointer-events: none; }
.spin-cut { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform;
  animation: dz-spin var(--spin-dur, 30s) linear var(--spin-delay, 0s) infinite; }
@keyframes dz-spin { to { transform: rotate(360deg); } }
html.js-spin .spin-cut { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .spin-cut { animation: none !important; transform: none !important; will-change: auto; }
}
/* product page: the scene photos spin on the same layered stage; size tag and plain photos stay static */
.gallery-stage:has(.gallery-spin) { container-type: size; }
.gallery-spin { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.gallery-spin[hidden] { display: none; }
.gallery-spin .spin-box { position: absolute; left: 50%; top: 50%; display: block; width: 100%; aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
@supports (width: 1cqw) { .gallery-spin .spin-box { width: max(100cqw, 150cqh); height: max(100cqh, 66.667cqw); aspect-ratio: auto; } }
.gallery-spin .spin-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.gallery-stage.is-spinning .gallery-photo { opacity: 0; }
.gallery-stage .expand-icon { z-index: 2; }
/* enlarged cutout: a fixed layer that never takes clicks */
.spin-zoom { position: fixed; z-index: 2147481000; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity; }
.spin-zoom-cut { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }
.spin-zoom-hi { opacity: 0; transition: opacity .18s linear; }
.spin-zoom-hi.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .spin-zoom-cut { transform: none !important; } }
