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

.border-overlay {
    position: relative;
    display: inline-block;
    height: 281px;
}

.border-overlay img {
    height: 100%;
    object-fit: cover;
}

.border-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.23;
}

.border-overlay::after {
    content: '';
    position: absolute;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    top: 15px;
    left: 15px;
    border: 1px solid #fff;
}

@media (min-width: 768px) {
    .border-overlay {
        height: auto;
    }
}

@media (min-width: 1200px) {
    .border-overlay::before,
    .border-overlay::after {
        display: block;
    }

    .border-overlay::after {
        width: calc(100% - 60px);
        height: calc(100% - 60px);
        top: 30px;
        left: 30px;
    }

    .border-overlay {
        height: auto;
        float: right;
        position: relative;
        z-index: 1;
    }

    .image-text--left .border-overlay {
        float: left;
    }

}