/* Image Text Block Styles */
.image-text-block {
    display: flex;
    align-items: stretch;
}
.image-text-block, .image-text-block p, .image-text-block h1, .image-text-block h2, .image-text-block h3, .image-text-block h4, .image-text-block h5, .image-text-block h6 {
    color: #fff;
}
.image-text-block h1, .image-text-block h2, .image-text-block h3, .image-text-block h4, .image-text-block h5, .image-text-block h6 {
    margin-top: 0;
    margin-bottom: 0.2em;
}
.image-text-block p {
    margin: 0 0 0.1em 0;

}

.image-text-block.left {
    flex-direction: row;
}
.image-text-block.right {
    flex-direction: row-reverse;
}
.image-text-block-image {
    flex: 1 1 50%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* fallback color */
    background-color: #f0f0f0;
}
.image-text-block-text {
    flex: 1 1 50%;
    display: inline;
    padding: 18px;
    background-color: #303967;
}
/* Set background from data-bg attribute using JS */

@media (max-width: 768px) {
    .image-text-block.left, .image-text-block.right {
        flex-direction: column;
    }
    .image-text-block-image, .image-text-block-text {
        flex: 1 1 100%;
        padding: 0 10px;
    }

    .image-text-block-image {
        aspect-ratio: 2 / 1;
        height: auto;
        width: 100%;
    }

}
