/* Alternate product view: scoped to cards; gallery, prices and actions stay intact. */
.card .art .card-photo-pair{position:relative;display:block;width:100%;height:100%;isolation:isolate}
.card .art .card-photo-pair>.model-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity 220ms ease}
.card .art .card-photo-secondary{opacity:0;pointer-events:none}
.card .art:focus-visible .card-photo-pair[data-photo-ready="true"] .card-photo-primary{opacity:0}
.card .art:focus-visible .card-photo-pair[data-photo-ready="true"] .card-photo-secondary{opacity:1}
@media(hover:hover) and (pointer:fine){
 .card .art:hover .card-photo-pair[data-photo-ready="true"] .card-photo-primary{opacity:0}
 .card .art:hover .card-photo-pair[data-photo-ready="true"] .card-photo-secondary{opacity:1}
}
@media(prefers-reduced-motion:reduce){.card .art .card-photo-pair>.model-photo{transition:none}}

/* Preserve the available photograph; never fill the frame by cropping. */
.card .art .model-photo{object-fit:contain;object-position:center;padding:8px}
.gallery-picture{padding:20px;display:flex;align-items:center;justify-content:center}
.gallery-picture>.model-photo{width:100%;height:100%;object-fit:contain;object-position:center}
.gallery-photo-count{line-height:1.5;overflow-wrap:anywhere;padding:0 12px}
@media(max-width:570px){.gallery-picture{padding:12px}}

.card-photo-caption{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;opacity:0;background:#fffef0ed;color:#0b253d;border:1px solid #dce5e9;border-radius:20px;padding:5px 10px;font-size:11px;white-space:nowrap;pointer-events:none}
.card .art:focus-visible [data-photo-ready="true"] .card-photo-caption{opacity:1}
@media(hover:hover) and (pointer:fine){.card .art:hover [data-photo-ready="true"] .card-photo-caption{opacity:1}}
.photo-reference-note{font-size:12px;line-height:1.5;color:#385267;background:#eff6f7;border-left:3px solid #16818b;padding:10px 12px;margin:0 0 12px}
