/*------------------------------------*\
    
    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 .flex-row {
    align-items: center
}

.image-text__half {
    width: 100%;
}

.image-text__text__wrap {
    padding-bottom: 32px;
}

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

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

.image-text__img__wrap::before  {
    content: '';
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 155px;
    border-radius: 24px;
    border: 4px solid var(--c-orange);
    opacity: 0.3;
    top: -12px;

}

.bg-light-blue .image-text__img__wrap::before  {
    border-color: var(--c-sky-blue);
    opacity: 0.5;

}

.image-text--right .image-text__img__wrap::before  {
    left: -12px;
}

.image-text--left .image-text__img__wrap::before  {
    right: -12px;
}

.image-text__img__wrap::after  {
    content: '';
    position: absolute;
    z-index: -1;
    width: 278px;
    height: 155px;
    border-radius: 24px;
    background: var(--c-sky-blue);
    opacity: 0.2;
    bottom: -12px;
}

.image-text--right .image-text__img__wrap::after  {
    right: -12px;
}

.image-text--left .image-text__img__wrap::after  {
    left: -12px;
}

.bg-light-orange .image-text__img__wrap::after  {
    background: var(--c-orange);

}

.image-text__video__wrap {
    position: relative;
    margin: 0 12px 12px 0;
    z-index: 1;
    height: 203px;
}

.image-text__video__wrap img {
    border-radius: 24px;
}

.image-text__video__wrap::after  {
    content: '';
    position: absolute;
    z-index: -1;
    width: 278px;
    height: 155px;
    border-radius: 24px;
    background: var(--c-orange);
    opacity: 0.2;
    bottom: -12px;
    right: -12px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 24px;
}

.video-bttn svg {
    transition: all .3s;
    width: 70px;
    height: auto;
}

.play-bttn__text {
    color: #fff;
    margin-top: 12px;
    text-transform: uppercase;
    font-size: 18px;
    display: none;
}

.image-cards + .image-text {
    padding-top: 0;
}

@media (min-width: 768px) {
    
    .image-text__text__wrap {
        padding-bottom: 40px;
    }

    .image-text__img__wrap {
        margin: 25px;
        height: 418px;
    }

    .image-text__img__wrap::before  {
        width: 454px;
        height: 293px;
        top: -25px;
    }

    .image-text--right .image-text__img__wrap::before  {
        left: -25px;
    }

    .image-text--left .image-text__img__wrap::before  {
        right: -25px;
    }

    .image-text__img__wrap::after  {
        width: 526px;
        height: 292px;
        bottom: -25px;
    }

    .image-text--right .image-text__img__wrap::after  {
        right: -25px;
    }

    .image-text--left .image-text__img__wrap::after  {
        left: -25px;
    }


    .image-text__video__wrap {
        margin: 0 25px 25px 0;
        height: 408px;
    }

    .image-text__video__wrap::after  {
        width: 526px;
        height: 292px;
        bottom: -25px;
        right: -25px;
    }

    .video-bttn svg {
        width: 141px;
    }
}


@media (min-width: 1200px) {

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

    .image-text__img {
        width: 540px;
    }

    .image-text__text {
        width: calc(100% - 540px);
    }
    
    .image-text__text__wrap {
        padding-bottom: 0;
    }

    .image-text--right .image-text__text__wrap {
        padding-right: 64px;
    }

    .image-text--left .image-text__text__wrap {
        padding-left: 64px;
    }

    .image-text__img__wrap {
        margin: 20px;
        height: auto;
    }

    .image-text__img__wrap::before  {
        width: 369px;
        height: 238px;
        top: -20px;
    }

    .image-text--right .image-text__img__wrap::before  {
        left: -20px;
    }

    .image-text--left .image-text__img__wrap::before  {
        right: -20px;
    }

    .image-text__img__wrap::after  {
        width: 428px;
        height: 238px;
        bottom: -20px;
    }

    .image-text--right .image-text__img__wrap::after  {
        right: -20px;
    }

    .image-text--left .image-text__img__wrap::after  {
        left: -20px;
    }


    .image-text__video__wrap {
        margin: 0 20px 20px 0;
        height: auto;
    }

    .image-text__video__wrap::after  {
        width: 428px;
        height: 238px;
        bottom: -20px;
        right: -20px;
    }

    .video-bttn svg {
        width: 115px;
    }

    .video-bttn:hover {
        background: rgba(30,60,96,0.8);
    }

    .video-bttn:hover .play-bttn__text {
        display: block;
        position: absolute;
    }
}

.image-text__sml__wrap {
    max-width: 1048px;
    margin: 0 auto;
}

.image-text__img__wrap-sml {
    max-width: 373px;
    margin: 0 auto;
}

.image-text__img__wrap--sml {
    margin: 20px 0 0 20px;
}

.image-text__img__wrap--sml::after {
    display: none;
}

.image-text__img__wrap--sml::before {
    top: -20px;
    left: -20px;
    border-color: var(--c-sky-blue);
    opacity: 0.5;
}

@media (min-width: 1200px) {
    .image-text__sml__wrap .image-text__img {
        width: 373px;
    }
    
    .image-text__sml__wrap .image-text__text {
        width: calc(100% - 373px);
    }
    
    .image-text--left .image-text__sml__wrap .image-text__text__wrap {
        padding-left: 58px;
    }

    .image-text__img__wrap--sml::before {
        width: 295px;
        height: 165px;
    }
}


