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

.section-margins-top{
    margin-top: 60px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.section-margins-bottom{
    margin-bottom: 60px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

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

.half-and-half-text {
    padding: 30px 22px;
    color: #28303C;
    z-index: 1;
}

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

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

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

.half-and-half-image__wrap a {
    height: 220px;
    width: 100%;
    display: block;
    border-radius: 7px;
    position: relative;
    background: transparent;
    border: none;
}

.half-and-half-text__wrapper p{
    padding: 0 0 10px 0;
}

.half-and-half-text__wrapper p:last-child{
    padding-bottom: 20px;
}

.half-and-half-text__wrapper .btn{
    margin-top: 20px;
}

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

.half-and-half {
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

.half-and-half::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: linear-gradient(135deg,  #e4f8fa 0%,#7bdce6 100%);
    border-radius: 0 0 0 100px;
}


.half-and-half.bg-blue::before {
    background: linear-gradient(45deg,  #a4c2ed 0%,#dde8f8 100%);
    border-radius: 0 0 100px 0;
}

.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
}

.video-description {
    margin-top: 14px;
    background: #DDE8F8;
    border-radius: 7px;
    text-align: center;
    padding: 6px 20px 7px;
    font-size: 14px;
    font-weight: 400;
    color: #28303C;
    line-height: 1.4em;
}

.half-right-icon {
    position: absolute;
    right: -20px;
    bottom: 0;
    z-index: -1;
    opacity: 0.45;
}


.half-and-half.accent-short::before,
.flex-opposite.half-and-half.accent-short::before{
    content: none;
    width: 0;
    height: 0;
}


.half-and-half.bg-blue.accent-short .half-and-half-image__wrap:before{
    content: '';
    position: absolute;
    width: 300px;
    height: 100%;
    left: unset;
    right: 7px;
    bottom: -20px;
    background: linear-gradient(45deg, #a4c2ed 0%, #dde8f8 100%);
    border-radius: 20px 10px 10px 100px; 
    z-index: -1;
}

.half-and-half.accent-short .half-and-half-image__wrap:before{
    content: '';
    position: absolute;
    width: 300px;
    height: 100%;
    left: unset;
    right: 7px;
    bottom: -20px;
    background: linear-gradient(135deg, #e4f8fa 0%, #7bdce6 100%);
    border-radius: 20px 10px 10px 100px; 
    z-index: -1;
}

.half-and-half.flex-opposite.bg-blue.accent-short .half-and-half-image__wrap:before{
    content: '';
    position: absolute;
    width: 300px;
    height: 100%;
    left: 7px;
    bottom: -20px;
    background: linear-gradient(45deg, #a4c2ed 0%, #dde8f8 100%);
    border-radius: 10px 20px 100px 10px;
    z-index: -1;
}


.half-and-half.flex-opposite.accent-short .half-and-half-image__wrap:before{
    content: '';
    position: absolute;
    width: 300px;
    height: 100%;
    left: 7px;
    bottom: -20px;
    background: linear-gradient(135deg, #e4f8fa 0%, #7bdce6 100%);
    border-radius: 10px 20px 100px 10px;
    z-index: -1;
}

.section-margins-top{    
    margin-bottom: 80px !important;
}


@media (min-width: 768px) {

    .half-and-half-text {
        padding: 60px 52px 30px;
    }
    
    .half-and-half-image__wrap {
        padding: 0 52px;
    }
    
    .half-and-half-image__wrap a {
        height: 442px;
    }

        
    .half-and-half::before {
        height: calc(100% - 220px);
    }

    .media-play {
        width: 113px;
    }
    
    .video-description {
        margin-top: 16px;
        padding: 5px 20px 6px;
        font-size: 16px;
    }


    .half-and-half.bg-blue.accent-short .half-and-half-image__wrap:before{       
        right: 20px;
        bottom: -42px; 
        width: 500px;
        height: 100%;       
    }
    
    .half-and-half.accent-short .half-and-half-image__wrap:before{        
        right: 20px;
        bottom: -42px;    
        width: 500px;
        height: 100%;   
    }
    
    .half-and-half.flex-opposite.bg-blue.accent-short .half-and-half-image__wrap:before{        
        left: 20px;
        bottom: -42px;  
        width: 500px;
        height: 100%;      
    }
    
    
    .half-and-half.flex-opposite.accent-short .half-and-half-image__wrap:before{        
        left: 20px;
        bottom: -42px;  
        width: 500px;
        height: 100%;      
    }

}
    
@media (min-width: 1200px) {

    .section-margins-top{
        margin-top: 80px !important;
        margin-bottom: 0 !important;
    }
    
    .section-margins-bottom{
        margin-bottom: 80px !important;
        margin-top: 0 !important;
    }
    
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
        padding-top: 30px;
    }

    .half-and-half-image__wrap {
        padding: 0 16px;
        max-width: 648px;
        position: relative;
        display: block;
    }

    .left .half-and-half-image__wrap {
        float: right;
    }  

    .right .half-and-half-image__wrap {
        float: left;
    } 


    .half-and-half::before {       
        border-radius: 20px 0 0 100px;
    }


    .half-and-half.image-block-left::before {       
        border-radius: 0 20px 100px 0;
    }
    
    
    .half-and-half.bg-blue::before {        
        border-radius: 0 20px 100px 0;
    }

    .half-and-half-image__wrap a {
        height: 409px;
    }


    .half-and-half-text__wrapper p{
        padding: 0 0 10px 0;
    }
    
    .half-and-half-text__wrapper p:last-child{
        padding-bottom: 20px;
    }

    .half-and-half-image__wrap  .media-play > path,
    .half-and-half-image__wrap .media-play > rect{
        transition: all 0.2s ease-in-out;
    }

    .half-and-half-image__wrap  .media-play:hover > path{
        fill: var(--color-white);        
    }

    .half-and-half-image__wrap .media-play:hover > rect{
        fill: var(--color-teal);        
    }

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

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

    /*.half-and-half.bg-white .half-and-half-text {
        padding: 0 16px 30px;
    }*/

    .half-and-half-text__wrapper {
       max-width: 620px;
       padding-left: 16px;
    }

    .right .half-and-half-text__wrapper {
        padding-left: 0;
        padding-right: 16px;
     }

    .half-and-half-text.right .half-and-half-text__wrapper {
        float: right;
    }

    .half-and-half::before {
        width: calc(50% + 526px);
        height: 100%;
    }

    .flex-opposite.half-and-half::before {
        left: auto;
        right: 0;
        border-radius: 20px 0 0 100px;
    }

    .half-and-half.accent-short::before,
    .flex-opposite.half-and-half.accent-short::before{
        content: none;
        width: 0;
        height: 0;
    }

    .half-and-half.bg-blue.accent-short .half-and-half-image__wrap:before{       
        right: -42px;
        bottom: -42px;      
        width: 100%;
        height: 100%;  
    }
    
    .half-and-half.accent-short .half-and-half-image__wrap:before{        
        right: -42px;
        bottom: -42px;   
        width: 100%;
        height: 100%;     
    }
    
    .half-and-half.flex-opposite.bg-blue.accent-short .half-and-half-image__wrap:before{        
        left: -42px;
        bottom: -42px;     
        width: 100%;
        height: 100%;    
    }
    
    
    .half-and-half.flex-opposite.accent-short .half-and-half-image__wrap:before{        
        left: -42px;
        bottom: -42px;  
        width: 100%;
        height: 100%;       
    }

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

    .video-description {
        margin-top: 17px;
        padding: 7px 20px 7px;
        width: 486px;
        background: #DDE8F8;
        mix-blend-mode: multiply;
    }

    .flex-opposite .video-description {
        float: right;
    }

    .half-right-icon {
        right: -20px;
        bottom: -82px;
        opacity: 1;
    }

    .image-block-left .half-right-icon {
        right: auto;
        left: -88px;
        bottom: -82px;
        opacity: 1;
    }
    
}
