/*------------------------------------*\
    
    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__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 1;
}

.full-width-image-text__content {
    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__content {
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .full-width-image-text__content {
        padding: 40px 25px;
    }

    .full-width-image-text__img {
        display: block;
    }
}


/* 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 20px;
}

.full-width-image-text--direct-overlay .full-width-image-text__headline,
.full-width-image-text--direct-overlay .full-width-image-text__description p {
    color: var( --color-white );
}

.full-width-image-text--box-overlay .full-width-image-text__content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 13px; 
}

.full-width-image-text--box-overlay--dark-blue .full-width-image-text__content {
    background: rgba(3, 48, 65, 0.8);
    color: var( --color-white );
}


.full-width-image-text--box-overlay--dark-blue .full-width-image-text__content :is( h2, h3, h4, h5, h6 ) {
    color: var( --color-white );
}

@media (min-width: 1200px) {
    .full-width-image-text--box-overlay .full-width-image-text__content {
        max-width: 985px;
        margin: 0 auto;
        padding: 40px 36px;
    }
}