/*------------------------------------*\

    Full-Width Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Full-Width 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-starter-blocks.php)

\*------------------------------------*/

.full-width-image-text {
    position: relative;
}

.full-width-image-text--direct-overlay {
    padding: 247px 0 42px 0;
}

.full-width-image-text__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 1;
}

.full-width-image-text--direct-overlay__wrap {
    padding: 0;
    position: relative;
    z-index: 2;
}

.full-width-image-text__headline {
    margin-top: 0;
}

.full-width-image-text__description :last-child {
    margin-bottom: 0;
}

.full-width-image-text--direct-overlay:before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,  rgba(0,60,113,0.25) 0%,rgba(0,60,113,0.75) 100%);
}

.full-width-image-text--direct-overlay-left:before {
    background: linear-gradient(to right,  rgba(0,60,113,0.75) 0%,rgba(0,60,113,0.25) 100%);
}


.full-width-image-text--direct-overlay .full-width-image-text--direct-overlay__wrap {
    background: #fff;
    box-shadow: 5px 8px 22px rgba(0, 28, 52, 0.5);
}

.full-width-image-text--direct-overlay-right .full-width-image-text--direct-overlay__wrap {
    padding: 30px 24px 30px 30px;
    margin-left: 22px;
    border-radius: 45px 0 0 45px;
}

.full-width-image-text--direct-overlay-left .full-width-image-text--direct-overlay__wrap {
    padding: 30px 30px 30px 24px;
    margin-right: 22px;
    border-radius: 0 45px 45px 0;
}

.full-width-image-text--direct-overlay-right  .full-width-image-text__img {
    object-position: center;
}

.full-width-image-text--direct-overlay-left  .full-width-image-text__img {
    object-position: top right;
}

@media (min-width: 768px) {
    .full-width-image-text--direct-overlay {
        padding: 247px 0 80px 0;
    }

    .full-width-image-text--direct-overlay-right .full-width-image-text--direct-overlay__wrap {
        padding: 40px 20px 50px 60px;
        margin-left: 52px;
    }

    .full-width-image-text--direct-overlay-left .full-width-image-text--direct-overlay__wrap {
        padding: 40px 50px 40px 20px;
        margin-right: 52px;
    }

}

@media (min-width: 1200px) {
    .full-width-image-text--direct-overlay {
        padding: 100px 0;
    }

    .full-width-image-text--direct-overlay__wrap {
        width: calc(50% + 97px);
    }

    .full-width-image-text--direct-overlay-right .full-width-image-text--direct-overlay__wrap {
        padding: 40px 40px 40px 50px;
        margin-left: auto;
    }

    .full-width-image-text--direct-overlay-left .full-width-image-text--direct-overlay__wrap {
        padding: 40px 50px 40px 40px;
        margin-right: 0;
    }

    .full-width-image-text--direct-overlay-left .full-width-image-text__content {
        margin-left: auto;
    }

}