/*------------------------------------*\
    
    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;
}

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

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

.half-and-half-text { /* For sub heading dashline */
    padding: 50px 20px 0;
}

.half-and-half-text h4.dashline{ /* For sub heading dashline */
    position: relative;
    color: #5085C3;
}

.half-and-half-text h4::after{
    position: absolute;
    content: '';
    width: 75px;
    height: 2px;
    background-color: #4C78BB;
    top: 50%;
    transform: translate(10px, -50%);
}

.half-and-half-text.right {
    margin-right: auto;
}

.half-and-half-text.left {
    margin-left: auto;
    margin-bottom: 25px;
}

.half-and-half.white-bg {
    background-color: #ffffff;
}

.half-and-half.gray-bg {
    background-color: #f7f7f7;
}

.half-and-half.light-blue-bg {
    background-color: #f8f8fd;
}
    
.half-video-wrapper {
    width: 100%;
    height: 100%;
}

.image-block-right .half-video-wrapper {
    right: 0;
}

.half-video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.half-and-half + .white-bg.half-and-half {
    padding-top: 0;
}

.play-video-btn {
    position: absolute;
    cursor: pointer;
    top: 50%;
    left: 50%;
    right: 0;
    background: rgb(237 243 249 / 84%);
    width: 112px;
    height: 112px;
    border-radius: 100%;
    transform: translate(-50%,-50%);
    z-index: 1;
}

.play-video-btn.orange {
    background-color: rgb(255 255 255 / 31%);
    padding: 10px;
    border-radius: 100px;
    z-index: 5;
}

.play-video-btn__inner {
    padding: 20px;
    background-color: #FFFFFF;
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 100px;
}

.half-video-wrapper .video-wrapper a::before {
    background-color: rgb(0 0 0 / 50%);
    width: 100%;
    height: 100%;
    content: '';
    left: 0;
    top: 0;
    border-radius: 5px;
    position: absolute;
    z-index: 2;
}

.watch-now-wrapper {
    position: absolute;
    z-index: 3;
    background-color: #fff;
    box-shadow: 1px 2px 6px 2px rgb(0 0 0 / 13%);
    padding: 10px 40px 10px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #7B7770;
    font-size: 18px;
    left: 40px;
    top: -23px;
    display: flex;
    align-items: center;
}

.watch-now-wrapper > img {
    position: relative!important;
    width: 24px;
    left: 0;
    margin-right: 10px;
}

.watch-now-wrapper .arrow-right {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(-11px, 49%);
}

.watch-now-wrapper .arrow-right .arrow-right__img {
    max-width: 100%;
    width: 100%;
    position: relative;
}

.location-template-default .half-and-half ul {
    font-size: 16px;
    /* padding-left: 24px; */
}

@media( min-width:1025px ) {

    .play-video-btn {
        transform: translate(-80%, -55%);
    }

    .half-and-half.image-block-right .play-video-btn {
        transform: translate(-20%, -55%);
    }

    .half-and-half .video-image .play-video-btn {
        transform: translate(-50%, -50%);
    }
}

.play-video-btn svg {
    position: absolute;
    top: 24px;
    right: 20px;
    pointer-events: none;
}

.play-video-btn__inner svg {
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
}

@media (min-width: 1025px) {
    
    .half-and-half .container.flex-row {
        min-height: 500px;
    }

    .half-video-wrapper .video-wrapper { /* We added video-wrapper here and instead of video here */
        transform: translate(0, -50%);
        position: absolute;
        width: 90%;
        border-radius: 5px;
        right: 0;
        top: 50%;
        height: 400px;
    }

    .image-block-left .half-video-wrapper .video-wrapper {  /* We added video-wrapper here and instead of video here */
        left: 0;
        right: initial;
    }

    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
        max-width: 90%;
    }

    .half-and-half-image .video-wrapper .video-image img {
        position: relative;
        width: 100%;
        max-width: 100%;
    }
    
    .half-and-half-image.size-contain img {
        width: 100%;
        object-fit: contain;
        height: auto;
        transform: translate(0, -50%);
        top: 50%;
    }
    
    .image-block-right .half-and-half-image img {
        right: 0;
    }

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

@media (min-width: 1200px) {
    .half-and-half-text {
        padding: var(--margins) 80px;
    }
}

@media (min-width: 1800px) {
    .half-and-half-text {
        padding: var(--margins) 150px;
    }
}

.image-bottom-mobile.half-and-half >.flex-row {
    flex-direction: column-reverse;
}


@media (min-width: 1025px) {
    .image-bottom-mobile.half-and-half > .flex-row {
        flex-direction: initial;
    }
}