/* Replacement editorial photos use their source geometry, without letterboxing or subject cropping.
   Explicit ratios also preserve layout when sizes=auto enables intrinsic size containment. */
.ed-in img.ed-diversity,.page-hero.full>figure img.ed-diversity{display:block;width:100%;height:auto!important;max-height:none!important;aspect-ratio:var(--editorial-ratio)!important;object-fit:contain;object-position:center;transform:none}
.product-hero:has(>img.ed-diversity){padding:0;border:0;background:transparent;border-radius:var(--b2-radius,8px);box-shadow:var(--b2-shadow);overflow:hidden}
.product-hero>img.ed-diversity{display:block;width:100%;height:auto;aspect-ratio:var(--editorial-ratio);object-fit:contain;transform:none}
img[data-editorial="team-at-work"]{--editorial-ratio:900/703}
img[data-editorial="mould-preparation"]{--editorial-ratio:1074/1043}
img[data-editorial="master-adjustment"]{--editorial-ratio:1083/1191}
img[data-editorial="workshop-overview"]{--editorial-ratio:3308/1842}
img[data-editorial="casting-shell-removal"]{--editorial-ratio:1065/1011}
img[data-editorial="mechanical-polishing"]{--editorial-ratio:1772/1590}
img[data-editorial="intermediate-inspection"]{--editorial-ratio:3093/1502}
img[data-editorial="plated-rack-removal"]{--editorial-ratio:1918/1666}
#forming img[data-original="assets/p1/mfg-casting-shell.webp"]{display:block;height:auto!important;aspect-ratio:1600/900!important;object-fit:contain;transform:none}

/* Fig. 05: retain the upper work area and contact point; omit the lower floor/bags. */
.ed-in img[data-editorial="clamped-polishing"]{--editorial-ratio:8/5;object-fit:cover;object-position:50% 0%}
