/* Banner grid */

.banner-grid-wrapper {
    background: var(--color-light-gray);
}

.banner-grid {
    width: 100%;
    max-width: var(--width-content-max);
}

.banner-grid .card {
    background: #ffffff;
}

.banner-grid .row-2 {
    background: var(--color-branding-primary);
    color: #fff;
    padding: 2rem;
}

.banner-grid .row-2 .card .copy .cta {
    color: #fff;
}

.banner-grid .row-2 .card {
    border: unset;
}

.banner-grid h4 {
    margin-top: 0;
}

.banner-grid .card.card2 .img img,
.banner-grid .card.card5 .img img,
.banner-grid .card.card8 .img img {
    object-fit: contain;
}


.banner-grid .card4 {
    display: flex;
    flex-direction: column-reverse;
    background: var(--color-branding-primary);
}

.banner-grid .card4 h4.as-h1 {
    margin-bottom: 1rem;
}

.banner-grid .row-2 .card .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-grid .row-3 .card {
    border-bottom: 1px solid var(--color-mid-gray);
}

.banner-grid a.cta {
    text-decoration: underline;
}


@media only screen and (min-width: 768px) {

    .banner-grid-wrapper {
        padding: 2rem 0;
        background: var(--color-light-gray);
    }

    .banner-grid {
        margin: 0 auto;
        padding: 3rem 0;
    }

    .banner-grid .card-set {
        gap: 1rem;
    }    

    .banner-grid .card-set .card {
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
    }

    .banner-grid .copy {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: space-between;
    }

    .banner-grid .card4 {
        display: flex;
        flex-direction: row-reverse;
    }

    .banner-grid .no-image .sub-wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
    }

    .banner-grid .row-2 {
        margin: 1rem 0;
    }
    
    .banner-grid .row-3 .card {
        border-bottom: unset;
    }

    .banner-grid .row-3 .card {
        padding: 1rem 0 2rem;
    }

    .banner-grid .row-3 .img {
        max-width: 15rem;
        margin: auto;
    }

    .banner-grid .row-3 .copy {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: flex-end;
        padding: 0 2rem;
        text-wrap: pretty;
    }

    .banner-grid .row-3 .card8 {
        border-right: 1px solid var(--color-mid-gray);
    }

}
