/*------------------------------------*\
    
    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;
    background-color: #1D73BE;
}

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

.full-width-image-text--direct-overlay:before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(29, 115, 190, 0.80) 0%, #1D73BE 98.09%);
}

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

.full-width-image-text__content .sub-heading {
    color: #fff;
}


.full-width-image-text__description p {
    margin-bottom: 30px;
}

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

.full-width-image-text__content {
    padding: 30px 20px;
}

.full-width-image-text__right-img {
    position: absolute;
    right: -164px;
    top: 0;
    max-width: 381px;
    height: 100%;
    z-index: 2;
}

@media (min-width: 768px) {

    .full-width-image-text__img {
        object-position: left;
    }

    .full-width-image-text--direct-overlay:before {        
        z-index: 0;        
    }
}

@media (min-width: 1200px) {

    .full-width-image-text__right-img {
        right: 0px;
        max-width: 410px;
    }

    .full-width-image-text--homepage .full-width-image-text__img {
        width: calc(50% + 40px);
    }

   .full-width-image-text--homepage::after {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        width: calc(50% + 40px);
        height: 100%;
        background: linear-gradient(270deg, rgba(29, 115, 190, 0) 80%, #1D73BE 100%);
    }


    .full-width-image-text--direct-overlay:before {
        content: '';
        position: absolute;
        z-index: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(270deg, rgba(29, 115, 190, 0.80) 0%, #1D73BE 98.09%);
    }
}


/* Full-Width Image + Text - Direct Text Overlay */
.full-width-image-text--direct-overlay .full-width-image-text__content {
    padding: 0 20px;
}

.full-width-image-text--direct-overlay .full-width-image-text__content {
    padding: 0 0;
}

.full-width-image-text--direct-overlay .full-width-image-text__headline,
.full-width-image-text--direct-overlay .full-width-image-text__description p {
    color: #fff;
}

/* Full-Width Image + Text - Text Box Overlay */
.full-width-image-text--box-overlay .full-width-image-text__content {
    background-color: #fff;
    border-radius: 4px; 
    box-shadow: 0 1px 30px 0 rgb(0 0 0 / 10%); 
}
