/* Square product presentation: preserve the full instrument on white. */
.card .card-img,.card.featured .card-img{aspect-ratio:1/1;height:auto;min-height:0;width:100%;align-self:center;box-sizing:border-box}
.card .card-img img{position:absolute;inset:20px;display:block;width:calc(100% - 40px);height:calc(100% - 40px);max-width:none;max-height:none;aspect-ratio:auto;min-width:0;min-height:0;object-fit:contain;background:#fff}
.card:hover .card-img img{transform:none}
.hero-product img{display:block;aspect-ratio:1/1;width:100%;height:auto;object-fit:contain;background:#fff}
body.site-interior .search-thumb{aspect-ratio:1/1;height:auto;background:#fff}
body.site-interior .search-thumb img{width:100%;height:100%;aspect-ratio:1/1;max-height:none;object-fit:contain;background:#fff}
body.site-interior .product-gallery-main{width:min(100%,440px);max-width:100%;height:auto;aspect-ratio:1/1;box-sizing:border-box;background:#fff}
body.site-interior .product-gallery-main img{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:none;aspect-ratio:1/1;object-fit:scale-down;background:#fff}
body.site-interior .gallery-thumb img{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:contain;background:#fff}

/* Compact product media column */
@media(min-width:1025px){
 body.site-interior .product-detail,body.site-interior .product-detail.media-narrow{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:clamp(28px,3vw,40px)}
}
@media(max-width:1024px){
 body.site-interior .product-detail,body.site-interior .product-detail.media-narrow{grid-template-columns:minmax(0,1fr)}
}

/* Keep image sizing independent of intrinsic bitmap dimensions. */
.card .card-img,.card.featured .card-img{position:relative;display:block;flex-shrink:0;min-width:0}
.card:not(.featured) .card-body{padding:16px 18px;gap:7px;min-width:0}
.card:not(.featured) .card-title{line-height:1.5;min-height:3em;overflow-wrap:anywhere}
.card:not(.featured) .card-foot{margin-top:5px;padding-top:10px}
