.excerpt-image-card {
    position: relative;
    margin: var(--margin-m) 0 0 0;
    border-top: 1px solid var(--pale-sky-blue);
    padding-top: var(--margin-m);
}

.excerpt-image-card:first-child {
    padding: 0;
    border-top: none;
    margin-top: 0;
}

.card-excerpt-image {
    flex-grow: 1;
    border-radius: var(--border-radius);
    object-fit: cover;
    width: 100%;
    height: 400px;
    margin-bottom: var(--margin-m);
}

.narrow .card-excerpt-image {
    height: 250px;
}

.card-excerpt-header {
    flex-grow: 2;
    margin-bottom: 16px;
}

.card-excerpt-header h1,
.card-excerpt-header h2,
.card-excerpt-header h3,
.card-excerpt-header h4,
.card-excerpt-header h5,
.card-excerpt-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);
}

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

.card-excerpt-description {
    display: block;
    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: var(--margin-s) 0 0 0;
}

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

.dark-band .card .button.primary {
    border-color: var(--white) !important;
    color: var(--white) !important;
}

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

    .excerpt-image-card {
        font-size: 0;
    }

    .excerpt-image-card .card-excerpt-image {
        box-sizing: border-box;
        -webkit-box-flex: 1;
        flex-grow: 1;
        height: calc(var(--bu) * 8);
        margin: 0;
        object-fit: cover;
        width: calc(var(--bu) * 8);
        display: inline-block;
        vertical-align: middle;
    }

    .card-excerpt-header {
        box-sizing: border-box;
        display: inline-block;
        padding-left: 16px;
        vertical-align: middle;
        margin-bottom: 0;
        width: calc(100% - calc(var(--bu) * 8));
    }

    .card-excerpt-header h1,
    .card-excerpt-header h2,
    .card-excerpt-header h3,
    .card-excerpt-header h4,
    .card-excerpt-header h5,
    .card-excerpt-header h6 {
        font-family: 'Red Hat Display', sans-serif;
        font-size: 20px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.13;
        letter-spacing: normal;
        color: #282728;
    }

    .excerpt-image-card .button {
        margin-top: 16px;
    }

}

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

    .excerpt-image-card {
        display: block;
        padding: 0;
        border: none;
        margin: var(--margin-s);
        flex-basis: calc(50% - var(--margin-m));
        flex-grow: 0;
        flex-shrink: 0;
    }

    .excerpt-image-card:nth-child(-n + 2) {
        border-bottom: 0;
        margin-top: 0;
    }

    .excerpt-image-card:nth-last-child(-n + 2) {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .card-excerpt-description {
        margin: 0 0 var(--margin-m) 0;
    }

}

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

    .excerpt-image-card {
        flex-basis: calc(33.333% - var(--margin-m));
    }

    .excerpt-image-card:nth-child(-n + 3) {
        border-bottom: 0;
        margin-top: 0;
    }

    .excerpt-image-card:nth-last-child(-n + 3) {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

}
