.peach-side-text {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--background-color);
  color: var(--primary-color);
}

.peach-side-text--centered {
  width: min(100%, var(--site-max-width, 1400px));
  max-width: var(--site-max-width, 1400px);
  margin-inline: auto;
}

.peach-side-text--full-width {
  width: 100%;
  max-width: 100%;
}

.peach-side-text__shell {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 5.5rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.25rem) clamp(3rem, 6vw, 4.5rem);
}

.peach-side-text__shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 4vw, 2.25rem);
  right: clamp(1.25rem, 4vw, 2.25rem);
  height: 1px;
  background: color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.peach-side-text__text {
  grid-area: text;
  display: grid;
  align-content: start;
  gap: 1rem;
  max-width: 42rem;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.peach-side-text__media--split {
  grid-area: media;
  min-height: clamp(22rem, 40vw, 33rem);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.peach-side-text--left.peach-side-text--split-media .peach-side-text__shell {
  grid-template-columns: minmax(16rem, 25rem) minmax(0, 1fr);
  grid-template-areas: "media text";
}

.peach-side-text--right.peach-side-text--split-media .peach-side-text__shell {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 25rem);
  grid-template-areas: "text media";
}

.peach-side-text--right.peach-side-text--split-media .peach-side-text__text {
  justify-self: end;
}

.peach-side-text--left.peach-side-text--reverse.peach-side-text--split-media .peach-side-text__shell,
.peach-side-text--right.peach-side-text--reverse.peach-side-text--split-media .peach-side-text__shell {
  grid-template-areas: "text media";
}

.peach-side-text--right.peach-side-text--reverse.peach-side-text--split-media .peach-side-text__text {
  justify-self: start;
}

.peach-side-text--background-media .peach-side-text__shell {
  min-height: clamp(24rem, 48vw, 38rem);
  align-items: center;
}

.peach-side-text__media--background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.peach-side-text__media--background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--background-color) 92%, transparent), color-mix(in srgb, var(--background-color) 56%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--background-color) 18%, transparent), color-mix(in srgb, var(--dark-background-color) 18%, transparent));
}

.peach-side-text--background-media .peach-side-text__text {
  position: relative;
  z-index: 1;
}

.peach-side-text__eyebrow {
  margin: 0;
  color: var(--secondary-color);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.peach-side-text__title {
  margin: 0;
  max-width: 14ch;
  line-height: 0.98;
}

.peach-side-text__separator {
  width: 0;
  height: 0;
  margin: 0;
}

.peach-side-text__description {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
}

.peach-side-text__button {
  margin-top: 0.9rem;
  justify-self: start;
}

@media (max-width: 980px) {
  .peach-side-text--split-media .peach-side-text__shell,
  .peach-side-text--reverse.peach-side-text--split-media .peach-side-text__shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text";
  }

  .peach-side-text__text {
    padding-top: 0;
    justify-self: stretch;
  }

  .peach-side-text__media--split {
    min-height: clamp(16rem, 72vw, 24rem);
  }
}
