/**
 * ----------------------------------------------------------------------------
 * Frontend CSS
 * ----------------------------------------------------------------------------
 */
.wp-block-bi-blocks-image-text-overlay .container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    align-items: center;
}

.wp-block-bi-blocks-image-text-overlay-text {
    order: 1;
    display: flex;
}

.wp-block-bi-blocks-image-text-overlay-text.justify-flex-start {
    justify-content: flex-start;
}

.wp-block-bi-blocks-image-text-overlay-text.justify-center {
    justify-content: center;
}

.wp-block-bi-blocks-image-text-overlay-text.justify-flex-end {
    justify-content: flex-end;
}

.wp-block-bi-blocks-image-text-overlay-text.justify-space-around {
    justify-content: space-around;
}

.wp-block-bi-blocks-image-text-overlay-text.justify-space-between {
    justify-content: space-between;
}

.wp-block-bi-blocks-image-text-overlay-text.align-flex-start {
    align-self: flex-start;
}

.wp-block-bi-blocks-image-text-overlay-text.align-center {
    align-self: center;
}

.wp-block-bi-blocks-image-text-overlay-text.align-flex-end {
    align-self: flex-end;
}

.wp-block-bi-blocks-image-text-overlay-text.align-stretch {
    align-self: stretch;
}

.wp-block-bi-blocks-image-text-overlay-text .text {
    margin-bottom: 60px;
}

.wp-block-bi-blocks-image-text-overlay-text .text>*:first-child {
    margin-top: 0px;
}

.wp-block-bi-blocks-image-text-overlay-text .text>*:last-child {
    margin-bottom: 0px;
}

.wp-block-bi-blocks-image-text-overlay-image {
    order: 2;
}

.wp-block-bi-blocks-image-text-overlay-image .media .bi_img {
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.wp-block-bi-blocks-image-text-overlay-image.cropped .media .bi_img {
    object-fit: cover;
}

.wp-block-bi-blocks-image-text-overlay-overlay {
    width: 100%;
    flex-grow: 1;
    order: 3;
}

.wp-block-bi-blocks-image-text-overlay-overlay .text {
    flex-basis: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3;
}

.wp-block-bi-blocks-image-text-overlay-overlay .text>*:first-child {
    margin-top: 0px;
}

.wp-block-bi-blocks-image-text-overlay-overlay .text>*:last-child {
    margin-bottom: 0px;
}

.wp-block-bi-blocks-image-text-overlay.image-text .wp-block-bi-blocks-image-text-overlay-image {
    order: 1;
}

.wp-block-bi-blocks-image-text-overlay.image-text .wp-block-bi-blocks-image-text-overlay-text {
    order: 2;
}

.wp-block-bi-blocks-image-text-overlay.image-background .container {
    display: block;
}

.wp-block-bi-blocks-image-text-overlay.image-background .wp-block-bi-blocks-image-text-overlay-image {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.wp-block-bi-blocks-image-text-overlay.image-background .wp-block-bi-blocks-image-text-overlay-image .bi_img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%!important;
    height: 100%!important;
}

.wp-block-bi-blocks-image-text-overlay.image-background .wp-block-bi-blocks-image-text-overlay-text {
    z-index: 2;
    position: relative;
}

.wp-block-bi-blocks-image-text-overlay.image-background .wp-block-bi-blocks-image-text-overlay-text .text {
    margin-bottom: 0px;
}

.wp-block-bi-blocks-image-text-overlay.image-background .wp-block-bi-blocks-image-text-overlay-overlay {
    background-color: transparent!important;
}

.wp-block-bi-blocks-image-text-overlay.image-background .wp-block-bi-blocks-image-text-overlay-overlay .text {
    position: relative;
}

@media all and (max-width: 768px) {
    .wp-block-bi-blocks-image-text-overlay-overlay .text {
        position:relative;
    }

    .wp-block-bi-blocks-image-text-overlay-text .text {
        margin-bottom: 0px;
    }
}
