.product-photo-slot {
 display:block;
 position:relative;
 container-type:size;
 width:100%;
 height:100%;
 overflow:hidden;
 --photo-padding:12px;
}
.product-photo-crop {
 display:block;
 position:absolute;
 left:50%;
 top:50%;
 transform:translate(-50%,-50%);
 overflow:hidden;
 width:min(calc(100% - var(--photo-padding)),calc((100cqh - var(--photo-padding)) * var(--photo-ratio)));
 height:min(calc(100% - var(--photo-padding)),calc((100cqw - var(--photo-padding)) / var(--photo-ratio)));
}
.product-photo-slot .product-photo-crop > img {
 display:block;
 position:absolute;
 left:var(--photo-left);
 top:var(--photo-top);
 width:var(--photo-width);
 height:auto;
 max-width:none;
 aspect-ratio:var(--source-ratio);
 object-fit:initial;
 border-radius:0;
 background:none;
 mix-blend-mode:multiply;
}
