/* Crop only surrounding background in the viewport; do not re-encode product photos. */
.niki-product-frame{display:block!important;position:relative!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;overflow:hidden!important;background:#fff;margin:0 0 1em!important;padding:0!important;border-radius:6px;isolation:isolate}
body .niki-product-frame>img.niki-framed-photo.niki-framed-photo.niki-framed-photo{position:absolute!important;width:var(--nfp-width)!important;height:var(--nfp-height)!important;max-width:none!important;max-height:none!important;min-width:0!important;left:var(--nfp-left)!important;top:var(--nfp-top)!important;right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:fill!important;aspect-ratio:auto!important;transform:none!important;display:block!important}
.woocommerce-product-gallery .niki-product-frame{margin-bottom:0!important}

/* Tighter product crops, without the former white card padding. */
body .niki-product-frame{background:transparent!important;isolation:auto!important;mix-blend-mode:normal}
body .woocommerce ul.products li.product a>img:not(.niki-framed-photo),
body .new-catalogue>article>a>img:not(.niki-framed-photo){padding:0!important;background:transparent!important;mix-blend-mode:normal}
body .woocommerce div.product div.images img,
body .new-product .photo>img{padding:0!important;background:transparent!important;mix-blend-mode:normal}
body .niki-category-image{background:transparent!important}
body .niki-category-image>img{padding:0!important;background:transparent!important;mix-blend-mode:normal}
body .collection-photo img{background:transparent!important}

/* Product photographs stay opaque, including when the background ribbon is disabled. */
body .niki-product-frame{background:#fff!important;isolation:isolate!important;mix-blend-mode:normal!important;opacity:1!important}
body .niki-product-frame>img,
body .woocommerce ul.products li.product a img,
body .woocommerce div.product div.images img,
body .new-catalogue img,
body .new-product .photo>img,
body .product-card img,
body .collection-photo img,
body .gift-editorial img,
body .niki-category-image>img{background:#fff!important;mix-blend-mode:normal!important;opacity:1!important}
body .new-product .photo,
body .woocommerce-product-gallery__image,
body .niki-category-image{isolation:isolate!important}
