/*------------------------------------*\
    
    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)

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

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

.image-text--homepage {
    padding: 36px 0;
}

@media (min-width: 1200px) {
    .image-text--homepage:before {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        width: 25vw;
        height: calc(100% + 65px);
        top: -65px;
        background-color: var(--color-offwhite);
        border-radius: 0 0 0 15px;
    }
}

.image-text__wrap {
    padding-top: 20px;
}

.image-text__wrap br + br {
    display: none;
}

.image-text--homepage .image-text__wrap {
    padding-bottom: 10px;
    padding-top: 0;
}

.image-text__img__wrap {
    margin: 0;
    height: 270px;
    z-index: 1;
    position: relative;
}

.image-text--homepage .image-text__img__wrap {
    margin: 12px 0;
    height: 223px;
}

.image-text__img__wrap img {
    border-radius: 15px;
}

.image-text--homepage .image-text__img__wrap::before {
    content: '';
    position: absolute;
    z-index: -1;
    height: calc(100% + 24px);
    top: -12px;
    right: -22px;
    width: 172px;
    border-radius: 15px 0 0 15px;
    background-color: #F2F2F2;
}

.image-text__img__wrap::after {
    content: '';
    position: absolute;
    z-index: -1;
    height: 89px;
    top: -10px;
    right: -10px;
    width: 89px;
    border-radius: 15px;
    background-color: #E5F4FF;
}

.bg-blue .image-text__img__wrap::after {
    background: #1F73AD;
}

.bg-blue .expand {
    color: var(--color-white);
    border-color: var(--color-white);
}

.image-text--homepage .image-text__img__wrap::after {
    display: none;
}

@media (min-width: 768px) {
    .image-text--homepage {
        padding: 62px 0 74px 0;
    }
    
    .image-text--homepage .image-text__wrap {
        padding-bottom: 27px;
    }

    .image-text__img__wrap {
        margin: 0;
        height: 446px;
        z-index: 1;
        position: relative;
        width: 545px;
    }
    
    .image-text--homepage .image-text__img__wrap {
        height: 370px;
        margin: 0;
        padding-right: 116px;
        width: auto;
    }
    
    
    .image-text--homepage .image-text__img__wrap::before {
        height: calc(100% + 72px);
        top: -36px;
        right: -52px;
        width: 252px;
    }

    .image-text__img__wrap::after {
        height: 150px;
        top: -18px;
        right: -15px;
        width: 150px;
    }
}


@media (min-width: 1200px) {

    .image-text .flex-row {
        margin-top: 30px;
    }

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

    .image-text--homepage {
        padding: 85px 0 90px 0;
        position: relative;
        z-index: 1;
    }
    
    .image-text--homepage .image-text__wrap {
        padding-bottom: 0;
        max-width: 613px;
    }

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

    .image-text__img__wrap {
        margin: 0;
        z-index: 1;
        position: relative;
        max-width: 533px;
        width: 100%;
        height: 436px;
        padding-top: 30px;
        padding-right: 30px;
        top: -28px;
    }

    .image-text .row {}

    .image-text .row > .image-text__half {
        padding: 0 30px;
    }

    .image-text__img__wrap::after {
        top: 0;
        right: 0;
    }

    .bg-gray .image-text__img__wrap::after {
        background: var(--color-yellow);
        left: 0;
        right: auto;
    }

    .image-text--left .image-text__img__wrap {
        padding-right: 0;
        padding-left: 30px;
    }

    .image-text--left .image-text__img__wrap:after {
        right: auto;
        left: 0;
    }

    .image-text--right .image-text__img__wrap {
        margin-left: auto;
        padding-right: 30px;
        padding-left: 0;
    }

    .image-text--right .image-text__img__wrap::after {
        right: 0;
        left: auto;
    }
    
    .image-text--homepage .image-text__img__wrap {
        height: 436px;
        margin: 0;
        padding-right: 0;
        width: auto;
    }
    
    
    .image-text__img__wrap::before {
        display: none;
    }

    .image-text--homepage .image-text--homepage::before {
        content: '';
        position: absolute;
        z-index: -1;
        height: calc(100% + 334px);
        bottom: 0;
        right: 0;
        width: calc(50% - 468px);
        border-radius: 15px 0 0 15px;
        background-color: #F2F2F2;
    }
}

.image-text--homepage.image-text--left:before {
    left: 0;
    right: auto;
}

.image-text--homepage.image-text--left .image-text__img__wrap::before {
    left: -22px;
    right: auto;
    border-radius: 0 15px 15px 0;
}

@media (min-width: 768px) {
    .image-text--homepage.image-text--left .image-text__img__wrap::before {
        left: -52px;
        right: auto;
    }

    .image-text--homepage.image-text--left .image-text__img__wrap {
        padding-left: 116px;
        padding-right: 0;
        margin-top: 30px;
    }
}

@media (min-width: 1200px) {
    .image-text--homepage.image-text--left .image-text__wrap {
        margin-left: auto;
    }

    .image-text--homepage.image-text--left .image-text__img__wrap {
        padding-left: 0;
        margin-top: 0;
    }
}

.image-text__wrap__icon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.image-text__wrap__icon a {
    color: #000;
    position: relative;
    text-decoration: none;
}

.image-text__wrap__icon a > * {
    position: relative;
    z-index: 2;
}

.image-text__wrap__icon a:not(:last-child) {
    margin-bottoM: 10px;
}

.image-text__wrap__icon a i {
    margin-right: 10px;
}

.image-text__wrap__icon a:not(.btn):before {
    content: "";
    display: block;
    position: absolute;
    bottom: 5px;
    left: -5px;
    width: calc(100% + 14px);
    height: 14px;
    background-color: #FFE896;
    z-index: 1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s ease-in-out;
}

@media (min-width: 1200px) {
    .image-text__wrap__icon a:not(.btn):hover {
        text-decoration: none;
        border: 0;
    }

    .image-text__wrap__icon a:not(.btn):hover:before {
        transform: scaleY(1);
    }
}
