@media screen and (min-width: 750px) {
  .image-with-text__grid--reverse {
    flex-direction: row-reverse;
  }
}

.media--placeholder {
  background-color: rgba(var(--color-foreground), 0.08);
  position: relative;
  overflow: hidden;
}

.media--placeholder.media--adapt {
  height: 20rem;
}

@media screen and (min-width: 750px) {
  .media--placeholder.media--adapt {
    height: 30rem;
  }
}

.media--placeholder > svg {
  position: absolute;
  left: 50%;
  max-width: 80rem;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  fill: currentColor;
}

.image-with-text__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

@media screen and (min-width: 750px) {
  .image-with-text__content {
    padding-inline-start: 5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .image-with-text__content.center {
    align-items: center;
  }

  .image-with-text__content.right {
    align-items: flex-end;
  }

  .image-with-text__content.middle {
    justify-content: center;
  }

  .image-with-text__content.bottom {
    justify-content: flex-end;
  }

  .image-with-text__grid--reverse .image-with-text__content {
    padding-inline-start: 0;
    padding-inline-end: 5rem;
  }

  .page-width--full-width .image-with-text__grid--reverse .image-with-text__content {
    padding-inline-start: 5rem;
  }
}

@media screen and (min-width: 990px) {
  .image-with-text__content {
    max-width: 57rem;
    padding-inline-start: 7rem;
  }

  .image-with-text__grid--reverse .image-with-text__content {
    padding-inline-end: 7rem;
  }
}

@media screen and (max-width: 749px) {
  .image-with-text__content {
    padding: 3rem 0;
  }

  .image-with-text__content.mobile-center {
    align-items: center;
  }

  .image-with-text__content.mobile-right {
    align-items: flex-end;
  }

  .image-with-text__content.mobile-center .button {
    min-width: 60%;
  }

  .page-width--full-width .image-with-text__content {
    padding-inline-start: 5%;
    padding-inline-end: 5%;
  }
}

.image-with-text__content > * + * {
  margin-top: 2rem;
}

.image-with-text__content > * + :is(.image-with-text__heading) {
  margin-top: 0.5rem;
}

.image-with-text__content > .image-with-text__text:empty ~ a {
  margin-top: 2rem;
}

.image-with-text__content > :first-child:is(.image-with-text__heading) {
  margin-top: 0;
}

.image-with-text__content :last-child:is(.image-with-text__heading) {
  margin-bottom: 0;
}

.image-with-text__content :last-child:is(.button) {
  margin-top: 3rem;
  margin-bottom: 0.1rem;
}

.image-with-text__content .button + .image-with-text__text {
  margin-top: 5rem;
}

.image-with-text__heading {
  margin-bottom: 0;
}

.image-with-text__text--colored {
  color: rgba(var(--color-foreground), 0.7);
}

.image-with-text__text--colored.rte a {
  color: rgb(var(--color-link));
  background-image: linear-gradient(to top, rgb(var(--color-border)) 0px, rgb(var(--color-border)) 0px), linear-gradient(to top, transparent 0px, transparent 0px);
}

.image-with-text__text p {
  margin-top: 0;
  margin-bottom: 1rem;
}

@media screen and (min-width: 750px) {
  .image-with-text__content :last-child:is(.button) {
    margin-top: 5rem;
  }
}
