.text-on-image-background-block {
    color: white;
    min-height: calc(100vh - 140px);
    min-height: calc(100dvh - 140px);
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.text-on-image-background-block__background-image {
    position: absolute;
    inset: -10% 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate3d(0, 0, 0) scale(1.12);
    transform-origin: center;
    will-change: transform;
}
.text-on-image-background-block__text-container {
    position: relative;
    z-index: 1;
    width: var(--text-container-width);
    background-color: var(--primary-color);
    padding: 20px;
    margin: 20px;
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
    will-change: opacity, transform;
}
.text-on-image-background-block__text-container--is-visible {
    opacity: 1;
    transform: translateX(0);
}
.text-on-image-background-block--top-left {
    justify-content: flex-start;
    align-items: flex-start;
}
.text-on-image-background-block--top-middle {
    justify-content: center;
    align-items: flex-start;
}
.text-on-image-background-block--top-right {
    justify-content: flex-end;
    align-items: flex-start;
}
.text-on-image-background-block--middle-left {
    justify-content: flex-start;
    align-items: center;
}
.text-on-image-background-block--middle-middle {
    justify-content: center;
    align-items: center;
}
.text-on-image-background-block--middle-right {
    justify-content: flex-end;
    align-items: center;
}
.text-on-image-background-block--bottom-left {
    justify-content: flex-start;
    align-items: flex-end;
}
.text-on-image-background-block--bottom-middle {
    justify-content: center;
    align-items: flex-end;
}
.text-on-image-background-block--bottom-right {
    justify-content: flex-end;
    align-items: flex-end;
}

@media (max-width: 1024px) {
    .text-on-image-background-block {
        height: auto;
        display: block;
        min-height: 0;
    }
    .text-on-image-background-block__background-image {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 280px;
        height: auto;
        transform: none;
    }
    .text-on-image-background-block__text-container {
        width: 100%;
        padding: 1rem;
        margin: 0;
        width: 100%;
    }
}
