/*------------------------------------*\
    
    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 {
    position: relative;
    z-index: 1;
}

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

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

.image-text__img img {
    border-radius: 13px;
    height: 213px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.image-text__text {
    padding-top: 30px;
    color: #262626;
}

.image-text__text h2 {
    color: #000931;
}

.bg-blue .image-text__text,
.bg-blue .image-text__text h2 {
    color: #fff;
}

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

.image-text--media .image-text__text {
    padding-top: 0;
    padding-bottom: 40px;
}

.image-text--media .image-text__img img {
    height: 172px;
}

.masthead--innerpage + .image-text--media.bg-white-pattern .image-text-bg {
    display: none;
}

a.video-image {
    display: block;
    position: relative;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 75px;
    border-radius: 50%;
    transition: all .2s ease;
    box-shadow: 0px 1px 7px 4px rgb(0 150 57 / 69%);
    background: rgb(0 150 57 / 32%);
}

.play-btn:hover {
    animation: pulse-animation 2s infinite;
}

.image-text__logo-icon {
    position: absolute;
    bottom: -10px;
    left: -25px;
    z-index: -1;
}

.image-text-bg {
    position: absolute;
    top: 0px;
    left: 50%;
    z-index: -1;
    width: 1000px;
    transform: translate(-50%, 0);
    max-width: initial;
    height: auto;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgb(0 150 57 / 69%);
    }
    100% {
        box-shadow: 0 0 0 30px rgb(180 205 155 / 0%);
    }
}


@media (min-width: 768px) {
    .image-text {
        padding-left: 10px;
        padding-right: 10px;
    }

    .image-text__img img {
        height: 394px;
    }

    .image-text--media .image-text__img img {
        height: 317px;
    }
    
    .play-btn {
        max-width: 106px;
    }

    .image-text--media .image-text__text {
        padding-bottom: 50px;
    }

    .image-text-bg {
        width: 1920px;
    }
}

@media (min-width: 1200px) {
    .image-text {
        padding-left: 0;
        padding-right: 0;
    }

    .flex-row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .image-text .flex-row {
        align-items: center
    }

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

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

    .image-text__img img {
        height: 393px;
        max-width: 607px;
    }

    .flex-opposite .image-text__img img {
        margin: 0 0 0 auto;
        display: block;
    }

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

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

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

    .image-text-bg {
        width: 100%;
    }

}