﻿/*
 MyOnke Product Image Fit Policy V1
 ---------------------------------
 Customer-facing catalogue images belong to the frame, not the other way around.
 Large source images are scaled down so the full product remains visible.
*/

.ac-card-image,
.mu-image,
.mx-img,
.rc-product-image,
.myo-category-product-image,
.myo-product-image,
.product-card-image,
.catalogue-product-image {
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    padding: 12px !important;
}

.ac-card-image img,
.mu-image img,
.mx-img img,
.rc-product-image img,
.myo-category-product-image img,
.myo-product-image img,
.product-card-image img,
.catalogue-product-image img,
.mu-detail-image img,
article[class*="product"] a[class*="image"] img,
article[class*="card"] a[class*="image"] img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    transform: none !important;
}

.ac-card-image {
    height: 230px !important;
    min-height: 230px !important;
}

.mu-image {
    height: 230px !important;
    min-height: 230px !important;
}

.mx-img {
    min-height: 215px !important;
}

.rc-product-image {
    min-height: 210px !important;
}

.mu-detail-image {
    overflow: hidden !important;
    background: #fff !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}
.mu-detail-image img {
    max-width: 100% !important;
    max-height: 520px !important;
}

.ac-card-image img[width],
.ac-card-image img[height],
.mu-image img[width],
.mu-image img[height],
.mx-img img[width],
.mx-img img[height],
.rc-product-image img[width],
.rc-product-image img[height] {
    width: 100% !important;
    height: 100% !important;
}

@media(max-width:700px){
    .ac-card-image,
    .mu-image{
        height:180px !important;
        min-height:180px !important;
        padding:10px !important;
    }
}
@media(max-width:430px){
    .ac-card-image,
    .mu-image{
        height:155px !important;
        min-height:155px !important;
        padding:8px !important;
    }
}
