/* 0.13.438: use available iPad landscape width without stretching tiles. */
@media (min-width: 1041px) and (max-width: 1240px) {
    body.graham-catalog-view .graham-category-card-grid,
    body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
        gap: 12px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        justify-content: start !important;
    }
}

@media (min-width: 961px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main {
        container-type: inline-size;
    }
}

@container (min-width: 770px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main ul.products {
        gap: 10px !important;
        grid-template-columns: repeat(3, minmax(250px, 290px)) !important;
        justify-content: start !important;
    }
}

@container (min-width: 1030px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: repeat(4, minmax(250px, 290px)) !important;
    }
}

@container (min-width: 1290px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: repeat(5, minmax(250px, 290px)) !important;
    }
}
