.image-text {
    --image-text-gap: 60px;

    padding-top:    var(--pad-y-alt);
    padding-bottom: var(--pad-y-alt);
    padding-left:   var(--pad-x);
    padding-right:  var(--pad-x);
    background: var(--color-bg);
}

.image-text__inner {
    width: 100%;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

/* Default: media LEFT, content RIGHT. Boxed inside the container, exact 50/50
   with no column gap — the gap is simulated by padding on the content (text)
   side toward the media. DOM order is media→content. */
.image-text__row {
    display: flex;
    /* align-items: center; */
    width: 100%;
}

.image-text--reverse .image-text__row {
    flex-direction: row-reverse;
}

.image-text__media {
    flex: 0 0 50%;
}

.image-text__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.image-text__content {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: space-around;
    flex: 0 0 50%;
    box-sizing: border-box;
    /* content on the RIGHT by default: gap toward the media on the left. Its
       right edge is the container edge, so no outer padding is needed. */
    padding-left: var(--image-text-gap);
}

/* Reverse — content on the LEFT: gap flips to the right (toward the media). */
@media (min-width: 1025px) {
    .image-text--reverse .image-text__content {
        padding-left: 0;
        padding-right: var(--image-text-gap);
    }
}

.image-text__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-text__eyebrow {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-dark);
}

.image-text__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 48px;
    line-height: 54px;
    color: var(--color-dark);
}

.image-text__subheading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    line-height: 34px;
    color: var(--color-dark);
}

.image-text__body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 26px;
    color: var(--color-dark);
    text-align: left;
}

.image-text__body p + p {
    margin-top: 16px;
}

.image-text__body--secondary {
    text-align: left;
}

.image-text__divider {
    display: block;
    width: 100%;
    max-width: 510px;
    height: auto;
    margin: 0 auto;
    color: var(--color-espresso);
}

.image-text__highlight {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-text__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.image-text__cta {
    padding: 11px 30px;
    flex-grow: 1;
}

@media (max-width: 1366px) {
    .image-text {
        --image-text-gap: 40px;
    }

    .image-text__heading {
        font-size: 40px;
        line-height: 46px;
    }

    .image-text__subheading {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (max-width: 1024px) {
    .image-text__row,
    .image-text--reverse .image-text__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .image-text__media,
    .image-text__content {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .image-text__content {
        padding-left: 0;
        padding-right: 0;
    }

    .image-text__media img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .image-text__body {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .image-text__heading {
        font-size: 34px;
        line-height: 40px;
    }

    .image-text__subheading {
        font-size: 22px;
        line-height: 28px;
    }

    .image-text__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .image-text__cta {
        width: 100%;
    }
}
