.rich-text {
  position: relative;
  width: 100%;
  background-color: rgb(var(--color-page-background));
}

.rich-text .block-heading {
  width: 100%;
}

.rich-text .block-button-group .button {
  white-space: normal;
}

.rich-text__background-image {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  user-select: none;
}

.rich-text__background-image img,
.rich-text__background-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rich-text__content {
  position: relative;
}

.rich-text__content .block-heading,
.rich-text__content .rte,
.rich-text__content .block-button-group,
.rich-text__content .block-image {
  position: relative;
  z-index: 3;
}

.rich-text__content .block-heading.font-display {
  font-weight: 300;
}

.rich-text__content .rte {
  max-width: 42em;
  font-weight: 300;
  line-height: 1.7;
  color: rgb(var(--color-light-text));
}

.rich-text__content .rte p {
  margin: 0;
}

.rich-text__content .rte p + p {
  margin-block-start: 1em;
}

.rich-text__content .block-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
