.preview-card-grid {
    margin-top: var(--margin-xs);
    border-top: 1px solid var(--pale-sky-blue);
    padding-top: var(--margin-xs);
}

.preview-card-grid:first-child {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

article.preview-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.card-preview-image {
    max-width: 180px;
    max-height: 180px;
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: var(--margin-m);
}

.cards.preview.small .card-preview-image {
    max-width: 180px;
    max-height: 180px;
    height: 180px;
}

.cards.preview-large.large .card-preview-image {
    max-width: 290px;
    max-height: 290px;
    height: 290px;
}

.card-preview-header {
    margin-bottom: 20px;
}

.card-preview-header h1,
.card-preview-header h2,
.card-preview-header h3,
.card-preview-header h4,
.card-preview-header h5,
.card-preview-header h6 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 27px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.25;
    letter-spacing: normal;
    color: var(--charcoal-grey);
    margin-bottom: var(--margin-s);
}

.dark-band .card-preview-header h1,
.dark-band .card-preview-header h2,
.dark-band .card-preview-header h3,
.dark-band .card-preview-header h4,
.dark-band .card-preview-header h5,
.dark-band .card-preview-header h6 {
    color: var(--white) !important;
}

.card-preview-header h1 a,
.card-preview-header h2 a,
.card-preview-header h3 a,
.card-preview-header h4 a,
.card-preview-header h5 a,
.card-preview-header h6 a {
    display: flex;
    align-items: center;
    color: var(--charcoal-grey);
    text-decoration: underline;
}

.dark-band .card-preview-header h1 a,
.dark-band .card-preview-header h2 a,
.dark-band .card-preview-header h3 a,
.dark-band .card-preview-header h4 a,
.dark-band .card-preview-header h5 a,
.dark-band .card-preview-header h6 a {
    color: var(--white) !important;
}

.card-preview-header h1 a svg,
.card-preview-header h2 a svg,
.card-preview-header h3 a svg,
.card-preview-header h4 a svg,
.card-preview-header h5 a svg,
.card-preview-header h6 a svg {
    width: 20px;
    height: 20px;
    color: var(--brown-grey);
    margin: 0 0 0 var(--margin-xs);
}

.card-preview-description {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--slate-grey);
    margin-bottom: 0;
}

.dark-band .card-preview-description {
    color: var(--white) !important;
}

@media screen and (max-width: 767px) {

    .preview-card-grid {
        width: 100%;
    }


    .card-preview-image,
    .cards.preview.small .card-preview-image,
    .cards.preview-large.large .card-preview-image {
        max-width: 90px;
        max-height: 90px;
        height: 90px;
    }

    .card-preview-header h1,
    .card-preview-header h2,
    .card-preview-header h3,
    .card-preview-header h4,
    .card-preview-header h5,
    .card-preview-header h6 {
        font-size: 20px;
    }

}

@media screen and (min-width: 768px) {

    .preview-card-grid {
        padding-top: 0;
        border-top: none;
        margin-top: 0;
        border-bottom: 1px solid var(--pale-sky-blue);
    }

    .cards.preview.columns-one .preview-card-grid {
        margin: 20px 0 20px 0;
        padding: 0 0 20px 0;
    }

    .cards.preview.columns-one .preview-card-grid:last-child {
        padding: 0;
        border-bottom: 0;
    }

    .cards.preview.small.columns-two .preview-card-grid {
        position: relative;
        overflow: hidden;
        padding-bottom: var(--margin-s);
        margin: 0 var(--margin-s) var(--margin-s) var(--margin-s);
        flex-basis: calc(50% - var(--margin-m));
        flex-grow: 0;
        flex-shrink: 0;
    }

    .cards.preview.small.columns-two .preview-card-grid:nth-child(-n + 2) {
        margin-top: 0;
    }

    .cards.preview.small.columns-two .preview-card-grid:nth-last-child(-n + 2) {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .cards.preview-large.large .preview-card-grid {
        margin: 20px 0 20px 0;
        padding: 0 0 20px 0;
    }

    .cards.preview-large.large .preview-card-grid:last-child {
        padding: 0;
        border-bottom: 0;
    }

    .card-preview-header h1 a,
    .card-preview-header h2 a,
    .card-preview-header h3 a,
    .card-preview-header h4 a,
    .card-preview-header h5 a,
    .card-preview-header h6 a {
        display: inline;
    }

}