/* BESTKANC: extracted first-paint CSS from product.gallery.html; do not load late */
@media (max-width: 767px) {
    .product-info .product-gallery-main {
        --bestkanc-mobile-gallery-size: 320px;
        width: 100% !important;
        height: var(--bestkanc-mobile-gallery-size) !important;
        min-height: var(--bestkanc-mobile-gallery-size) !important;
        max-height: var(--bestkanc-mobile-gallery-size) !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .product-info .product-gallery-main .owl-stage-outer,
    .product-info .product-gallery-main .owl-stage,
    .product-info .product-gallery-main .owl-item,
    .product-info .product-gallery-main__el-outer,
    .product-info .product-gallery-main__el-inner,
    .product-info .product-gallery-main__el {
        height: var(--bestkanc-mobile-gallery-size) !important;
        min-height: var(--bestkanc-mobile-gallery-size) !important;
        max-height: var(--bestkanc-mobile-gallery-size) !important;
        box-sizing: border-box !important;
    }

    .product-info .product-gallery-main .owl-stage {
        display: flex !important;
        align-items: stretch !important;
    }

    .product-info .product-gallery-main__el-outer,
    .product-info .product-gallery-main__el-inner,
    .product-info .product-gallery-main__el {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        line-height: normal !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .product-info .product-gallery-main__el-inner {
        padding: 10px !important;
    }

    .product-info .product-gallery-main__el-photo,
    .product-info .product-gallery-main__el img {
        position: static !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important;
    }
}
