/*------------------------------------*\
    
    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block. 
    If there is any reasons why you would need to style them 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;
}

.image-text .flex-row {
    align-items: center
}

.image-text__title {
    text-align: center;
    color: var(--navy);
    font-family: "Koh Santepheap", serif;
    font-size: 3.75rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1em;
    text-transform: uppercase;
    opacity: 0.08;
    margin: 0 -13px 35px;
}

.image-text__half {
    position: relative;
    width: 100%;
    z-index: 1;
}

.image-text__img {
    height: 175px;
}

.image-text__img--video {
    height: auto;
}

.image-text__img--video img {
    min-height: 200px;
    object-position: top;
}

.image-text__img img {
    border-radius: 3px;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-text__video-info {
    z-index: -1;
    position: relative;
    width: 100%;
    /* height: calc(100% + 31px); */
    /* bottom: -62px; */
    right: -9px;
    background: rgba(0,44,87,0.1);
    border-radius: 3px;
    /* display: flex;
    align-items: flex-end;
    padding: 0 40px 12px 16px; */
    color: var(--navy);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2em;
    height: auto;
    margin-left: auto;
    padding: 12px 40px 12px 16px;
}

.image-text__video-info::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: rgba(0,44,87,.1);
}

.bg-navy-blue .image-text__video-info {
    color: var(--white);
    background: rgb(240 248 255 / 10%);
}

.image-text__text {
    padding-top: 25px;
}


@media (min-width: 768px) {
    .home-video-content {
        padding: 80px 0;
    }

    .image-text__title {
        text-align: left;
        font-size: 5.625rem;
        margin: 0 0 10px;
    }

    .image-text__title span {
        display: block;
        padding-left: 60px;
    }

    .image-text__img {
        height: 350px;
    }

    .image-text__img--video {
        height: auto;
    }

    .image-text__img--video {
        padding-right: 26px;
    }

    .image-text__img--video img {
        min-height: 325px;
    }

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

    .image-text__video-info {
        width: calc(100% - 162px);
        right: -26px;
        padding: 16px 31px 16px 16px;
        font-size: 1rem;
        display: flex;
        align-items: flex-end;
        top: unset;
    }

    .image-text__text {
        padding-top: 30px;
    }
}

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .home-video-content {
        padding: 75px 0 120px 0;
    }

    .home-video-content .flex-row {
        align-items: center;
    }

    .image-text__title {
        font-size: 6rem;
        margin: 0 0 0;
        display: flex;
        margin-left: -63px;
    }
    
    .image-text__img--video,
    .image-text__img {
        width: 540px;
        padding: 0;
    }

    .image-text__img--video img {
        min-height: 420px;
    }

    .image-text__text {
        padding-top: 0;
        margin: 0;
        width: calc(100% - 540px);
    }

    .image-text__text p {
        max-width: 615px;
    }

    .image-text__video-info {
        width: 100%;
        right: -30px;
        font-size: 1rem;
    }

    .image-text__title span {
        padding-left: 30px;
    }

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

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

    .image-text--left .image-text__text {
        padding-left: 75px;
    }
}

@media (min-width: 1600px) {
    .image-text__title {
        font-size: 8.125rem;
        margin-left: -223px;
    }
}