/*------------------------------------*\
    
    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;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.image-text .flex-row {
    align-items: flex-start
}

.image-text .container {
    position: relative;
    z-index: 2;
}

.image-text__img {
    height: 192px;
    margin-bottom: 30px;
    position: relative;
    z-index: 4;
}

.image-text__img img {
    display: block;
}

.image-text__text {
    color: #353535;
}

.image-text__text .btn {
    margin-top: 10px;
}

.image-text__text .subtilte:empty {
    top: 2px;
    margin-bottom: 0;
}

.image-text__text h2 {
    padding-bottom: 15px;
}

.js-text-video-cover-link {
    position: relative;
    display: block;
    border: none;
    background: transparent;
    height: 100%;
}

.image-video-text__link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-video-text__link svg {
    width: 50px;
    height: 50px;
    transition: all .3s ease-in-out;
}

.image-text__pattern {
    position: absolute;
    left: 0;
    bottom: 0;
}

.image-text__img--shadow img {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (min-width:768px) {
    .image-text__img {
        height: 387px;
        margin-bottom: 40px;
    }

    .image-video-text__link svg {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 1025px) {
    .image-text__img {
        height: 450px;
    }
}

@media (min-width: 1200px) {
    .image-text__img {
        height: 485px;
        margin: 0;
        padding-right: 0;
    }

    .image-text__img--inner {
        height: 350px;
    }

    .image-text__text {
        padding-left: 65px;
        padding-top: 30px;
    }

    .flex-opposite .image-text__text {
        padding-left: 16px;
        padding-top: 0;
        padding-right: 50px;
    }

    .image-video-text__link svg {
        width: 140px;
        height: 140px;
    }

    .js-text-video-cover-link:hover {
        background: none;
    }

    .js-text-video-cover-link:hover .image-video-text__link svg {
        width: 160px;
        height: 160px;
    }

    .image-text__text .subtilte:empty {
        top: 8px;
    }
}

@media (min-width: 1600px) {
    .image-text__img {
        height: 485px;
        margin: 0;
        padding-right: 0;
    }

    .image-text__img--large {
        height: 523px;
    }

    .image-text__text {
        padding-left: 96px;
        padding-top: 30px;
    }

    .flex-opposite .image-text__text {
        padding-left: 16px;
        padding-top: 0;
        padding-right: 96px;
    }

    .image-text__img--inner {
        height: 485px;
    }

}



/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block. 
    If there is any reasons why you would need to style this 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;
    align-items: center;
}

.half-and-half {
    padding-left: 22px;
    padding-right: 22px;
}

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    flex: 0 0 100%;
    max-width: 100%;
}

.half-and-half-image img {
    width: 100%;
    height: 192px;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.half-and-half-text {
    padding: 30px 0 0;
    position: relative;
    z-index: 2;
}

.half-and-half-text__wrapper h2 {
    padding-bottom: 15px;
}

.half-and-half--background .half-and-half-text {
    padding: 0 0 0;
}

.flex-align-top {
    align-items: flex-start;
}

@media (min-width: 768px) {

    .half-and-half {
        padding-left: 52px;
        padding-right: 52px;
        position: relative;
    }

    .half-and-half-image img {
        height: 387px;
    }

    .half-and-half-text__wrapper .btn {
        margin-top: 10px;
    }

    .half-and-half__bg {
        position: absolute;
        top: 0;
        right: 0;
        max-width: 311px;
    }

    .half-and-half--background::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 311px;
        height: 100%;
        z-index: 1;
        background: linear-gradient(to right,  rgba(244,244,244,1) 0%,rgba(244,244,244,0.5) 100%); 

    }

    .half-and-half--background .half-and-half-image img {
        height: 280px;
        position: relative;
        right: -50px;
    }

    .half-and-half--background.half-and-half {
        padding-left: 0;
        padding-right: 0;
    }
    
    .half-and-half--background .half-and-half-text {
        position: relative;
        flex: 0 0 60%;
    }

    .half-and-half--background .half-and-half-image {
        position: relative;
        z-index: 4;
        flex: 0 0 40%;
        margin-top: 60px;
    }

    .half-and-half--background.flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half--background .half-and-half-text__wrapper {
        padding-left: 52px;
        padding-right: 0;
    }

    .half-and-half--background.flex-row {
        align-items: flex-start;
    }

}
  
@media (min-width: 1200px) {
    .half-and-half {
        padding-left: 0;
        padding-right: 0;
    }
    
    .half-and-half-text {
        position: relative;
        flex: 0 0 51%;
        max-width: 51%;
    }

    .half-and-half-image {
        position: relative;
        z-index: 4;
        flex: 0 0 49%;
        max-width: 49%;
    }

    .half-and-half-image img {
        height: 571px;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-text__wrapper {
        padding-left: 68px;
        padding-right: 50px;
    }

    .flex-opposite .half-and-half-text__wrapper {
        padding-left: 50px;
        padding-right: 68px;
    }

    .half-and-half-text__wrapper h2 {
        padding-bottom: 20px;
    }

    .half-and-half-text__wrapper .btn {
        margin-top: 15px;
    }

    .half-and-half--background .half-and-half-text {
        flex: 0 0 54%;
    }

    .half-and-half--background .half-and-half-image {
        flex: 0 0 46%;
        margin-top: 68px;
    }

    .half-and-half__bg {
        max-width: 450px;
    }

    .half-and-half--background::before {
        width: 450px;
    }

    .half-and-half--background .half-and-half-image img {
        height: 550px;
        position: relative;
        right: 30px;
    }

}

@media (min-width: 1600px) {
    .half-and-half-text {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .half-and-half-image {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .half-and-half-image img {
        height: 523px;
    }

    .half-and-half-text__wrapper {
        padding-left: 100px;
        padding-right: 94px;
    }

    .flex-opposite .half-and-half-text__wrapper {
        padding-left: 100px;
        padding-right: 98px;
    }

    .half-and-half--background.flex-opposite .half-and-half-text__wrapper {
        padding-left: 100px;
        padding-right: 0;
    }

    .half-and-half--background .half-and-half-text {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .half-and-half--background .half-and-half-image {
        flex: 0 0 55%;
        max-width: 55%;
        margin-top: 0;
    }

    .half-and-half__bg {
        max-width: 650px;
    }

    .half-and-half--background::before {
        width: 650px;
    }

    .half-and-half--background .half-and-half-image img {
        height: auto;
        max-width: 856px;
        right: 153px;
        position: absolute;
        top: -39px;
      }

}

.half-and-half-image--big {
    height: 100%;
    margin-top: 5px;
}

.half-and-half-image--big img {
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    height: 100%;
}

.half-and-half-text--sml {
    padding-top: 25px;
    padding-bottom: 10px;
}

.half-and-half__below-image {
    margin-top: 40px;
}

.home .half-and-half.bg-dark-gray {
    background: transparent linear-gradient(90deg, #EBEBEB00 0%, #EBEBEB 24%, #EBEBEB00 50%, #EBEBEB 76%, #EBEBEB00 100%) 0% 0% no-repeat padding-box;;
}

@media (min-width: 1200px) {
    .half-and-half-text--sml {
        align-self: stretch;
        padding-bottom: 0;
    }

    .half-and-half-text--sml .half-and-half-text__wrapper {
        position: relative;
        padding-left: 50px;
        padding-right: 40px;
        padding-bottom: 60px;
        height: 100%;
    }

    .half-and-half.right-img,
    .image-text.right-img .flex-row {
        flex-direction: row-reverse;
    }

    .js-tab-accordion--slider .half-and-half-text--sml {
        width: 43%;
    }
}

@media (min-width: 1600px) {
    .half-and-half-image--big {
        height: auto;
    }

    .half-and-half-text--sml .half-and-half-text__wrapper {
        padding-left: 80px;
        padding-right: 80px;
        padding-top: 35px;
    }
}

@media (min-width: 1920px) {
    .half-and-half-image--big {
        flex: 0 0 57%;
    }

    .half-and-half-text--sml {
        flex: 0 0 43%;
    }

    .half-and-half-text--sml .half-and-half-text__wrapper {
        padding-left: 100px;
        padding-right: 100px;
    }
}