@layer ether-alignment {
  body.er30-active {
    --ether-hero-bottom-inset: 40px;
  }

  @media (max-width: 1024px) {
    body.er30-active {
      --ether-hero-bottom-inset: 32px;
    }
  }

  /* The title and supporting copy share the same full-height column. */
  body.er30-active .er30-hero {
    display: flex !important;
    flex-direction: column !important;
  }

  body.er30-active .er30-hero > .er30-hero-body {
    flex: 1 0 auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    padding-bottom: var(--ether-hero-bottom-inset) !important;
  }

  body.er30-active .er30-hero > .er30-hero-body > .er30-hero-support {
    margin-top: auto !important;
  }

  body.er30-active .er30-hero .er30-hero-support p {
    margin-bottom: 0 !important;
  }

  html body.er30-active .er30-hero.eab-hero > .er30-hero-body {
    gap: 0 !important;
    min-height: 0 !important;
    padding-bottom: var(--ether-hero-bottom-inset) !important;
  }

  /* About's motion control needs clearance from the bottom-aligned copy. */
  body.er30-active .eab-hero > .eab-motion {
    inset: 86px var(--ether-gutter) auto auto !important;
    width: max-content;
    height: auto;
    z-index: 4;
  }

  html body.er27-home.er30-active .elementor.elementor-3505 .er27-section.er27-hero .er27-hero-support {
    padding-bottom: var(--ether-hero-bottom-inset) !important;
  }

  body.er30-active .elementor .ecs-hero:not(.ether-shurooq-hero),
  body.er30-active .elementor .ek-hero {
    padding-bottom: var(--ether-hero-bottom-inset) !important;
  }

  @media (min-width: 768px) and (max-width: 1024px) {
    /* These native pages place their fixed header over the image on tablets. */
    body.er30-active.er26-project .elementor .ecs-hero {
      padding-top: 108px !important;
    }
  }

  @media (min-width: 768px) and (max-width: 1024px) {
    body.er30-active .elementor .ek-hero > .elementor-container {
      min-height: calc(831px - 100px - var(--ether-hero-bottom-inset)) !important;
    }
  }

  @media (max-width: 767px) {
    body.er30-active .elementor .ek-hero > .elementor-container {
      flex-direction: row !important;
    }

    body.er30-active .elementor .ek-hero .ecs-hero-subtitle {
      padding-top: 40px !important;
    }

    body.er34-services .er30-hero > .er30-hero-body {
      container-type: inline-size;
    }

    /* Core Serif N Light sets “Is Everything.” in approximately 6.264em. */
    html body.er30-active.er26-active.er34-services .er30-hero > .er30-hero-body > .er30-hero-title {
      font-size: min(80px, (100vw - 50px) / 6.264) !important;
      font-size: min(80px, (100cqi - 2px) / 6.264) !important;
    }

    html body.er30-active.er26-active.er34-services .er30-hero-title > .ether-title-line {
      display: block !important;
      white-space: nowrap !important;
    }

    /* Keep the longest unbroken category names inside the mobile gutters. */
    html body.er30-active.er26-active.er30-category .er30-hero .er30-hero-title {
      font-size: min(60px, 14.35vw, (100vw - 50px) / 6.32) !important;
    }
  }
}
