.rich-text {
  position: relative;
  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 {
  position: relative;
  z-index: 3;
}

.rich-text__content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.rich-text__content .block-heading {
  font-size: 26px !important;
  font-weight: 500;
  line-height: 1.2;
}

.rich-text__content .rte {
  max-width: 620px;
  margin-inline: auto;
  color: rgb(var(--color-light-text));
  font-size: 13px;
  line-height: 1.65;
}

.rich-text__content .button {
  min-height: 38px;
  padding-inline: 18px;
  border-radius: 3px;
  font-size: 11.5px;
}

@media (max-width: 959px) {
  .rich-text__content .block-heading {
    font-size: 21px !important;
  }

  .rich-text__content .rte {
    font-size: 12px;
  }
}
