.feature-header {
    background: #e7effd;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    padding-top: calc(var(--spacing) * 5);
    padding-bottom: calc(var(--spacing) * 5);
    overflow: hidden;
}

/* The old grid gutter padded every side: 32px clear, 64px apart. */
.feature-item {
    display: grid;
    gap: calc(var(--spacing) * 8);
    padding: calc(var(--spacing) * 4) 0;
    align-items: center;
}

@media (min-width: 960px) {
    .feature-item {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--spacing) * 8);
    }

    .feature-item--reverse .feature-item__text {
        order: 2;
    }

    .feature-item--reverse .feature-item__media {
        order: 1;
    }
}

/* FeatureItem's title class is logo blue; only the header item is overridden to navy. */
.feature-item__title {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing) * 1.25);
}

.feature-item--header .feature-item__title {
    color: var(--color-text);
}

.feature-item__description {
    margin: 0 0 calc(var(--spacing) * 3);
}

.feature-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing) * 2);
}

.feature-item__media {
    position: relative;
}

/* Only the header item's column is centred, and only at xl. */
@media (min-width: 1920px) {
    .feature-item--header .feature-item__media {
        text-align: center;
    }
}

/* GatsbyImage used layout: CONSTRAINED, width: 900. */
.feature-item__image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
}

/* The header illustration overflows its column to the right. */
.feature-item--header {
    margin: calc(var(--spacing) * 2) 0 0;
}

.feature-item--header .feature-item__image {
    max-height: 400px;
    object-fit: contain;
}

@media (max-width: 599px) {
    .feature-item--header .feature-item__image {
        margin-top: calc(var(--spacing) * -3);
        margin-left: calc(var(--spacing) * -1);
    }
}

/* 120% of the column, still capped by the 900px constrained width. */
@media (min-width: 960px) {
    .feature-item--header .feature-item__image {
        width: 120%;
    }
}

/* Below md the columns stack and the copy is centred (JSS: breakpoints.down('sm')). */
@media (max-width: 959px) {
    .feature-item__title,
    .feature-item__description {
        text-align: center;
    }

    .feature-item__actions {
        justify-content: center;
    }
}

.feature-items {
    padding-top: calc(var(--spacing) * 4);
    padding-bottom: calc(var(--spacing) * 4);
}

.feature-items .feature-item {
    margin: calc(var(--spacing) * 10) 0;
}
