/* Stable family frames: photo angles never change the stage size or fit. */
#details .product-detail-layout .product-gallery[data-photo-frame] .gallery-stage{
 width:100%;max-width:none;height:auto;aspect-ratio:var(--gallery-aspect,1 / 1);min-height:0;margin:0;border-radius:14px;overflow:hidden;isolation:isolate;
}
#details .product-detail-layout .product-gallery[data-photo-frame] .gallery-stage>.detail-product{
 position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;padding:0;margin:0;border-radius:0;object-fit:contain;object-position:center;background:transparent;
}
#details .product-detail-layout .product-gallery[data-photo-frame] .gallery-stage>.detail-product[data-photo-fit="contain"]{object-fit:contain}
#details .product-detail-layout .product-gallery[data-photo-frame] .gallery-thumbs{width:100%;max-width:none;margin-inline:0}
#details .product-detail-layout .product-gallery[data-photo-frame] .gallery-expand{top:12px;right:12px}
/* One card fills the same image slot as its neighbours, including Happy keychain. */
#catalog .catalog-spaced-photo[data-photo-spacing="happy"] img{width:100%;height:100%;border-radius:0}
@media(max-width:760px){
 #details .product-detail-layout .product-gallery[data-photo-frame] .gallery-stage{border-radius:12px}
 #details .product-detail-layout .product-gallery[data-photo-frame] .gallery-expand{top:10px;right:10px}
}

#catalog .catalog-art img.landscape-blanket-photo{object-fit:contain!important;background:#fff8ed}

img[src*="-landscape-"]{object-fit:contain!important}

/* One centered, uncropped catalog frame for local and live products. */
#catalog #catalog-grid .catalog-art{height:auto;aspect-ratio:1;min-width:0;flex-shrink:0}
#catalog .catalog-photo-frame{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#f7f1e7}
#catalog .catalog-photo-frame>img.catalog-product-photo{display:block;position:static;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:0;border-radius:0;object-fit:contain;object-position:50% 50%;scale:1}
/* Keep artwork visible at hover as well as at rest. */
#catalog #catalog-grid>.favorite-card:hover .catalog-photo-frame>img{scale:1}
.pilot-card-media>.catalog-photo-frame{width:100%;height:100%;display:grid;place-items:center}
.pilot-card-media>.catalog-photo-frame>img{width:100%;height:100%;object-fit:contain;object-position:center}
