/* BLOCK: Text Image */

.block-text-image.has-custom-bg .content-wrapper {
    --size: calc(var(--page-size) - 2 * var(--pad));
    background-color: var(--bg-color);
    padding-block: 5rem;
    border-radius: 2.5rem;
    width: calc(100% - 2 * var(--pad, 0px) - 3rem);
}

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

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

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

.block-text-image .text-wrapper {
    flex: 1;
    margin-block: 2.5rem;
}

.block-text-image.has-custom-bg .text-wrapper {
    margin-block: 0;
    margin-left: 3.5rem;
}

.block-text-image .text-content {
    color: #3C3951;
}

.block-text-image .text-content .card__icon {
    max-width: 1.875rem;
    max-height: 1.875rem;
}

.block-text-image .text-content .card__icon.higher-width {
    max-width: 4.875rem;
}

.block-text-image .text-content .card__icon.higher-height {
    /*TBC*/
}

.block-text-image .text-content .card__icon:not(:last-child) {
    margin-bottom: 2.5rem;
}

.block-text-image.is-dark .text-content {
    color: #F1EEFF;
}

.block-text-image:where(.text-align--left) .text-content {
    text-align: left;
}

.block-text-image:where(.text-align--center) .text-content {
    text-align: center;
}

.block-text-image:where(.text-align--right) .text-content {
    text-align: right;
}

.block-text-image .text-content:not(:last-child) {
    margin-bottom: 3.75rem;
}

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

.block-text-image .text-content > :not(:last-child) {
    margin-bottom: 2.5rem;
}

.block-text-image .text-content :is(h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5) {
    color: var(--c-text-dark);
}

.block-text-image.is-dark .text-content :is(h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5) {
    color: var(--c-text-light);
}

.block-text-image .text-content > :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(:last-child) {
    margin-bottom: 3.125rem;
}

.block-text-image .text-content .h7 {
    color: var(--c-primary) !important;
}

.block-text-image.is-dark .text-content .h7 {
    color: var(--c-light-purple) !important;
}

.block-text-image .cta-buttons {
    gap: 0.9375rem;
    display: flex;
    flex-wrap: wrap;
}

.block-text-image:where(.text-align--left) .cta-buttons {
    justify-content: flex-start;
}

.block-text-image:where(.text-align--center) .cta-buttons {
    justify-content: center;
}

.block-text-image:where(.text-align--right) .cta-buttons {
    justify-content: flex-end;
}

.block-text-image .image-wrapper {
    /*flex-basis: 41%;*/
    flex: 0 0 41%;
    flex-shrink: 1;
    box-shadow: 0px 3.49px 43.59px 0px #070F3033;
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
}

.block-text-image.has-custom-bg .image-wrapper {
    margin-right: 3.5rem;
    box-shadow: none;
}

.block-text-image:where(.image-size--small) .image-wrapper {
    /*flex-basis: 32%;*/
    flex: 0 0 32%;
}

.block-text-image:where(.image-size--medium) .image-wrapper {
    /*flex-basis: 41%;*/
    flex: 0 0 41%;
}

.block-text-image:where(.image-size--large) .image-wrapper {
    /*flex-basis: 49%;*/
    flex: 0 0 49%;
}

.block-text-image .image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-text-image.has-custom-bg .image-wrapper img {
    object-fit: contain;
}

@media screen and (width <= 1020px) {
    .block-text-image .content-wrapper {
        gap: 2.5rem;
    }
}

@media screen and (width <= 920px) {
    .block-text-image .text-content .card__icon:not(:last-child) {
        margin-bottom: 1.875rem;
    }
}

@media screen and (width <= 800px) {
    .block-text-image .image-wrapper {
        flex-basis: 45%;
    }
}

@media screen and (width <= 620px) {
    .block-text-image .content-wrapper {
        flex-direction: column-reverse;
        gap: 3.75rem;
    }
    .block-text-image .text-wrapper {
        margin: 0;
    }
    .block-text-image .text-content:not(:last-child) {
        margin-bottom: 3.125rem;
    }
    .block-text-image .text-content > :not(:last-child) {
        margin-bottom: 1.5rem;
    }
    .block-text-image .text-content > :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(:last-child) {
        margin-bottom: 1.875rem;
    }
    .block-text-image .image-wrapper {
        aspect-ratio: 1;
        border-radius: 1.5rem;
    }
}

@media screen and (width <= 420px) {
    .block-text-image .image-wrapper {
        aspect-ratio: 0.855;
    }
}