/* // Shared listing media for Sam's next UI increment. */
.product-image-gallery { position: relative; width: 100%; min-width: 0; color: #514d40; }
.product-gallery-switch { position: absolute; top: 0; right: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 10px; border: 1px solid #b9b4a3; border-radius: 24px; background: #faf8f0f2; color: #414b32; font: 600 11px/1 'Manrope', sans-serif; cursor: pointer; }
.product-gallery-switch:hover { background: #fffdf8; }
.product-gallery-switch-track { display: block; width: 27px; height: 16px; padding: 2px; border-radius: 20px; background: #d4d1c5; transition: background .15s; }
.product-gallery-switch-track > span { display: block; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.product-gallery-switch[aria-checked="true"] .product-gallery-switch-track { background: #52613e; }
.product-gallery-switch[aria-checked="true"] .product-gallery-switch-track > span { transform: translateX(11px); }
.product-gallery-play { position: absolute; top: 16px; left: 16px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #b9b4a3; border-radius: 50%; background: #faf8f0f2; color: #414b32; cursor: pointer; }
.product-gallery-play:hover { background: #fffdf8; }
.product-gallery-play[aria-pressed="true"] .product-gallery-play-icon,
.product-gallery-play[aria-pressed="false"] .product-gallery-pause-icon { display: none; }
.product-gallery-view.is-leaving { z-index: 2; pointer-events: none; animation: product-gallery-leave .8s ease both; }
.product-gallery-view.is-entering { animation: product-gallery-enter .8s ease both; }
@keyframes product-gallery-leave { to { opacity: 0; } }
@keyframes product-gallery-enter { from { opacity: 0; } to { opacity: 1; } }
.product-gallery-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1.08; width: 100%; min-width: 0; overflow: hidden; }
.product-gallery-view { position: absolute; inset: 0; display: grid; place-items: center; }
.product-gallery-view > .product-mockup { width: 100%; }
.product-gallery-view > .product-webgl-card { width: 100%; height: 100%; min-height: 0; }
.product-gallery-stage .product-stage { width: 100%; height: auto; aspect-ratio: 1.08; }
.product-gallery-stage .product-mockup-caption, .product-gallery-stage .product-mug-wrap, .product-gallery-stage .product-scale-reference, .product-gallery-stage .product-width-guide, .product-gallery-stage .product-height-guide, .product-gallery-stage .product-placement-note { display: none; }
.product-gallery-photo { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #fff; }
.product-gallery-view > .product-catalogue-photo { position: absolute; inset: 0; }
.product-catalogue-photo { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.product-catalogue-photo-output { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.product-catalogue-photo.is-loading > .product-catalogue-photo-output { opacity: 0; }
.product-catalogue-photo-fallback { width: 100%; height: 100%; display: grid; place-items: center; pointer-events: none; }
.product-catalogue-photo:not(.is-loading) > .product-catalogue-photo-fallback { visibility: hidden; }
.product-catalogue-photo-fallback > .product-mockup { width: 100%; }
.product-gallery-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; padding: 0 2px; color: #696658; font: 400 10px/1.4 'Manrope', sans-serif; }
.product-gallery-thumbnails { display: flex; gap: 7px; overflow-x: auto; padding: 5px 2px 8px; scrollbar-width: thin; scrollbar-color: #acae9c transparent; overscroll-behavior-x: contain; }
.product-gallery-thumbnail { position: relative; flex: 0 0 44px; width: 44px; height: 44px; padding: 3px; border: 1px solid #bbb8a8; border-radius: 3px; background: #faf9f4; cursor: pointer; }
.product-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbnail.is-design img { object-fit: contain; }
.product-gallery-thumbnail > span { position: absolute; bottom: 1px; left: 1px; right: 1px; padding: 2px 0; color: #fff; background: #343c2ddd; font: 600 7px/1 'Manrope', sans-serif; }
.product-gallery-thumbnail[aria-pressed="true"] { border-color: #414b32; box-shadow: 0 0 0 1px #414b32; }
.product-image-gallery button:focus-visible { outline: 2px solid #52613e; outline-offset: 2px; }
.product-gallery-empty { font-size: 12px; padding: 44px 20px; }
.shop-product-image .product-image-gallery .product-webgl-card { pointer-events: auto; aspect-ratio: 1.08; min-height: 0; }
.shop-product-image .product-image-gallery .product-stage { aspect-ratio: 1.08; }
.shop-product-image:has(.product-image-gallery) { padding-top: 48px; }
.shop-product-selected { top: auto; bottom: 8px; right: 12px; pointer-events: none; }
.material-art:has(.product-image-gallery) { padding-top: 40px; }
.material-art:has(.product-image-gallery) .material-zoom-button { top: 12px; bottom: auto; }
.material-art:has(.product-image-gallery) .material-kicker { padding-right: 90px; }
.featured-product-visual:has(.product-image-gallery) { padding-top: 40px; }
.product-preview-dialog-art .product-image-gallery { max-width: 550px; margin-inline: auto; }
.print-promo-visual .product-image-gallery { width: 100%; max-width: 340px; }
.print-promo-visual:has(.product-image-gallery) { padding: 18px; }
.article-print-promo-phone .print-promo-visual:has(.product-image-gallery) { min-height: 0; }
.frame-promo-art:has(.product-image-gallery) { min-width: 0; }
.frame-promo-rail:has(.product-image-gallery) { grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr); }
.admin-default-stage .product-image-gallery .product-webgl-card { min-height: 0; }
@media (prefers-reduced-motion: reduce) {
    .product-gallery-switch-track, .product-gallery-switch-track > span { transition: none; }
    .product-gallery-view.is-leaving, .product-gallery-view.is-entering { animation: none; }
}
