.stance-subpage-hero {
  background: var(--stance-subpage-hero-bg, var(--stance-color-brand));
  width: 100%;
}

.stance-subpage-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
}

.stance-subpage-hero__content-wrap {
  display: flex;
  background: var(--stance-subpage-hero-bg, var(--stance-color-brand));
}

.stance-subpage-hero__content {
  display: flex;
  width: 100%;
  padding-left: max(var(--stance-gutter-width), calc((100vw - var(--stance-page-width)) / 2 + var(--stance-gutter-width)));
  padding-right: var(--stance-gutter-width);
}

.stance-subpage-hero__stack {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  width: 100%;
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.stance-subpage-hero--align-center .stance-subpage-hero__content {
  align-items: center;
}

.stance-subpage-hero--align-top .stance-subpage-hero__content {
  align-items: flex-start;
}

.stance-subpage-hero--height-compact .stance-subpage-hero__content,
.stance-subpage-hero--height-compact .stance-subpage-hero__media {
  min-height: clamp(24rem, 42vw, 30rem);
}

.stance-subpage-hero--height-default .stance-subpage-hero__content,
.stance-subpage-hero--height-default .stance-subpage-hero__media {
  min-height: clamp(28rem, 48vw, 36rem);
}

.stance-subpage-hero--height-tall .stance-subpage-hero__content,
.stance-subpage-hero--height-tall .stance-subpage-hero__media {
  min-height: clamp(32rem, 56vw, 42rem);
}

.stance-subpage-hero__title {
  margin: 0;
  color: var(--stance-subpage-hero-title-color, var(--stance-color-white));
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.stance-subpage-hero__body {
  color: var(--stance-subpage-hero-title-color, var(--stance-color-white));
  font-size: var(--stance-block-body-size);
  font-weight: 400;
  line-height: 1.45;
}

.stance-subpage-hero__body > *:first-child {
  margin-top: 0;
}

.stance-subpage-hero__body > *:last-child {
  margin-bottom: 0;
}

.stance-subpage-hero__body p {
  margin: 0;
}

.stance-subpage-hero__body p + p {
  margin-top: 1em;
}

.stance-subpage-hero__media {
  position: relative;
  overflow: hidden;
}

.stance-subpage-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--stance-subpage-hero-image-position, center center);
}

@media (max-width: 1100px) {
  .stance-subpage-hero__stack {
    gap: clamp(1rem, 2vw, 1.5rem);
    padding-block: clamp(2.25rem, 3.5vw, 3rem);
  }

  .stance-subpage-hero--height-compact .stance-subpage-hero__content,
  .stance-subpage-hero--height-compact .stance-subpage-hero__media {
    min-height: clamp(22rem, 40vw, 26rem);
  }

  .stance-subpage-hero--height-default .stance-subpage-hero__content,
  .stance-subpage-hero--height-default .stance-subpage-hero__media {
    min-height: clamp(24rem, 44vw, 31rem);
  }

  .stance-subpage-hero--height-tall .stance-subpage-hero__content,
  .stance-subpage-hero--height-tall .stance-subpage-hero__media {
    min-height: clamp(27rem, 49vw, 35rem);
  }

  .stance-subpage-hero__title {
    font-size: clamp(2.35rem, 4.8vw, 4.1rem);
  }
}

@media (max-width: 1300px) {
  .stance-subpage-hero__content {
    padding-left: var(--stance-gutter-width-tablet);
    padding-right: var(--stance-gutter-width-tablet);
  }
}

@media (max-width: 900px) {
  .stance-subpage-hero__grid {
    grid-template-columns: 1fr;
  }

  .stance-subpage-hero__content-wrap {
    order: 2;
  }

  .stance-subpage-hero__media {
    order: 1;
  }

  .stance-subpage-hero--height-compact .stance-subpage-hero__content,
  .stance-subpage-hero--height-default .stance-subpage-hero__content,
  .stance-subpage-hero--height-tall .stance-subpage-hero__content {
    min-height: auto;
  }

  .stance-subpage-hero__content {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }

  .stance-subpage-hero__stack {
    gap: 1rem;
    padding-block: 0;
  }

  .stance-subpage-hero__title {
    font-size: clamp(2.15rem, 8vw, 3.35rem);
    line-height: 1;
  }

  .stance-subpage-hero--height-compact .stance-subpage-hero__media {
    min-height: clamp(15rem, 44vw, 18rem);
  }

  .stance-subpage-hero--height-default .stance-subpage-hero__media {
    min-height: clamp(16rem, 48vw, 20rem);
  }

  .stance-subpage-hero--height-tall .stance-subpage-hero__media {
    min-height: clamp(17rem, 52vw, 22rem);
  }
}

@media (max-width: 768px) {
  .stance-subpage-hero__content {
    padding-left: var(--stance-gutter-width-mobile);
    padding-right: var(--stance-gutter-width-mobile);
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }

  .stance-subpage-hero__title {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }
}

@media (max-width: 480px) {
  .stance-subpage-hero--height-compact .stance-subpage-hero__media,
  .stance-subpage-hero--height-default .stance-subpage-hero__media,
  .stance-subpage-hero--height-tall .stance-subpage-hero__media {
    min-height: clamp(14rem, 58vw, 18rem);
  }
}
