/* Présentation 5,4:4 : même cadre, image complète, orientation non destructive. */
.pc-convolux-frame,
body.pc-convolux-product .woocommerce-product-gallery__image:first-child>a {
 display:block!important;position:relative!important;width:100%!important;height:auto!important;
 aspect-ratio:27 / 20!important;padding:0!important;background:#fff!important;overflow:hidden!important;
}
.pc-convolux-frame::before,.pc-convolux-frame::after{padding:0!important;content:none!important}
/* Seule la première image de présentation est concernée. */
.pc-convolux-frame>img.pc-convolux-image,
body.pc-convolux-product .pc-product-media .woocommerce-product-gallery__image:first-child>a>img {
 display:block!important;position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;
 object-fit:contain!important;object-position:center!important;background:#fff!important;opacity:1!important;
 transform:translate(calc(-50% + var(--pc-pan-x,0px)),calc(-50% + var(--pc-pan-y,0px))) rotate(var(--pc-angle,0deg)) scale(var(--pc-zoom,0.96))!important;
 transform-origin:center!important;
}
.pc-convolux-frame.pc-convolux-portrait>img.pc-convolux-image,
body.pc-convolux-product .pc-product-media .woocommerce-product-gallery__image:first-child>a.pc-convolux-portrait>img,
body.pc-convolux-product-portrait .pc-product-media .woocommerce-product-gallery__image:first-child>a:not(.pc-convolux-frame)>img {
 width:calc(100% / 1.35)!important;height:135%!important;--pc-angle:90deg;
}
/* Le survol reste une loupe dans le cadre et conserve l’orientation paysage. */
body.pc-convolux-product .woocommerce-product-gallery__image:first-child>img.zoomImg {display:none!important}
body.pc-convolux-product .pc-convolux-frame {cursor:zoom-in}
body.pc-convolux-product .pc-convolux-frame.pc-convolux-zoomed {cursor:crosshair}
body.pc-convolux-product .woocommerce-product-gallery .flex-viewport{height:auto!important}
/* Le ratio du thème ne doit pas imposer une seconde hauteur à la vignette. */
article.pc-convolux-kit .img-border:has(.pc-convolux-frame){height:auto!important;aspect-ratio:27 / 20;padding:0!important}
