/*------------------------------------*\
    
    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;
    flex-direction: column;
}


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

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    width: 100%;
}

.half-and-half-image{
    padding: 35px 22px 0;
}

.half-and-half-image img {
    height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
}

.half-and-half-text {
    padding: 35px 22px 50px;
}


.half-and-half-image .fx-slider .fx-slide{
    height: 100%;
    position: relative;
    min-height: 220px;
}


.half-and-half-image .fx-slider .fx-slide img{
    height: 220px;
}


.half-and-half .image-text__slider .slick-arrow{
    bottom: -60px;
}


.half-and-half .half-and-half-image .image-text__img1,
.half-and-half .half-and-half-image .image-text__img1 .image-text__slider{
    height: 100%;
}


.half-and-half .half-and-half-image .image-text__img1{
    padding-bottom: 80px;
}


.half-and-half .image-text__slider .slick-track,
.half-and-half .image-text__slider .slick-list{
    height: 100%;
}


.half-and-half .image-text__slider .slick-track .slick-slide > div{
    height: 100%;
}


@media (min-width: 768px) {
    .half-and-half.flex-opposite {
        flex-direction: column-reverse;
    }

    .half-and-half {
        padding: 80px 0;
    }

    .half-and-half-image {
        width: 100%;
        padding: 0 30px;
    }

    .half-and-half-text {
        width: 100%;
    }

    .half-and-half-text {
        padding: 30px 52px;
    }

    .image-block-left  .half-and-half-text {
        padding-left: 31px;
    }

    .image-block-right  .half-and-half-text {
        padding-right: 31px;
    }

    .half-and-half-image img {
        position: relative;
        top: 0;
        left: 0;
        border-radius: 5px;
    }

    
}


@media (min-width: 1025px){

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

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

    .image-block-left .half-and-half-image img {
        border-radius: 0 5px 5px 0;
    }

    .image-block-right .half-and-half-image img {
        border-radius: 5px 0 0 5px;
    }


    .half-and-half .half-and-half-image .image-text__img1{
        padding-bottom: 0;
    }


    .half-and-half-image .fx-slider .fx-slide img{
        height: 100%;
    }

}


@media (min-width: 1200px) {
    .half-and-half {
        padding: 120px 0;
        flex-direction: row;
    }

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

    .half-and-half-image {
        padding: 0;
        width: calc(50% - 133px);
    }    

    .half-and-half-text {
        width: calc(50% + 133px);
    }

    .half-and-half-text {
        padding: 100px 63px;
    }

    .image-block-left .half-and-half-text {
        padding-left: 50px;
    }

    .image-block-right .half-and-half-text {
        padding-right: 50px;
    }

    .half-and-half-text__wrapper {
        max-width: 724px;
    }

    .image-block-right .half-and-half-text__wrapper {
        margin-left: auto;
    }

    .half-and-half-image .fx-slider .fx-slide{        
        min-height: 400px;
    }

}