/* Use the same uncut square in the product rail, catalogue, related items and gallery. */
body :is(li.product,.wc-block-product,.wc-block-grid__product,.fs-product-card,.fr-product-card,.premium-carousel-template) :is(figure.ct-media-container,.wc-block-grid__product-image,.wc-block-components-product-image,.fs-card-image,.fr-card-image) {
  aspect-ratio: 1 / 1 !important;
  background: #fff;
}
body :is(li.product,.wc-block-product,.wc-block-grid__product,.fs-product-card,.fr-product-card,.premium-carousel-template) img[src*="fieldworld-"][src*="-square"],
body :is(.woocommerce-product-gallery,.ct-product-gallery,.woocommerce-product-gallery__wrapper) img[src*="-square"] {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  background-color: #fff;
  mix-blend-mode: normal;
}
/* Blocksy wraps the image in an anchor. The storefront's original theme sets that anchor to portrait. */
body #fs-store #fs-catalogue-grid li.product figure,
body #fs-store #fs-catalogue-grid li.product figure > a.ct-media-container,
body.home #fr-product-rail li.product figure,
body.home #fr-product-rail li.product figure > a.ct-media-container,
body #main .products li.product figure,
body #main .products li.product figure > a.ct-media-container,
body .fs-store .fi-product .fi-gallery-main {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #fff !important;
}
body #fs-store #fs-catalogue-grid li.product figure img,
body.home #fr-product-rail li.product figure img,
body #main .products li.product figure img,
body .fs-store .fi-gallery-main img,
body .fs-store .fi-gallery-thumbs img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal !important;
  background: #fff !important;
}
body .fs-store .fi-gallery-thumbs button {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}
body .elementor .fw-square-product-photo {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: #fff;
  mix-blend-mode: normal !important;
}
