/* Cosmopolitan v17 — photo-first editorial heroes.
   Used only on Home, The Venue and Celebrations.
   Headlines, descriptions, CTAs, and preview controls now live under the image.
   Keep all CMS data attributes and functional video controls intact. */
body.hero-text-below .hero {
  height: min(77svh, 860px) !important;
  min-height: 475px !important;
  max-height: 860px !important;
  position:relative;
  overflow:hidden;
  background:#27382d;
  isolation:isolate;
}
/* Keep enough top contrast for the navigation without dimming the actual room photograph. */
body.hero-text-below .hero:after {
  background:linear-gradient(180deg,rgba(7,18,12,.39) 0%,rgba(7,18,12,.12) 23%,transparent 39%) !important;
  pointer-events:none;
}
body.hero-text-below .hero-cover {
  background:linear-gradient(180deg,rgba(7,18,12,.36) 0%,rgba(7,18,12,.1) 22%,transparent 40%) !important;
}
body.hero-text-below .hero-media:after {
  background:linear-gradient(180deg,rgba(7,18,12,.26),transparent 29%) !important;
}
body.hero-text-below .hero-message {
  background:var(--cream,#f8f5ef);
  padding:clamp(68px,7.6vw,122px) 24px clamp(65px,6.6vw,100px);
  text-align:center;
  color:var(--forest,#27382d);
  border-bottom:1px solid var(--line,#ded8cb);
}
body.hero-text-below .hero-message .hero-copy {
  position:relative !important;
  inset:auto !important;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:min(100%,1100px);
  max-width:1100px;
  margin:0 auto;
  padding:0 !important;
  color:var(--forest,#27382d);
  transform:none !important;
  opacity:1 !important;
  will-change:auto;
}
body.hero-text-below .hero-message .eyebrow,
body.hero-text-below .hero-message .kicker {
  color:#a38860;
  text-shadow:none;
  font-size:11px;
  letter-spacing:.25em;
  line-height:1.7;
  margin-bottom:24px;
}
body.hero-text-below .hero-message h1 {
  max-width:1000px;
  margin:0 auto 28px;
  font:400 clamp(47px,5.8vw,87px)/1.12 var(--serif,Georgia,serif);
  letter-spacing:-.045em;
  color:var(--forest,#27382d);
  text-shadow:none;
}
body.hero-text-below .hero-message h1 em {
  color:#a6895e;
  font-weight:400;
}
body.hero-text-below .hero-message p,
body.hero-text-below .hero-message .hero-intro {
  color:#5f685e;
  text-shadow:none;
  font-size:clamp(14px,1.15vw,17px);
  line-height:1.9;
  font-weight:400;
  max-width:670px;
  margin:0 auto 35px;
}
body.hero-text-below .hero-message .buttons {
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
body.hero-text-below .hero-message .btn {
  min-height:52px;
  padding:15px 25px;
}
body.hero-text-below .hero-message .btn.filled,
body.hero-text-below .hero-message .btn.gold {
  background:var(--forest,#27382d);
  color:#fff;
  border-color:var(--forest,#27382d);
}
body.hero-text-below .hero-message .btn.outline {
  background:transparent;
  color:var(--forest,#27382d);
  border-color:#9b9f93;
}
body.hero-text-below .hero-message .btn:hover { transform:translateY(-2px); }
/* Nonessential film/scroll controls are placed in a quiet utility row below the copy. */
body.hero-text-below .hero-message .hero-bottom,
body.hero-text-below .hero-message .hero-rail,
body.hero-text-below .hero-message .hero-corners {
  position:static !important;
  inset:auto !important;
  width:min(100%,850px);
  margin:42px auto 0;
  border-top:1px solid #dfd9cf;
  padding-top:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  color:#6c716a;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  z-index:auto;
}
body.hero-text-below .hero-message .scroll-cue,
body.hero-text-below .hero-message .hero-rail>span:first-child {
  display:none;
}
body.hero-text-below .hero-message .hero-bottom>span:nth-child(2) {
  margin-left:0;
}
body.hero-text-below .hero-message .media-trigger,
body.hero-text-below .hero-message .uploadfilm,
body.hero-text-below .hero-message .motion-switch {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--forest,#27382d);
  border:1px solid #b5b5a8;
  box-shadow:none;
  text-shadow:none;
  backdrop-filter:none;
  padding:12px 16px;
  cursor:pointer;
  line-height:1.3;
}
body.hero-text-below .hero-message .media-trigger:hover,
body.hero-text-below .hero-message .uploadfilm:hover,
body.hero-text-below .hero-message .motion-switch:hover {background:#ede7dd;}
body.hero-text-below .hero-message .motion-switch span {color:#95794f;}
body.hero-text-below .hero-message .media-status {color:#777c74;}
/* The venue page's scroll hint is unnecessary once the photograph and title are separate. */
body.hero-text-below .hero-message .hero-corners {display:none;}
@media (max-width:780px) {
  body.hero-text-below .hero {height:62svh !important;min-height:400px !important;max-height:650px !important;}
  body.hero-text-below .hero-message {padding:63px 23px 72px;}
  body.hero-text-below .hero-message h1 {font-size:clamp(43px,9.5vw,66px);margin-bottom:24px;line-height:1.16;}
  body.hero-text-below .hero-message p {font-size:14px;line-height:1.85;max-width:540px;}
  body.hero-text-below .hero-message .hero-bottom,
  body.hero-text-below .hero-message .hero-rail {margin-top:32px;}
}
@media (max-width:500px) {
  body.hero-text-below .hero {height:55svh !important;min-height:350px !important;max-height:510px !important;}
  body.hero-text-below .hero-message {padding:51px 20px 62px;}
  body.hero-text-below .hero-message h1 {font-size:clamp(37px,10vw,53px);}
  body.hero-text-below .hero-message .eyebrow,
  body.hero-text-below .hero-message .kicker {letter-spacing:.17em;font-size:9px;margin-bottom:17px;}
  body.hero-text-below .hero-message .buttons {display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:350px;}
  body.hero-text-below .hero-message .buttons .btn {width:100%;min-height:48px;}
  body.hero-text-below .hero-message .hero-bottom,
  body.hero-text-below .hero-message .hero-rail {gap:12px;}
  body.hero-text-below .hero-message .media-status {display:block;font-size:9px;}
}
/* Existing animated galleries are wider than small phones; prevent page-level horizontal scrolling. */
body.hero-text-below {overflow-x:clip;}


/* v18: pure photograph/video first, navigation immediately UNDER the image.
   The nav is in normal flow inside <main> rather than positioned over the photo.
   It becomes sticky only when the reader reaches the nav on scroll. */
body.hero-text-below > main > #nav,
body.hero-text-below > main > #nav.sticky,
body.hero-text-below > main > #nav.isfixed,
body.hero-text-below > main > #nav.fixed {
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  min-height:72px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px clamp(20px,5vw,90px) !important;
  margin:0;
  background:var(--cream,#f8f5ef) !important;
  color:var(--forest,#27382d) !important;
  border-top:0 !important;
  border-bottom:1px solid #ddd6c9 !important;
  box-shadow:none !important;
  z-index:1000 !important;
  transform:none !important;
}
/* No text, controls, overlays or decorative scrims across the opening photograph. */
body.hero-text-below .hero:after,
body.hero-text-below .hero-cover,
body.hero-text-below .hero-media:after {
  background:none !important;
  box-shadow:none !important;
}
body.hero-text-below .hero-message {scroll-margin-top:80px;}
body.hero-text-below .navlinks,
body.hero-text-below .menu {z-index:1100;}
@media(max-width:900px) {
  body.hero-text-below > main > #nav,
  body.hero-text-below > main > #nav.sticky,
  body.hero-text-below > main > #nav.isfixed,
  body.hero-text-below > main > #nav.fixed {
    height:69px !important;
    min-height:69px !important;
    padding:10px 21px !important;
  }
  /* When opened, the menu drops below its own strip, never over the photograph. */
  body.hero-text-below > main > #nav .navlinks,
  body.hero-text-below > main > #nav .menu {top:100% !important;}
}
@media(max-width:500px) {
  body.hero-text-below > main > #nav,
  body.hero-text-below > main > #nav.sticky,
  body.hero-text-below > main > #nav.isfixed,
  body.hero-text-below > main > #nav.fixed {padding:10px 16px !important;}
}
