/*------------------------------------*\
    
    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__text {
    margin-bottom: 1.25rem;
}

.image-text__text h2 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media( max-width:600px ) {
    .image-text__text h2 {
        font-size: 1.5rem;
    }
}

@media( min-width:1700px ) {
    .image-text__text h2 {
        font-size: 3.75rem;
    }
}

.image-text__img {
    position: relative;
}

.image-text__img--with-texture {
    margin-right: 4rem;
    margin-bottom: 0.4375rem;
}

.image-text__img--video {
    margin-right: 0;
    width: 100%;
}

.image-text__texture {
    position: absolute;
    right: 0;
    bottom: -0.4375rem;
    width: 10.5625rem;
    height: auto;
}

.image-text__video-bttn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-text__video-bttn svg {
    width: 6.1875rem;
    height: auto;
    box-shadow: 0 0 1.25rem 0 rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    transition: all .3s;
}

.btn-group--column {
    flex-direction: column;
    align-items: flex-start;
}

.image-text__video-bttn::before {
    display: none;
}

@media (min-width: 768px) {

    .image-text__text {
        margin-bottom: 2.25rem;
    }

    .image-text__img {
        width: 30.625rem;
    }

    .image-text__img--video {
        width: 100%;
    }

    .image-text__img--with-texture {
        margin-right: 0;
        margin-bottom: 0;
    }

    .image-text__texture {
        right: -10.8125rem;
        bottom: -4.6875rem;
        width: 14.8125rem;
    }

    .image-text__video-bttn svg {
        width: 7.5rem;
    }


}

@media (min-width: 1200px) {
    .image-text {
        overflow: hidden;
    }

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

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

    .image-text__img {
        width: 100%;
    }

    .image-text__img--with-texture {
        margin-bottom: 10.1875rem;
    }

    .image-text__texture {
        right: -4.375rem;
        bottom: -11.8125rem;
        width: 16.25rem;
    }

    .image-text__video-bttn svg {
        width: 9.25rem;
    }


    .image-text__video-bttn:hover svg {
        transform: scale(1.1);
    }

    .image-text__text {
        max-width: 36.875rem;
    }

    .image-text--left .image-text__text {
        margin-left: auto;

        & a:not(.btn) {
            display: inline-block;
            line-height: 1;
        }
    }
}


@media (min-width: 1600px) {
   
    .image-text__img {
        max-width: 42.3125rem;
    }

    .image-text--right .image-text__img {
        margin-left: auto;
    }

    .page-id-825 {
        
        & .flex-row {
            align-items: flex-start;
        }
        
    }

    .image-text__img--with-texture {
        margin-bottom: 0;
    }

    .image-text__texture {
        right: -13.5625rem;
        bottom: -2.0625rem;
        width: 25.25rem;
    }

    .image-text__video-bttn svg {
        width: 10.375rem;
    }

    .image-text__text {
        max-width: 43.75rem;
    }

    .image-text--left .image-text__texture {
        right: auto;
        left: -13.5625rem;
    }
}