/* Scoped to product images; excludes badges, logos and gallery thumbnails. */
.woocommerce ul.products li.product a img.attachment-medium_large,
.woocommerce ul.products li.product a img.wp-post-image,
.wc-block-grid__product-image img,
.wc-block-product-template .wc-block-components-product-image img {
 width:100%!important;height:auto!important;aspect-ratio:1 / 1!important;
 object-fit:contain!important;object-position:center!important;
 background:#fff;box-sizing:border-box;padding:8px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
 object-fit:contain;object-position:center;background:#fff;
}
