/* Image With Text - flex layout `image_with_text`
   Live .block-info: hairline rules top/bottom, 64px vertical padding, 2-column
   grid (gap 64px) of content | image, image side swappable, stacked under 1024px.
   Eyebrow: Teko 16px sky-alt. Title: Teko 32px/500 uppercase. Copy: muted grey. */
.image_with_text {
    max-width: 100%;
    padding: 64px 0;
    border-top: 1px solid rgba(56, 56, 56, .19);
    border-bottom: 1px solid rgba(56, 56, 56, .19);
    background: var(--background);

    & .image_with_text_inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: "content image";
        gap: 64px;
        align-items: center;

        @media (max-width: 1518px) {
            padding: 0 32px;
        }

        @media (max-width: 1024px) {
            display: block;
            padding: 0;
        }
    }

    &.image_left .image_with_text_inner {
        grid-template-areas: "image content";
    }

    & .image_with_text_content {
        grid-area: content;
    }

    & .image_with_text_eyebrow {
        display: block;
        margin-bottom: 4px;
        color: var(--secondary-alt);
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 500;
        text-transform: uppercase;
    }

    & .image_with_text_title {
        margin: 0 0 16px;
        font-size: 32px;
        font-weight: 500;
        text-transform: uppercase;
        color: var(--headings);

        @media (max-width: 1024px) {
            font-size: 24px;
        }
    }

    & .image_with_text_text {
        & p {
            margin: 0 0 16px;
            color: var(--text-muted);
            font-family: var(--font-body);
            font-size: 14px;
            line-height: 25.6px;
            white-space: pre-line;

            @media (max-width: 1024px) {
                font-size: 12.8px;
            }
        }

        & p:last-child {
            margin-bottom: 0;
        }
    }

    & .image_with_text_links {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 24px;
    }

    & .image_with_text_image {
        grid-area: image;
        width: 100%;

        @media (max-width: 1024px) {
            margin: 32px 0 0;
        }

        & img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}
