/*
 * CHARME 1.6 — one photographic surface for product pictures.
 * Remove only decorative photo frames/padding. No product images are changed.
 */

/* Product detail: photograph uses its actual natural background across the
 * whole picture area, rather than a photo rectangle inside a grey mat. */
.woocommerce .cj-pdp-v15 .cj-product-gallery,
.woocommerce .cj-pdp-v15 .cj-pdp-gallery-stage,
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery,
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery__wrapper,
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery__image {
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  background:transparent!important;
}
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery__image > a {
  display:flex!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:1/1;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden;
  border:0!important;
  padding:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery__image img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:none!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  mix-blend-mode:normal!important;
  background:transparent!important;
  transform:none!important;
}
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery .flex-control-thumbs li {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery .flex-control-thumbs img {
  border:0!important;
  outline:0!important;
  padding:0!important;
  background:transparent!important;
}
.woocommerce .cj-pdp-v15 .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  outline:0!important;
  box-shadow:inset 0 -2px #72504e!important;
}

/* Catalog and similar products: eliminate the differently colored picture
 * inset around the WooCommerce thumbnail. Natural proportions stay intact. */
.woocommerce ul.products li.product.cj-product-card .cj-card-media,
.cj-product-card .cj-card-media,
.cj-v04-results .cj-product-card .cj-card-media,
.cj-v08-selected .cj-product-card .cj-card-media,
.cj-v13-pick-photo,
.cj-v10-lab-picture {
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  background:transparent!important;
  overflow:hidden;
}
.woocommerce ul.products li.product.cj-product-card .cj-card-media > a,
.cj-product-card .cj-card-media > a {
  display:flex!important;
  width:100%!important;
  height:100%!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
}
.woocommerce ul.products li.product.cj-product-card img.cj-card-photo,
.cj-product-card .cj-card-media img.cj-card-photo,
.cj-product-card .cj-card-photo-secondary,
.cj-v13-pick-photo img,
.cj-v10-lab-picture img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  mix-blend-mode:normal!important;
}
@media (max-width:800px) {
  .woocommerce .cj-pdp-v15 .woocommerce-product-gallery__image > a {
    min-height:0!important;
    height:auto!important;
    aspect-ratio:1/1;
  }
  .woocommerce .cj-pdp-v15 .woocommerce-product-gallery__image img {
    max-height:none!important;
    padding:0!important;
  }
}
