/*------------------------------------*\
    
    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__text {
    margin-bottom: 20px;
}

.image-text__img {
    position: relative;
    height: auto;
    z-index: 1;
}

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

.image-text__img::before {
    content: '';
    position: absolute;
    width: 113px;
    height: 113px;
    border-radius: 20px 20px 0 20px;
    border: 3px solid #EFF0FA;
    top: 25px;
    right: -11px;
    z-index: -1;
}

.image-text__img::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 0 600px 600px 600px;
    border: 3px solid #EFF0FA;
    top: 135px;
    right: -48px;
    z-index: -1;
}

.bg-gradient .image-text__img::before,
.bg-gradient .image-text__img::after {
    opacity: 0.1;
}

.video-bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(49, 43, 161, 0.65) 0%, rgba(115, 106, 255, 0.65) 50%, rgba(183, 96, 255, 0.65) 100%);
    border-radius: 15px;
    box-shadow: 0 10px 25px 0 rgba(24, 22, 53, 0.10);
}

.video-bttn svg {
    border-radius: 50%;
    width: 60px;
    height: auto;
    transition: all .3s;
    box-shadow: 0 10px 25px 0 rgba(24, 22, 53, 0.10);
}

.video-bttn svg path {
    fill: #FCA700 !important;
}

@media (min-width: 768px) {
    
    .image-text__text {
        margin-bottom: 35px;
    }

    .image-text__img {
        /* height: auto; */
        height: 350px;
        text-align: center;
    }

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

    .image-text__img::before {
        width: 185px;
        height: 185px;
        border-radius: 56px 56px 0 56px;
        border: 5px solid #EFF0FA;
        top: 40px;
        right: -24px;
    }

    .image-text__img::after {
        width: 66px;
        height: 66px;
        border: 5px solid #EFF0FA;
        top: 219px;
        right: -85px;
    }

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

    .video-bttn {
        border-radius: 25px !important;
    }
}

@media (min-width: 1200px) {

    .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .image-text__text {
        margin-bottom: 0;
    }

    .image-text__img {
        height: auto;
    }

    .image-text--right .image-text__img {
        margin-left: 18px;
    }

    .image-text--left .image-text__img {
        margin-right: 18px;
    }

    .image-text__img::before {
        width: 293px;
        height: 293px;
        top: 35px;
        right: auto;
    }

    .image-text--right .image-text__img::before {
        right: -106px;
    }

    .image-text--left .image-text__img::before {
        left: -106px;
        border-radius: 56px 56px 56px 0;
    }

    .image-text__img::after {
        width: 105px;
        height: 105px;
        top: 323px;
        right: auto;
    }

    .image-text--right .image-text__img::after {
        right: -206px;
    }

    .image-text--left .image-text__img::after {
        left: -206px;
        border-radius: 600px 0 600px 600px;
    }

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

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

    .video-bttn:hover {
        background: linear-gradient(180deg, rgba(49, 43, 161, 0.65) 0%, rgba(115, 106, 255, 0.65) 50%, rgba(183, 96, 255, 0.65) 100%);
    }
}

.image-text--testimonial .image-text__img {
    padding: 15px;
    border-radius: 45px 0 45px 45px;
    border: 3px solid #EFF0FA;
}

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

.image-text--testimonial .video-bttn {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    top: 15px;
    left: 15px;
    border-radius: 30px 3px 30px 30px;
}

.image-text--testimonial .image-text__img::after  {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #FFE0A3;
    top: -6px;
    right: -14px;
}

.image-text--testimonial .image-text__img::before {
    width: 30px;
    height: 34px;
    border-radius: 600px 600px 600px 0;
    top: -34px;
    right: -30px;
}

.image-text__testimonial p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6em;
    margin-bottom: 0;
}

.author h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6em;
    margin-bottom: 0;
}

.author p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6em;
}

.image-text--testimonial .image-text__img::after {
    opacity: 1;
}

.bg-gradient.image-text--testimonial .image-text__img {
    border-color: rgba(239,240,250,0.1);
}

@media (min-width: 768px) {

    .image-text--testimonial .image-text__text {
        margin-bottom: 36px;
    }

    .image-text--testimonial .image-text__img {
        height: 369px;
    }

    .image-text--testimonial .image-text__img img.object-fit--contain {
        object-fit: cover;
    }

    .image-text--testimonial .image-text__img::after  {
        width: 15px;
        height: 15px;
        top: -10px;
        right: -28px;
    }

    .image-text--testimonial .image-text__img::before {
        width: 55px;
        height: 55px;
        top: -55px;
        right: -55px;
        border-width: 3px;
    }

    .image-text__testimonial p {
        font-size: 20px;
    }

    .author h4 {
        font-size: 16px;
    }

    .author p {
        font-size: 15px;
    }
}


@media (min-width: 1200px) {

    .image-text--testimonial .image-text__text {
        margin-bottom: 0;
    }

    .image-text--testimonial .image-text__img {
        height: auto;
        max-width: 485px;
    }

    .image-text--right.image-text--testimonial .image-text__img {
        margin-left: auto;
    }

    .image-text--testimonial .image-text__img::after  {
        right: -32px;
    }

    .image-text--testimonial .image-text__img::before {
        width: 105px;
        height: 105px;
        top: -105px;
        right: -105px;
        border-width: 3px;
    }

    .image-text__testimonial p {
        font-size: 24px;
    }

    .author h4 {
        font-size: 18px;
    }

    .image-text--left.image-text--testimonial .image-text__img::before {
        right: auto;
        left: -105px;
        border-radius: 600px 600px 0 600px;
    }

    .image-text--left.image-text--testimonial .image-text__img {
        border-radius: 0 45px 45px 45px;
    }

    .image-text--left.image-text--testimonial .image-text__img img {
        border-radius: 3px 30px 30px 30px;
    }

    .image-text--left.image-text--testimonial .image-text__img::after {
        right: auto;
        left: -32px;
    }
}