
.text_box {
    justify-content: space-between;
    /* min-height: 60vh; */
    align-content: flex-start;
    /* padding-bottom: 5rem; */
}

.text_box .box {
    /* border: .2rem solid; */
    padding: 2rem;
    align-self: flex-end;
    background-color: var(--black_opacity);
    /* margin-bottom: -2.2rem; */
}

.text_box > * {
    position: relative;
    z-index: 2;
}

.text_box .background {
    position: absolute;
    z-index: 1;
    top: -10rem;
    bottom: -10rem;
    left: calc(0px - var(--padding));
    right: calc(0px - var(--padding));
    mask-image: var(--top_bottom);

    mask-image: var(--left_right), var(--top_bottom);
    mask-composite: intersect;
}

.text_box .background img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.text_box .box_heading {
    border: none;
    padding-bottom: 0;
    margin-bottom: .5em;
}



@media screen and (max-width: 1080px) {
    .text_box .background {
    opacity: 0.5;
    }
}

@media screen and (max-width: 860px) {
    .text_box .background {
    opacity: 0.3;
    }
}