/* Wrapper created by hero_headline_scroll_controller: slides following <main> content up over the hero */
.hero-headline-scroll-rest {
  position: relative;
  z-index: 20;
  will-change: transform;
}

.hero-headline-scroll-collapsing {
  overflow: hidden;
  max-height: var(--hero-headline-scroll-height, none);
  opacity: 1;
  transition: max-height 0.45s ease, opacity 0.3s ease;
  will-change: max-height, opacity;
}

.hero-headline-scroll-collapsing.hero-headline-scroll-complete {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0 !important;
}

.hero-headline-scroll-scene-complete {
  pointer-events: none;
  user-select: none;
}

/* Hero scroll-scene: hide site footer until the in-place story finishes (see hero_headline_scroll_controller.js) */
#site-footer.hero-headline-scroll-suppressed {
  visibility: hidden;
  height: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-out, max-height 0.35s ease-out;
}

#site-footer:not(.hero-headline-scroll-suppressed) {
  transition: opacity 0.35s ease-out, max-height 0.35s ease-out;
}
