/* Product-only sizing. Brand text and marks are excluded. */
html body :is(#product-media-enhancement,.image-stage,.catalog-photo,.accessory-photo,.product-stage,.unified-card-stage):has(>img.product-media-enhanced){height:424px!important;min-height:0!important;padding:8px!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body img.product-media-enhanced:is(#product-media-enhancement,.product-media-enhanced){object-fit:contain!important;max-width:100%!important;transform:none!important}
html body :is(#product-media-enhancement,.image-stage,.catalog-photo,.accessory-photo,.product-stage,.unified-card-stage)>img.product-media-enhanced{height:408px!important;max-height:408px!important;width:100%!important;padding:0!important}
html body :is(#product-media-enhancement,.card,.tile,.category-card)>img.product-media-enhanced{height:424px!important;max-height:424px!important;width:100%!important;padding:8px!important}
html body :is(#product-media-enhancement,.product-photo,.product-image,.unified-detail-stage):has(>img.product-media-enhanced){height:632px!important;min-height:0!important;padding:12px!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body :is(#product-media-enhancement,.product-photo,.product-image,.unified-detail-stage)>img.product-media-enhanced{height:608px!important;max-height:608px!important;width:100%!important;padding:0!important}
html body .product-hub .hub-family-grid .hub-category-card,html body .product-hub .hub-secondary .hub-category-card{grid-template-rows:424px 34px minmax(56px,auto) 48px}
html body .product-hub .hub-image img.product-media-enhanced{height:484px!important;max-height:484px!important;background:transparent!important}
html body .product-hub .product-spotlight-visual img.product-media-enhanced{height:476px!important;max-height:476px!important}
html body .gateway .gateway-product-stage{height:410px!important}
html body .gateway .gateway-product-stage>img.product-media-enhanced{height:100%!important;max-height:100%!important}
html body [data-od-id="fastening-hero"]>img.product-media-enhanced{height:516px!important;max-height:516px!important}
@media(max-width:760px){
html body :is(#product-media-enhancement,.image-stage,.catalog-photo,.accessory-photo,.product-stage,.unified-card-stage):has(>img.product-media-enhanced){height:364px!important}
html body :is(#product-media-enhancement,.image-stage,.catalog-photo,.accessory-photo,.product-stage,.unified-card-stage)>img.product-media-enhanced{height:348px!important;max-height:348px!important}
html body :is(#product-media-enhancement,.card,.tile,.category-card)>img.product-media-enhanced{height:364px!important;max-height:364px!important}
html body :is(#product-media-enhancement,.product-photo,.product-image,.unified-detail-stage):has(>img.product-media-enhanced){height:492px!important}
html body :is(#product-media-enhancement,.product-photo,.product-image,.unified-detail-stage)>img.product-media-enhanced{height:468px!important;max-height:468px!important}
html body .product-hub .hub-family-grid .hub-category-card,html body .product-hub .hub-secondary .hub-category-card{grid-template-rows:364px 34px minmax(56px,auto) 48px}
html body .product-hub .hub-image img.product-media-enhanced{height:360px!important;max-height:360px!important}
html body .product-hub .product-spotlight-visual img.product-media-enhanced{height:394px!important;max-height:394px!important}
html body .gateway .gateway-product-stage{height:360px!important}
html body [data-od-id="fastening-hero"]>img.product-media-enhanced{height:382px!important;max-height:382px!important}
}

/* Natural photo presentation: no extra sharpening or pixel interpolation effects. */
html body img.product-media-enhanced:is(#product-media-enhancement,.product-media-enhanced){filter:none!important;image-rendering:auto!important;object-fit:contain!important;object-position:center!important}

/* Product photography backgrounds: white stages, natural unblended cutouts. */
html body :is(#product-white-background,.product-stage,.image-stage,.catalog-photo,.accessory-photo,.product-photo,.product-image,.selected-photo-stage,.unified-card-stage,.unified-detail-stage,.th501-cup-stage,.gateway-product-stage,.product-spotlight-visual):has(img.product-media-enhanced){background:#fff!important;box-shadow:none!important}
html body img.product-media-enhanced:is(#product-white-background,.product-media-enhanced){background:transparent!important;mix-blend-mode:normal!important;box-shadow:none!important}
html body .photo-dialog #photo-detail{background:#fff!important}

/* White backgrounds for product hero stages as well as catalogue cards. */
html body :is(.hub-image,.hero-visual,.hero-image,[data-od-id="fastening-hero"]):has(>img.product-media-enhanced){background:#fff!important;box-shadow:none!important}
