/* Shared product photography: preserve the full source composition. */
body.woocommerce ul.products li.product a.woocommerce-loop-image-link{display:flex!important;align-items:center;justify-content:center;aspect-ratio:4/5;width:100%;height:auto!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;margin-bottom:16px!important}
body.woocommerce ul.products li.product a.woocommerce-loop-image-link img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;padding:0!important;background:transparent!important;border:0!important;border-radius:10px!important;box-shadow:0 6px 20px rgba(38,16,30,.13)!important;margin:0!important}
body.single-product .woocommerce-product-gallery,body.single-product .woocommerce-product-gallery__wrapper,body.single-product .woocommerce-product-gallery__image,body.single-product .woocommerce-product-gallery__image>a{background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body.single-product .woocommerce-product-gallery__image{overflow:hidden!important;border-radius:10px!important;box-shadow:0 6px 20px rgba(38,16,30,.13)!important}
body.single-product .woocommerce-product-gallery__image img:not(.zoomImg){display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;background:transparent!important;padding:0!important;border:0!important;border-radius:10px!important}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img{border-radius:10px!important;object-fit:contain!important}
/* Definite image-area height prevents lazy-image intrinsic sizing loops. */
body.woocommerce ul.products li.product a.woocommerce-loop-image-link{height:clamp(200px,27vw,340px)!important;aspect-ratio:auto!important;min-height:0!important}
body.woocommerce ul.products li.product a.woocommerce-loop-image-link img{min-width:0!important;min-height:0!important;flex:0 1 auto!important;max-height:100%!important}
@media(max-width:600px){body.woocommerce ul.products li.product a.woocommerce-loop-image-link{height:210px!important}}
/* Preserve natural proportions when WordPress adds sizes="auto" to lazy gallery images. */
body.single-product .woocommerce-product-gallery__image img:not(.zoomImg){contain:none!important;contain-intrinsic-size:none!important}
/* Give every native gallery slide a definite width before lazy images load. */
body.single-product .woocommerce-product-gallery__image>a{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}
/* Frame the photograph itself, rather than a padded gallery-width box. */
body.single-product .woocommerce-product-gallery__image{box-shadow:none!important;border-radius:0!important;overflow:visible!important}
body.single-product .woocommerce-product-gallery__image>a{width:fit-content!important;max-width:100%!important;margin-inline:auto!important;border-radius:10px!important;overflow:hidden!important;box-shadow:0 6px 20px rgba(38,16,30,.13)!important}
body.single-product .woocommerce-product-gallery__image img:not(.zoomImg){width:auto!important;max-width:100%!important;height:auto!important;margin:0!important}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img{background:transparent!important;padding:0!important}
/* Shared native Kadence resource card: retain the supplied botanical corners. */
body.tax-product_cat.rs-commerce-surface #wrapper .rc-free-resources{position:relative!important;isolation:isolate;overflow:hidden;background-color:#fff4e5!important;background-image:url("free-resources-botanical.webp")!important;background-size:auto 100%!important;background-position:right bottom!important;background-repeat:no-repeat!important}
body.tax-product_cat.rs-commerce-surface #wrapper .rc-free-resources::before{content:"";position:absolute;inset:0 0 48% 0;z-index:-1;pointer-events:none;background-image:url("free-resources-botanical.webp");background-size:auto 210%;background-position:left top;background-repeat:no-repeat;mask-image:linear-gradient(to bottom,#000 35%,transparent 100%)}
body.tax-product_cat.rs-commerce-surface #wrapper .rc-free-resources>.wp-block-group__inner-container{position:relative;z-index:1}

/* Native WooCommerce cards share a responsive 4:5 image slot. Fit, never crop. */
body.woocommerce ul.products li.product a.woocommerce-loop-image-link{height:auto!important;aspect-ratio:4/5!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
body.woocommerce ul.products li.product a.woocommerce-loop-image-link img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;border:0!important;padding:0!important;background:transparent!important;border-radius:10px!important;box-shadow:0 6px 20px rgba(38,16,30,.13)!important}

