.ofwz-product-gallery {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,minmax(130px,1fr));
    gap: 10px;
    margin: 14px 0;
    width: 100%;
}

.ofwz-gallery-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #f3f4f6;
}

.ofwz-gallery-item img,
.ofwz-gallery-item video {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
}

.ofwz-gallery-item a {
    display: block;
}

@media(max-width:600px) {

    .ofwz-product-gallery {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .ofwz-gallery-item img,
    .ofwz-gallery-item video {
        height: 150px;
    }
}
