/* Source images and responsive candidates are uncropped by catalog-images.php. */
body.shh-catalog-full-images ul.products li.product .shh-catalog-image-frame {
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:1!important;
  margin:0 0 12px!important;
  padding:4px!important;
  overflow:visible!important;
  background:#fff;
  transform:none!important;
  scale:none!important;
}
body.shh-catalog-full-images ul.products li.product .et_shop_image:has(>.shh-catalog-image-frame),
body.shh-catalog-full-images ul.products li.product a:hover .et_shop_image:has(>.shh-catalog-image-frame) {
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  overflow:visible!important;
  transform:none!important;
  scale:none!important;
}
body.shh-catalog-full-images ul.products li.product .shh-catalog-image-frame img,
body.shh-catalog-full-images ul.products li.product a:hover .shh-catalog-image-frame img {
  display:block!important;
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  scale:none!important;
  clip:auto!important;
  clip-path:none!important;
  box-shadow:none!important;
}

/* Product-only selectors retain each component's own sizing and layout. */
.shh-full-product-image,
.woocommerce .shh-full-product-image,
.woocommerce a:hover .shh-full-product-image,
.woocommerce-cart-form__cart-item .product-thumbnail img,
.woocommerce-mini-cart-item img,
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img,
.wc-block-components-product-image img,
.wc-block-grid__product-image img,
.shh-search-results img {
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  scale:none!important;
  clip:auto!important;
  clip-path:none!important;
}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce-product-gallery .woocommerce-product-gallery__image a:hover img,
.wp-block-woocommerce-product-gallery img {
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  scale:none!important;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
  width:100%!important;
  height:auto!important;
}
.woocommerce-product-gallery .flex-control-thumbs img {
  width:100%!important;
  height:auto!important;
  aspect-ratio:1!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  scale:none!important;
}
.woocommerce-product-gallery .zoomImg { display:none!important; }
