/* Keep card geometry consistent while preserving the entire product image. */
.products .product .product-image .inner {
    aspect-ratio: 1 / 1;
    background: #fff;
}
.products .product .product-image .inner > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* Porto scales the hover image to 1.1, clipping its outer edges. */
    transform: none !important;
}
.product-thumbs-slider .img-thumbnail img,
.woocommerce-product-gallery .flex-control-thumbs img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

