/* Inner-page layout refinements. The homepage keeps its original layout. */
body:not(.home) .section-blog-articles__grid,
body:not(.home) .section-blog-articles__grid--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not(.home) .section-blog-articles__grid--count-1 {
    grid-template-columns: minmax(0, 420px);
}

body:not(.home) .section-blog-articles__grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.home) .section-blog-articles__grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.home) .section-blog-articles__item,
body:not(.home) .section-blog-articles__item--featured {
    grid-column: auto;
    min-height: 0;
}

body:not(.home) .section-blog-articles__media {
    position: relative;
    flex: 0 0 auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
}

body:not(.home) .section-blog-articles__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body:not(.home) .section-blog-articles__text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    font-size: 16px;
    line-height: 1.45;
}

@media (max-width: 1140px) {
    body:not(.home) .section-blog-articles__grid,
    body:not(.home) .section-blog-articles__grid--count-3,
    body:not(.home) .section-blog-articles__grid--count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body:not(.home) .section-blog-articles__grid,
    body:not(.home) .section-blog-articles__grid--count-1,
    body:not(.home) .section-blog-articles__grid--count-2,
    body:not(.home) .section-blog-articles__grid--count-3,
    body:not(.home) .section-blog-articles__grid--count-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Keep the surface-page hero action readable as one complete label. */
body.single-vshf_surface .mainscreen .btn-g .btn-white[href="#print-types"] {
    white-space: nowrap;
}

@media (min-width: 1141px) {
    body.single-vshf_surface .mainscreen .btn-g .btn-white[href="#print-types"] {
        width: max-content;
        min-width: 188px;
    }
}

@media (max-width: 389px) {
    body.single-vshf_surface .mainscreen .btn-g {
        flex-direction: column;
    }

    body.single-vshf_surface .mainscreen .wrap .content .btn-g .btn {
        flex: 0 0 auto;
        width: 100%;
    }
}
