/*------------------------------------*\
    
    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-row.image-block-right {
    flex-direction: row-reverse;
}

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

.half-and-half-image img {
    height: 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;    
}

.half-and-half-image__full {
    margin: 0 22px;
    height: 200px;
    position: relative;
}

.half-and-half-image__full img {
    border-radius: 7px;
}

.video-bttn {
    border-radius: 7px;
    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.3);
}

.video-bttn svg {
    transition: all .3s;
    width: 81px;
}

.half-and-half-text {
    margin: 35px 22px 0;
}

.half-and-half-text .btn-group {
    margin-top: 25px;
}

.half-and-half-image__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 175px;
}

.half-and-half-image__top-left,
.half-and-half-image__top-right {
    position: relative;
    width: calc(50% - 10px);
    height: 100%;
}

.half-and-half-image__top-left img {
    border-radius: 0 7px 7px 0;
}

.half-and-half-image__top-right img {
    border-radius: 7px 0 0 7px;
}

.half-and-half-image__bottom {
    margin-top: 20px;
    height: 200px;
}

.half-and-half-image__double {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 175px;
}

.half-and-half-image__left,
.half-and-half-image__right {
    position: relative;
    width: calc(50% - 10px);
    height: 100%;
}

.half-and-half-image__left img {
    border-radius: 0 7px 7px 0;
}

.half-and-half-image__right img {
    border-radius: 7px 0 0 7px;
}

@media (min-width: 768px) {

    .half-and-half-image__full {
        margin: 0 52px;
        height: 300px;
    }

    .half-and-half-text {
        margin: 35px 52px 0;
    }

    .half-and-half-text .btn-group {
        margin-top: 30px;
    }


    .half-and-half-image__top {
        margin: 0 52px;
    }

    .half-and-half-image__top-left {
        width: 258px;
    }

    .half-and-half-image__top-right {
        width: calc(100% - 290px);
    }

    .half-and-half-image__top-left img,
    .half-and-half-image__top-right img,
    .half-and-half-image__bottom img {
        border-radius: 7px;
    }

    .half-and-half-image__bottom {
        margin: 32px 52px 0;
        height: 250px;
    }


    .image-block-left .half-and-half-image__top {
        flex-direction: row-reverse;
    }

    .image-block-right .half-and-half-image__double {
        flex-direction: row-reverse;
    }

    .half-and-half-image__double {
        margin: 0 52px;
        height: 300px;
    }

    .half-and-half-image__right {
        width: 258px;
    }

    .half-and-half-image__left {
        width: calc(100% - 290px);
    }

    .half-and-half-image__left img,
    .half-and-half-image__right img {
        border-radius: 7px;
    }

}

@media (min-width: 1200px) {

    .half-and-half-image__full {
        margin: 0;
        height: 100%;
    }

    .half-and-half-image__full img {
        position: absolute;
    }

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

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

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

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

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

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

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

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

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

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

    .half-and-half-image__top {
        margin: 0;
        height: calc(40% - 16px);
    }

    .half-and-half-image__top-left {
        width: 292px;
    }

    .half-and-half-image__top-right {
        width: calc(100% - 324px);
    }

    .half-and-half-image__top-right img,
    .half-and-half-image__bottom img {
        border-radius: 7px 0 0 7px;
    }

    .half-and-half-image__bottom {
        margin: 32px 0 0;
        height: calc(60% - 16px);
    }

    .image-block-left .half-and-half-image__top-right img,
    .image-block-left .half-and-half-image__bottom img {
        border-radius: 0 7px 7px 0;
    }

    .half-and-half-image__double {
        margin: 0;
        height: 100%;
    }

    .half-and-half-image__right {
        width: 292px;
    }

    .half-and-half-image__left {
        width: calc(100% - 324px);
    }

    .half-and-half-image__left img {
        border-radius: 0 7px 7px 0;
    }

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

    .half-and-half-image__wrap {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

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