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

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

.rich-text__content--poster .block-heading {
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  font-family: var(--ss-font-display);
  font-weight: var(--ss-font-weight-black);
  letter-spacing: -0.01em;
  line-height: 0.85;
  text-transform: uppercase;
  word-break: normal;
  color: var(--rt-title-color, var(--ss-yellow));
  font-size: var(--rt-title-size, var(--ss-display-md));
  background-color: var(--rt-title-bg, transparent);
  padding: 0;
}

.rich-text__content--poster .block-heading.text-center {
  align-self: center;
}

.rich-text__content--poster .block-heading.text-right {
  align-self: flex-end;
}

@media (max-width: 959px) {
  .rich-text__content--poster .block-heading.text-left-mobile {
    align-self: flex-start;
  }

  .rich-text__content--poster .block-heading.text-center-mobile {
    align-self: center;
  }

  .rich-text__content--poster .block-heading.text-right-mobile {
    align-self: flex-end;
  }
}

.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;
  width: 100%;
  max-width: var(--ss-container-max);
  margin-inline: auto;
}

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