/*------------------------------------*\
    
    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 {
    padding-left: 22px;
    padding-right: 23px;
}

.half-and-half.bg-dark-blue {
    background-color: var(--bg-dark);
}

.half-and-half.bg-dark-blue h2,
.half-and-half.bg-dark-blue .half-and-half-text__wrapper {
    color: white;
}


.image-video-caption{
    font-size: 16px;
    color: var(--color-body-text);
    font-style: italic;
    margin-top: 10px;
}

.half-and-half.bg-dark-blue .image-video-caption{
    font-size: 16px;
    color: var(--color-gray);
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 20px;
}

.half-and-half-image {
    width: 100%;
    height: 220px;
    /* margin-bottom: 60px; */
}

.half-and-half-image img {
    display: block;
}

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

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

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

.video-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 21, 42, 0.35);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.video-play-btn .player {
    background: none;
    width: 80px;
    height: 80px;
    border: none;
    position: relative; 
    text-indent:-9999px;
}

.video-play-btn .player:before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 2px solid var(--color-white);
    top: 0;
    left: 0;
    transform: scale(1);
    opacity: 0.5;
}

.video-play-btn .player__inner {
    width: 65px;
    height: 65px;
    background: var(--color-white);
    border-radius: 50px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
  
.video-play-btn .player span {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-left: 20px solid var(--color-secondary);
    border-bottom: 15px solid transparent;
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);    
}

@media (min-width: 768px) {
    .half-and-half {
        padding-left: 52px;
        padding-right: 52px;
    }
    
    .half-and-half-image {
        height: 442px;
    }

    .video-play-btn .player {
        width: 115px;
        height: 115px;
    }

    .video-play-btn .player__inner {
        width: 100px;
        height: 100px;
    }

    .video-play-btn .player span {
        border-top: 25px solid transparent;
        border-left: 40px solid var(--color-secondary);
        border-bottom: 25px solid transparent;   
      }

}
    
@media (min-width: 1200px) {
    .half-and-half {
        padding-left: 0;
        padding-right: 0;
    }

    .half-and-half-text {
        position: relative;
        width: 56%;
        padding: 30px 0 30px 72px;
    }

    .half-and-half-image {
        height: 442px;
        width: 44%;
        position: relative;
        margin-bottom: 0;
    }
    
    .half-and-half-image img {
        position: relative;
    }
    
    .flex-opposite {
        flex-direction: row-reverse;
    }

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

    .flex-opposite .half-and-half-text {
        padding: 30px 72px 30px 0;
    }

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

    
}

