/*------------------------------------*\

    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block.
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/
.image-text {
    overflow: hidden;
    position: relative;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.image-text .flex-row {
    align-items: center;
}

.image-text-form .flex-row {
    flex-direction: column;
}

.image-text--home {
    padding: 48px 0;
}


.image-text__text {
    padding-top: 0;
    padding-bottom: 0;
}

.image-text__img {
    height: 235px;
    position: relative;
    z-index: 1;
}

.expand {
    color: #C0111E;
    font-weight: 700;
    cursor: pointer;
}

.image-text--pattern .image-text__img {
    margin-top: 38px;
}

.img-left-pattern {
    position: absolute;
    top: -22px;
    width: 228px;
    left: -102px;
    z-index: -1;
}

.img-right-pattern {
    position: absolute;
    top: -22px;
    width: 228px;
    right: -102px;
    z-index: -1;
}

.image-text__half {
    width: 100%;
}

.image-text__text h3 {
    color: #192846;
}

.image-text-form-header {
    margin-top: 32px;
}


.half-and-half {
    position: relative;
}

.image-text.section-blue .image-text__text a.btn-primary {
    border: 2px solid transparent;
    color: var(--blue);
}

.image-text.section-blue .image-text__text a.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.image-text.section-blue .image-text__text a.btn-secondary {
    background: transparent;
}

.image-text.section-blue .image-text__text a.btn-secondary:hover {
    background-color: var(--lightblue);
    color: var(--blue);
}

@media (min-width: 768px) {
    .image-text--home {
        padding: 64px 0;
    }

    .image-text__half {
        padding-left: 58px;
        padding-right: 58px;
    }

    .image-text__img {
        height: 390px;
    }

    .image-text--pattern .image-text__img {
        margin-top: 30px;
    }

    .img-left-pattern {
        top: -36px;
        width: 378px;
        left: -126px;
    }

    .img-right-pattern {
        top: -36px;
        width: 378px;
        right: -126px;
    }
}

@media (min-width: 1200px) {


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

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

    .image-text--home {
        padding: 96px 0;
    }

    .image-text--home.image-text-form {
        padding: 96px 0 60px;
    }

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

    .image-text__text {
        padding-top: 0;
    }

    .image-text__text {
        padding-bottom: 0;
    }


    .image-text__img {
        height: auto;
        width: calc(50% + 55px);
    }

    .image-text__text {
        width: calc(50% - 55px);
    }

    .image-text--left .image-text__text {
        padding-left: 63px;
    }

    .image-text--right .image-text__text {
        padding-right: 63px;
    }

    .img-left-pattern {
        top: -33px;
        width: 468px;
        left: -194px;
    }

    .img-right-pattern {
        top: -33px;
        width: 468px;
        right: -162px;
    }

    .image-text--sml .image-text__text {
        padding-left: 56px;
    }

    .image-text--pattern .image-text__text {
        margin-top: 0;
    }

    .image-text-form .flex-row {
        align-items: stretch
    }

    .image-text-form-header {
        margin-top: 0;
        margin-bottom: 32px;
    }

    .image-text--pattern .image-text__img {
        margin-top: 0;
    }
}

@media (min-width: 1600px) {



    .image-text__img {
        height: auto;
        width: calc(50% + 80px);
    }

    .image-text__text {
        width: calc(50% - 80px);
    }

    .image-text--left .image-text__text {
        padding-left: 63px;
    }

    .image-text--right .image-text__text {
        padding-right: 63px;
    }

}


.image_pattern {
    position: absolute !important;
    top: -45px !important;
    width: 244px !important;
    height: 64px !important;
    background: transparent !important;
    transform: scale(1.0) !important;
    z-index: -1 !important;
    opacity: 1 !important;
}

.image_pattern.img-left-pattern {
    left: -100px !important;
}

.image_pattern.img-right-pattern {
    right: -100px !important;
}

.image_pattern svg {
    width: 100%;
}

@media(min-width: 768px) {
    .image_pattern {
        top: -45px !important;
        width: 377px !important;
        height: 71px !important;
    }

    .image_pattern.img-left-pattern {
        left: -100px !important;
    }

    .image_pattern.img-right-pattern {
        right: -100px !important;
    }
}

@media(min-width: 992px) {

    .image_pattern.img-left-pattern {
        left: -150px !important;
    }

    .image_pattern.img-right-pattern {
        right: -150px !important;
    }
}

@media(min-width: 1200px) {
    .image_pattern {
        top: -45px !important;
        width: 497px !important;
        height: 89px !important;
    }

    .image_pattern.img-left-pattern {
        left: -194px !important;
    }

    .image_pattern.img-right-pattern {
        right: -194px !important;
    }
}