/* BLOCK: Image Text */

.block-image-text .content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 5rem;
}

.block-image-text:where(.layout--text_image) .content-wrapper {
    flex-direction: row-reverse;
}

.block-image-text .image-wrapper {
    flex-basis: 54%;
}

.block-image-text .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.block-image-text .text-wrapper {
    flex-basis: 40%;
    align-self: center;
    padding-block: 0.625rem;
}

.block-image-text .text-content > * {
    margin-block: 0 1.875rem;
}

.block-image-text .text-content > :where(h1, h2, h3, h4, .h1, .h2, .h3, .h4) {
    margin-bottom: 3.125rem;
}

.block-image-text .text-content > :last-child {
    margin-bottom: 0;
}

.block-image-text .cta-buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 3.125rem;
}

@media screen and (width <= 620px) {
    .block-image-text .content-wrapper {
        flex-direction: column;
        gap: 3.125rem;
    }
    .block-image-text .image-wrapper img {
        border-radius: 4px;
    }
    .block-image-text .text-content > * {
        margin-bottom: 1.5rem;
    }
    .block-image-text .text-content > :where(h1, h2, h3, h4, .h1, .h2, .h3, .h4) {
        margin-bottom: 1.875rem;
    }
    .block-image-text .cta-buttons {
        margin-top: 1.875rem;
    }
}