/* The original photo always fits inside the stage. Only the surrounding edge colour spreads. */
.mbmac-products .mbmac-card .mbmac-image,
.mbm-equipment-category .pk-product .pk-product-gallery-slide {
    isolation: isolate;
    overflow: hidden;
    background: var(--mbm-photo-edges, linear-gradient(135deg,#e9e8e6,#f7f6f4)) center / 100% 100% no-repeat !important;
    padding: 0 !important;
}
.mbmac-products .mbmac-card .mbmac-image img,
.mbm-equipment-category .pk-product .pk-product-gallery-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
}
.mbmac-products .mbmac-image::before,.mbmac-products .mbmac-image::after { background-image: none !important; }
.mbmac-products .mbmac-card h3 a,.mbmac-products .mbmac-price { color:#172127; }
.mbmac-products .mbmac-heading p,.mbmac-products .mbmac-description { color:#414c54; }
.mbmac-products .mbmac-order .mbmac-buy { line-height:1.15; }
/* Keep the right edge of order buttons clear of the floating telephone. */
@media(max-width:700px){
    .mbmac-equipment .mbmac-order,.mbmac-equipment .mbmac-card-bottom>a.mbmac-buy { margin-inline-end:42px; }
}
@media(min-width:701px) and (max-width:1250px){.mbmac-products.mbmac-equipment {margin-inline-end:58px;}}
@media(min-width:1200px) and (min-height:801px){
    .mbmac-products.mbmac-equipment .mbmac-image {height:clamp(155px,13vw,192px);max-height:192px;aspect-ratio:auto;}
}
#mbm-internal .mpp-card > img,#mbm-internal .mpp-product > img {
    object-fit:contain!important;
    object-position:center!important;
    background:linear-gradient(135deg,#e9e8e6,#f7f6f4);
}
.mbmac-products:not(.mbmac-equipment) .mbmac-card .mbmac-image {
    aspect-ratio:var(--mbm-image-ratio,1)!important;
}
.mbmac-products.mbmac-equipment .mbmac-card a.mbmac-image {
    width:100%!important;height:auto!important;max-height:none!important;
    aspect-ratio:var(--mbm-image-ratio,1)!important;
    border:0;border-radius:8px;align-self:center;
}
.mbmac-products.mbmac-equipment .mbmac-card a.mbmac-image img {height:auto!important;}
@media(min-width:701px) {
    .mbmac-products.mbmac-equipment .mbmac-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
    .mbmac-products.mbmac-equipment article.mbmac-card {
        display:grid;grid-template-columns:min(37%,165px,calc(158px * var(--mbm-image-ratio,1))) minmax(0,1fr);
        align-items:center;gap:4px;padding:6px;
    }
    .mbmac-products.mbmac-equipment .mbmac-info{padding:6px 8px;}
    .mbmac-products.mbmac-equipment .mbmac-info h3{font-size:16px;line-height:1.22;margin:0 0 6px;}
    .mbmac-products.mbmac-equipment .mbmac-price{font-size:21px;line-height:1.2;}
    .mbmac-products.mbmac-equipment .mbmac-stock{margin:4px 0;}
}
