.rich-text {
  z-index: 1;
}

.rich-text__wrapper {
  display: flex;
  justify-content: center;
}

.rich-text:not(.rich-text--full-width) .rich-text__wrapper {
  margin: auto;
}

@media screen and (max-width: 749px) {
  .rich-text:not(.rich-text--full-width) .rich-text__wrapper {
    width: calc(100% - 4rem / var(--font-body-scale));
  }
}

@media screen and (min-width: 750px) {
  .rich-text__wrapper {
    width: 100%;
  }
  .rich-text__wrapper--left {
    justify-content: flex-start;
  }
  .rich-text__wrapper--right {
    justify-content: flex-end;
  }

  .rich-text__blocks--small {
    --width: 35rem;
  }

  .rich-text__blocks--medium {
    --width: 50rem;
  }

  .rich-text__blocks--large {
    --width: 55rem;
  }

  .rich-text__blocks--full {
    --width: 100%;
  }

  .rich-text__blocks {
    max-width: var(--width);
  }
}

@media screen and (min-width: 990px) {
  .rich-text__blocks--small {
    --width: 57rem;
  }

  .rich-text__blocks--medium {
    --width: 70rem;
  }

  .rich-text__blocks--large {
    --width: 83rem;
  }
}

@media screen and (min-width: 1000px) {
  .rich-text__buttons + .rich-text__buttons {
    margin-inline-start: 1rem;
  }
}

.rich-text__blocks * {
  overflow-wrap: break-word;
}

.rich-text__blocks > * {
  margin-top: 0;
  margin-bottom: 0;
}

.rich-text__blocks > * + * {
  margin-top: 2rem;
}

.rich-text__blocks > * + a {
  margin-top: 3rem;
}
.rich-text__buttons {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 45rem;
  word-break: break-word;
}
.rich-text__buttons--multiple > *:not(.link) {
  flex-grow: 1;
  min-width: 22rem;
}
.rich-text__buttons + .rich-text__buttons {
  margin-top: 1rem;
}
.rich-text__blocks.left .rich-text__buttons {
  justify-content: flex-start;
}
.rich-text__blocks.right .rich-text__buttons {
  justify-content: flex-end;
}
