/*------------------------------------*\
    
    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)

\*------------------------------------*/

.half-and-half {
    position: relative;
}

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

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

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

.half-and-half-image,
.half-image-item {
    height: 194px;
}

.half-and-half--slider .half-and-half-image {
    height: auto;
}

.js-half-image-slider {
    padding-bottom: 32px;
}

.half-and-half-text {
    padding: var(--section-margins) 22px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0,0,0,0.12);
}

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

.half-and-half-text__anchor {
    display: block;
    position: relative;
    top: -200px;
    visibility: hidden;
}


@media (min-width: 768px) {

    .half-and-half-image,
    .half-image-item  {
        height: 396px;
    }

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

    .half-and-half-text {
        padding-right: 110px;
        padding-left: 110px;
    }
}
    
@media (min-width: 1200px) {
    .half-and-half--slider {
        padding-bottom: 128px;
    }

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

    .video-bttn:hover svg {
        transform: scale(1.1);
    }
        
    .half-and-half-image, 
    .half-and-half-text {
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }

    .half-and-half-image {
        height: auto;
    }

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

    .image-block-right .half-and-half-text {
        display: flex;
        justify-content: flex-end;
    }

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

    .js-half-image-slider {
        padding-bottom: 0;
        height: 100%;
        margin-top: -1px;
    }

    .js-half-image-slider .slick-dots {
        bottom: -32px;
    }

    .js-half-image-slider div {
        height: 100%;
    }

    .half-image-item {
        height: 100%;
    }
}

@media (min-width: 1600px) {
    .image-block-left .half-and-half-text {
        padding-left: 81px;
    }

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