/*------------------------------------*\
    
    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-top: 65px;
}

.image-text__half--border {
    position: relative;
    padding-bottom: 11px;
}

.image-text__img {
    width: calc(100% - 21px);
    position: relative;
    z-index: 1;
}

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

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

.image-text__img::before {
    content: '';
    position: absolute;
    width: 125px;
    height: 117px;
    bottom: -11px;
    background: var(--color-primary-orange);
    opacity: 0.5;
    border-radius: 20px;
    z-index: -1;
}

.image-text__img::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 59px;
    bottom: 8px;
    z-index: -1;
    background: linear-gradient(to bottom,  rgba(248,185,23,1) 0%,rgba(248,185,23,1) 50%,rgba(248,185,23,0) 51%,rgba(248,185,23,0) 100%);
    background-size: 100% 8px;
}

.bg-lime .image-text__img::after {
    background: linear-gradient(to bottom,  rgba(16,139,68,1) 0%,rgba(16,139,68,1) 50%,rgba(16,139,68,0) 51%,rgba(16,139,68,0) 100%);
    background-size: 100% 8px;
}

.bg-white.pd-style .image-text__img::after {
    background: linear-gradient(to bottom,  rgb(112, 76, 112,1) 0%,rgb(112, 76, 112,1) 50%,rgb(112, 76, 112,0) 51%,rgb(112, 76, 112,0) 100%);
    background-size: 100% 8px;
}

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

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

.image-text__half--border::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    background: linear-gradient(to right,  rgba(248,185,23,1) 0%,rgba(248,185,23,1) 50%,rgba(248,185,23,0) 51%,rgba(248,185,23,0) 100%);
    background-size: 8px 100%;
    right: -258px;
}

.bg-lime .image-text__half--border::after {
    background: linear-gradient(to right,  rgba(16,139,68,1) 0%,rgba(16,139,68,1) 50%,rgba(16,139,68,0) 51%,rgba(16,139,68,0) 100%);
    background-size: 8px 100%;
}

.bg-white.pd-style .image-text__half--border::after {
    background: linear-gradient(to right,  rgb(112, 76, 112,1) 0%,rgb(112, 76, 112,1) 50%,rgb(112, 76, 112,0) 51%,rgb(112, 76, 112,0) 100%);
    background-size: 8px 100%;
}

.bg-yellow .image-text__img::before {
    background: var(--color-secondary-green);
}

.bg-white.pd-style .image-text__img::before {
    background: rgba(203, 76, 39, 0.50);
    opacity: 1;
}

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

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


.bg-yellow .image-text__img::after {
    background: linear-gradient(to bottom,  rgba(239,102,35,1) 0%,rgba(239,102,35,1) 50%,rgba(239,102,35,0) 51%,rgba(239,102,35,0) 100%);
    background-size: 100% 8px;
}

.bg-yellow .image-text__half--border::after {
    background: linear-gradient(to right,  rgba(239,102,35,1) 0%,rgba(239,102,35,1) 50%,rgba(239,102,35,0) 51%,rgba(239,102,35,0) 100%);
    background-size: 8px 100%;
}

.image-text--left .image-text__half--border::after {
    left: -258px;
}

.btn-group--bottom {
    margin-bottom: 25px;
}


@media (min-width: 768px) {
        
    .image-text__half--border {
        padding-bottom: 16px;
    }

    .image-text__img {
        width: 466px;
    }

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

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

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

    .image-text__img::before {
        width: 188px;
        height: 176px;
        bottom: -16px;
        border-radius: 30px;
    }

    .image-text__img::after {
        width: 4px;
        height: 89px;
        bottom: 12px;
        background-size: 100% 16px;
    }

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

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

    .image-text__half--border::after {
        height: 4px;
        background-size: 16px 100%;
        right: -396px;
    }

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

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


    .bg-yellow .image-text__img::after {
        background-size: 100% 16px;
    }

    .bg-yellow .image-text__half--border::after {
        background-size: 16px 100%;
    }

    .image-text--left .image-text__half--border::after {
       left: -396px;
    }

    .btn-group--bottom {
        margin-bottom: 30px;
    }

}


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

    .image-text__text {
        margin-top: 0;
    }


    .image-text__half--border {
        padding-bottom: 20px;
    }

    .image-text__img {
        width: 100%;
        max-width: 582px;
    }


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

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

    .image-text__img::before {
        width: 236px;
        height: 220px;
        bottom: -20px;
    }

    .image-text__img::after {
        height: 111px;
        bottom: 16px;
    }

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

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

    .image-text__half--border::after {
        right: auto;
        width: 3000px;
        left: 522px;
    }

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

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


    .image-text--left .image-text__half--border::after {
       left: auto;
       right: 522px;
    }

    .btn-group--bottom {
        margin-bottom: 45px;
    }
}