/* ------------------------------------------------------------
   Interior Hero Layout Contract
   Scope: non-home universal heroes on pages, posts, archives, and CPTs.
------------------------------------------------------------- */

body:not(.home) .vh-layout-hero{
  --vh-hero-copy-max: 46rem;
  --vh-hero-media-max: 42rem;
  min-height: clamp(24rem, 56vh, 40rem);
}

body:not(.home) .vh-hero-layout-minimal_page{
  min-height: clamp(18rem, 38vh, 28rem);
}

body:not(.home) .vh-layout-hero .vh-hero-title{
  max-width: min(100%, 21ch) !important;
}

body:not(.home) .vh-layout-hero .vh-hero-lead{
  max-width: min(100%, 40rem) !important;
}

body:not(.home) .vh-hero-layout-editorial_center .vh-hero-copy,
body:not(.home) .vh-hero-layout-minimal_page .vh-hero-copy,
body:not(.home) .vh-hero-layout-search_finder .vh-hero-copy{
  margin-left: auto;
  margin-right: auto;
}

body:not(.home) .vh-layout-hero .vh-hero-media,
body:not(.home) .vh-layout-hero .vh-hero-wide-media{
  margin-left: auto;
  margin-right: auto;
}

body:not(.home) .vh-hero-context-service,
body:not(.home) .vh-hero-context-portfolio,
body:not(.home) .vh-hero-context-event,
body:not(.home) .vh-hero-context-faq,
body:not(.home) .vh-hero-context-blog,
body:not(.home) .vh-hero-context-page{
  overflow-y: visible;
}

/* WO83: interior hero transition containment.
   The decorative hero glow previously used a negative inset while interior
   heroes allowed vertical overflow, creating a 40px shelf below an Event hero
   even when its transition was disabled. Keep decoration inside the hero; real
   transition overlays may still overlap when explicitly enabled. */
body:not(.home) .vh-layout-hero.masthead::before{
  inset: 0;
}

body.single-vh_event .vh-layout-hero.vh-hero-no-following-gallery{
  border-bottom: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

body.single-vh_event .vh-layout-hero.vh-hero-no-following-gallery > .vh-section-transition-overlay--bottom{
  display: none !important;
  height: 0 !important;
  background: none !important;
}
