.text-with-background-image {
  height: 80vh;
  background-position: center;
  background-size: cover;
  padding: var(--margin-medium);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.text-with-background-image .text-with-background-image--content {
  width: 50%;
  z-index: 100;
}
.text-with-background-image .text-with-background-image--content p {
  color: white;
}
@media (max-width: 1000px) {
  .text-with-background-image .text-with-background-image--content {
    width: 100%;
  }
}

.text-right {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
.text-right:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(25.26%, rgba(0, 0, 0, 0)), color-stop(98.9%, rgba(0, 0, 0, 0.79)));
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 25.26%, rgba(0, 0, 0, 0.79) 98.9%);
}
@media (max-width: 1000px) {
  .text-right:after {
    background: rgba(0, 0, 0, 0.5);
  }
}

.text-left {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
.text-left:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: -webkit-gradient(linear, right top, left top, color-stop(25.26%, rgba(0, 0, 0, 0)), color-stop(98.9%, rgba(0, 0, 0, 0.79)));
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 25.26%, rgba(0, 0, 0, 0.79) 98.9%);
}
@media (max-width: 1000px) {
  .text-left:after {
    background: rgba(0, 0, 0, 0.5);
  }
}