/* Scoped to Splitmarket product photography; full images retain their proportions. */
.spm-store ul.products li.product figure,
.spm-store .products .product .ct-woo-card-extra { max-width: 100%; }
.spm-store ul.products li.product figure > a.ct-media-container,
.spm-store ul.products li.product > a.ct-media-container,
.spm-store .products .product figure .ct-media-container {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    background: #fff;
    padding: 14px;
    box-sizing: border-box;
}
.spm-store .products .product figure .ct-media-container img,
.spm-store .products .product > .ct-media-container img,
.spm-store .products .product img.spm-complete-product-image {
    position: absolute !important;
    inset: 14px !important;
    display: block !important;
    width: calc(100% - 28px) !important;
    height: calc(100% - 28px) !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: scale-down !important;
    object-position: center !important;
    transform: none !important;
    margin: 0 auto !important;
    background: #fff;
}
.spm-store.single-product .woocommerce-product-gallery .ct-media-container,
.spm-store.single-product .woocommerce-product-gallery__image {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden;
    background: #fff;
}
.spm-store.single-product .woocommerce-product-gallery .ct-media-container img.wp-post-image,
.spm-store.single-product .woocommerce-product-gallery__image img {
    position: absolute !important;
    inset: 16px !important;
    display: block !important;
    object-fit: scale-down !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
    width: calc(100% - 32px) !important;
    height: calc(100% - 32px) !important;
    aspect-ratio: auto !important;
    transform: none !important;
    background: #fff;
}
.spm-store .spm-photo-series { display: block; font-size: 11px; line-height: 1.5; color: #536b7a; margin: 4px 0; }
.spm-store .spm-photo-series-detail { font-size: 13px; line-height: 1.5; color: #536b7a; margin-top: 12px; }
@media (max-width: 479px) {
    .spm-store .products .product figure .ct-media-container { padding: 8px; }
    .spm-store .products .product figure .ct-media-container img {
        inset: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important;
    }
}
