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

.bg-grey-gredient {
    position: relative;
    z-index: 1;
    background: #DEE5E5;
}

.bg-grey-gredient::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom,  rgba(240,242,242,1) 0%,rgba(240,242,242,0.9) 50%,rgba(240,242,242,0) 100%);
}

.image-text.bg-green-gredient {
    position: relative;
    z-index: 1;
    background: var(--color-primary-dark);
}

.bg-green-gredient::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom,  rgba(1,36,27,0) 0%,rgba(1,36,27,0.9) 50%,rgba(1,36,27,1) 100%);
}

.image-text__text .read-more__content::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30px;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}

.bg-grey-gredient  .image-text__text .read-more__content::after {
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(240,242,242,1) 100%);
}

.bg-green-gredient  .image-text__text .read-more__content::after {
    display: none;
}

.image-text__text .read-more__content.is-expanded::after {
    display: none;
}

.bg-green-gredient .expand {
    color: #fff;
}

.image-text__text {
    padding-bottom: 48px;
}

.image-text__img__wrap {
    position: relative;
    height: 176px;
}

.image-text__img__wrap img {
    object-position: top;
}

.image-text__img__wrap::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 2px solid var(--color-grey);
    z-index: 1;
}

.image-text__text .btn {
    margin-top: 20px;
}

.image-text__text .btn + .btn {
    margin-top: 32px;
}

@media (min-width: 768px) {
    .image-text__text .read-more__content::after {
        display: none;
    }

    .image-text__text .btn {
        margin-top: 40px;
    }

    .image-text__text .btn + .btn {
        margin-left: 16px;
        margin-top: 0;
    }


    .image-text__img__wrap {
        height: 354px;
    }

    .image-text__img__wrap::before {
        left: 20px;
        top: 20px;
        width: calc(100% - 40px);
        height: calc(100% - 40px);
    }

}

@media (min-width: 1200px) {

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


    .image-text__img__wrap {
        height: auto;
        max-width: 565px;
    }

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

    .bg-grey-gredient::before  {
        background: linear-gradient(to right,  rgba(240,242,242,1) 0%,rgba(240,242,242,0.9) 50%,rgba(240,242,242,0) 100%);
    }

    .bg-green-gredient::before  {
        background: linear-gradient(to right,  rgba(1,36,27,0) 0%,rgba(1,36,27,0.9) 50%,rgba(1,36,27,1) 100%);
    }
    

}