/* Product photography framing. Original source assets are unchanged.
   Scope intentionally excludes customer logos, certificates and process diagrams. */
.upgrade-product-card img{aspect-ratio:3/2;height:auto;object-fit:contain;object-position:center;}
.catalog-photo,.related-grid .catalog-photo{width:100%;height:auto;min-width:0;aspect-ratio:3/2;overflow:hidden;}
.catalog-photo img,.related-grid .catalog-photo img{width:100%;height:auto;max-width:100%;aspect-ratio:3/2;object-fit:contain;object-position:center;}
.catalog-card:hover .catalog-photo img{transform:none;}
.split-hero-image>img[src*="product-series-"],.split-hero-image>img[src*="product-studio-"]{object-fit:contain;object-position:center;}
.forms-grid figure{overflow:hidden;}
.forms-grid img{width:100%;aspect-ratio:3/2;height:auto;max-height:none;object-fit:contain;object-position:center;background:#fff;}
.forms-count-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.factory-photo-card figure{overflow:hidden;}
.factory-photo-card figure img{height:auto;aspect-ratio:3/2;object-fit:contain;object-position:center;background:#fff;}

/* Crop only verified background margins using the browser's source viewport.
   Unsupported browsers retain the complete image through object-fit:contain. */
@supports (object-view-box:inset(10%)) {
 .forms-grid img,.factory-photo-card figure img{object-view-box:var(--product-view,inset(0));}
 .forms-grid img[src*="-display."],.factory-photo-card figure img[src*="-display."]{--product-view:inset(10%);}
 .forms-grid img[src*="ndfeb-rings-"],.factory-photo-card figure img[src*="ndfeb-rings-"]{--product-view:inset(23% 22% 24% 22%);}
 .forms-grid img[src*="ndfeb-cylinders-"],.factory-photo-card figure img[src*="ndfeb-cylinders-"]{--product-view:inset(12% 20% 12% 20%);}
 .forms-grid img[src*="smco-blocks-"],.factory-photo-card figure img[src*="smco-blocks-"]{--product-view:inset(12% 22% 12% 29%);}
 .forms-grid img[src*="alnico-cast-"],.factory-photo-card figure img[src*="alnico-cast-"]{--product-view:inset(18% 22% 18% 22%);}
 .forms-grid img[src*="flexible-sheet-"],.factory-photo-card figure img[src*="flexible-sheet-"]{--product-view:inset(12% 17% 12% 22%);}
 .forms-grid img[src$="/ee-1200.webp"]{--product-view:inset(17% 25% 24% 25%);}
 .forms-grid img[src$="/ei-1200.webp"]{--product-view:inset(22% 29% 28% 29%);}
 .forms-grid img[src$="/ec-1200.webp"]{--product-view:inset(20% 25% 28% 25%);}
 .forms-grid img[src$="/ep-1200.webp"]{--product-view:inset(24% 28% 30% 28%);}
 .forms-grid img[src*="rotor-high-speed-"],.factory-photo-card figure img[src*="rotor-high-speed-"]{--product-view:inset(20% 25% 20% 25%);}
 .forms-grid img[src*="rotor-bonded-"],.factory-photo-card figure img[src*="rotor-bonded-"]{--product-view:inset(13% 24% 20% 22%);}
 .forms-grid img[src$="/photo-0390-1200.webp"]{--product-view:inset(13% 17% 27% 9%);}
 .forms-grid img[src$="/mounting-1200.webp"],.forms-grid img[src$="/mounting2-1200.webp"],.forms-grid img[src$="/channel-1200.webp"]{--product-view:inset(10%);}
}
@media(max-width:600px){
 .forms-grid{grid-template-columns:minmax(0,1fr);gap:20px;}
 .forms-grid img,.forms-count-3 img{max-height:none;aspect-ratio:3/2;}
 .forms-grid figcaption{padding:20px;}
}
