/* ============================================================
   SK WEDDING SITES - the phone menu and custom sections
   (owner, 2026-12-04). Shared by every look.

   The phone menu (.wsm, mobileNav() in site.js): RSVP stays in the
   header, a menu button beside it opens the site's sections as a list,
   one per line, in the builder's Sections order. Hidden by default; each
   look shows it under its own phone breakpoint (in its stylesheet) and
   sets its colors with --wsm-bg / --wsm-fg / --wsm-line / --wsm-accent /
   --wsm-font. The menu hangs from its header (position:absolute against
   the header, which every look makes sticky or relative), scrolls on its
   own when it's taller than the screen. Nothing locks the page: scrolling
   it, or a tap outside the menu (.wsm-scrim), closes the menu.

   Custom sections (.cu, customBody() in site.js): headings, text,
   photos and photo grids. Type and colors come from the look (the
   classes it passes in, and inherit); this is only their shape.
   ============================================================ */
.wsm{display:none;align-items:center;gap:6px;margin-left:auto;flex:none}
.wsm-rsvp{flex:none;white-space:nowrap}
.wsm-burger{width:44px;height:44px;flex:none;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  background:none;border:0;padding:0;margin-right:-8px;color:var(--wsm-fg,currentColor);cursor:pointer;-webkit-tap-highlight-color:transparent}
.wsm-burger span{display:block;width:22px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s}
.wsm.open .wsm-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.wsm.open .wsm-burger span:nth-child(2){opacity:0}
.wsm.open .wsm-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.wsm-burger:focus-visible,.wsm-link:focus-visible{outline:2px solid var(--wsm-accent,currentColor);outline-offset:-2px}
.wsm-menu{position:absolute;left:0;right:0;top:100%;z-index:80;max-height:calc(100vh - 64px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:var(--wsm-bg,#fff);color:var(--wsm-fg,#111);border-top:1px solid var(--wsm-line,rgba(0,0,0,.12));box-shadow:0 26px 40px -22px rgba(0,0,0,.4);text-align:left}
.wsm-menu[hidden]{display:none}
.wsm-menu ul{list-style:none;margin:0;padding:4px 0 12px}
.wsm-menu li{margin:0}
.wsm-link{display:flex;align-items:center;width:100%;min-height:54px;padding:0 22px;background:none;border:0;border-bottom:1px solid var(--wsm-line,rgba(0,0,0,.12));
  color:inherit;font-family:var(--wsm-font,inherit);font-size:17px;letter-spacing:.02em;line-height:1.25;text-align:left;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wsm-link.on,.wsm-link[aria-current]{color:var(--wsm-accent,inherit);font-weight:600}
@media (prefers-reduced-motion: reduce){ .wsm-burger span{transition:none} }

/* ---- custom sections ---- */
.cu{container-type:inline-size;display:flex;flex-direction:column;gap:28px;margin-top:22px}
.cu-text>*+*{margin-top:14px}
.cu-text .cu-h{margin-bottom:0}
.cu-p{white-space:pre-line;margin:0}
.cu-h{margin:0}
.cu-fig{margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.cu-ph{position:relative;overflow:hidden;width:100%;aspect-ratio:4/3;background:rgba(0,0,0,.06)}
.cu-ph image-slot{position:absolute;inset:0;width:100%;height:100%;display:block}
.cu-wide{aspect-ratio:16/9}
.cu-cap{margin:0;opacity:.9}
.cu-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:center}
.cu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cu-grid.cu-n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cu-grid.cu-n4{grid-template-columns:repeat(2,minmax(0,1fr))}
.cu-cell{aspect-ratio:1/1}
.cu-empty{margin:0;font-style:italic;opacity:.75}
@container (min-width: 700px){ .cu-grid.cu-n4{grid-template-columns:repeat(4,minmax(0,1fr))} }
@container (max-width: 560px){
  .cu-row{grid-template-columns:1fr;gap:18px}
  .cu-grid.cu-n3,.cu-grid.cu-n4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Folio: a chapter's own photo under its words ---- */
.ws-tpl-folio .fo-chph{margin:20px 0 4px;max-width:560px;aspect-ratio:var(--fo-ar,4/3)}

/* ---- each look: its colors, and when the phone menu takes over ----
   (the breakpoints are the looks' own phone layouts) */
/* Riviera and Noir Editorial: the old drop-down list gives way to the menu. */
.ws{--wsm-bg:var(--ws-bg);--wsm-fg:var(--ws-ink);--wsm-line:var(--ws-line);--wsm-accent:var(--ws-accent);--wsm-font:var(--ws-body)}
.ws .wsm-btn{padding:9px 16px;font-size:13px;letter-spacing:.14em;min-height:40px}
.ws-mobile .ws-nav .ws-burger,.ws-mobile .ws-nav .ws-links{display:none!important}
.ws-mobile .ws-nav .wsm{display:flex}
.ws-mobile .ws-nav-mast .wsm{grid-column:2;grid-row:2;align-self:center}
/* Riviera's masthead: the names give way to RSVP + the menu on a narrow phone. */
.ws-mobile .ws-nav.ws-nav-mast{grid-template-columns:minmax(0,1fr) auto}
.ws.ws-mobile .ws-nav.ws-nav-mast .ws-mono{min-width:0;max-width:100%;font-size:clamp(20px,7.2vw,28px);white-space:normal;overflow-wrap:anywhere}
@media (max-width:640px){
  .ws-nav .ws-burger,.ws-nav .ws-links{display:none!important}
  .ws-nav .wsm{display:flex}
  .ws-nav-mast .wsm{grid-column:2;grid-row:2;align-self:center}
  .ws-nav.ws-nav-mast{grid-template-columns:minmax(0,1fr) auto}
  .ws .ws-nav.ws-nav-mast .ws-mono{min-width:0;max-width:100%;font-size:clamp(20px,7.2vw,28px);white-space:normal;overflow-wrap:anywhere}
}
@media (max-width:360px){ .ws .wsm-btn{padding:8px 12px;letter-spacing:.1em} }
/* Folio */
.ws-tpl-folio{--wsm-bg:var(--fo-paper);--wsm-fg:var(--fo-ink);--wsm-line:var(--fo-line);--wsm-accent:var(--fo-sage);--wsm-font:var(--fo-ui)}
.ws-tpl-folio .wsm .fo-btn{min-height:42px;padding:0 16px}
@container fo (max-width: 900px){
  .ws-tpl-folio .fo-tabs,.ws-tpl-folio .fo-bar>.fo-barbtn{display:none}
  .ws-tpl-folio .wsm{display:flex}
}
/* Marquee: the dock's sideways list gives way to the menu in the header. */
.ws-tpl-marquee{--wsm-bg:var(--mq-ivory);--wsm-fg:var(--mq-ink);--wsm-line:var(--mq-line);--wsm-accent:var(--mq-red);--wsm-font:var(--mq-ui)}
.ws-tpl-marquee .wsm .mq-pill{min-height:42px;padding:0 18px}
@container mq (max-width: 760px){
  .ws-tpl-marquee .mq-dock{display:none}
  .ws-tpl-marquee .mq-hdrdate{display:none}
  .ws-tpl-marquee .wsm{display:flex}
  .ws-tpl-marquee.mq-hl[data-lg-page="home"] .mq-hdr{display:flex;position:absolute;top:0;left:0;right:0;color:#F7F1E6}
  .ws-tpl-marquee .mq-hdr .wsm-burger{color:inherit}
}
/* Lago keeps its own full-screen menu; RSVP joins the header on a phone. */
.ws-tpl-lago .lg-hdrrsvp{display:none;margin-left:auto;margin-right:6px;min-height:42px;padding:0 18px}
@container lg (max-width: 760px){ .ws-tpl-lago .lg-hdrrsvp{display:inline-flex;align-items:center} }
/* Daybreak */
.ws-tpl-daybreak{--wsm-bg:var(--db-cream);--wsm-fg:var(--db-ink);--wsm-line:rgba(42,33,27,.16);--wsm-accent:var(--db-rust);--wsm-font:var(--db-ui)}
.ws-tpl-daybreak .wsm .db-btn{min-height:42px;padding:0 18px;margin:0}
.ws-tpl-daybreak .db-top .wsm-burger{color:inherit}
@container db (max-width: 800px){
  .ws-tpl-daybreak .db-nav{display:none}
  .ws-tpl-daybreak .wsm{display:flex}
}
/* In the builder's phone frame the menu covers the preview, not the window. */
.device .wsm-menu{max-height:70vh}

/* ---- the footer's sections (footNav() in site.js), every look ----
   A row that wraps, in the footer's own colors and the look's UI type. */
.wsf{flex:0 0 100%;width:100%;margin:0 0 28px;padding:0 0 22px;border-bottom:1px solid currentColor;border-bottom-color:color-mix(in srgb,currentColor 22%,transparent)}
.wsf ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.wsf li{margin:0}
.wsf-link{background:none;border:0;padding:10px 0;min-height:44px;color:inherit;font:inherit;font-family:var(--wsm-font,inherit);font-size:14px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wsf-link:hover{text-decoration:underline;text-underline-offset:4px}
.wsf-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.ws-foot .wsf ul,.ws-tpl-lago .lg-foot .wsf ul,.ws-tpl-marquee .mq-footin .wsf ul{justify-content:center}
.ws-tpl-lago .lg-foot .wsf,.ws-foot .wsf{max-width:900px;margin-left:auto;margin-right:auto}
@media (max-width:640px){ .wsf ul{gap:0 18px} .wsf-link{font-size:13px} }
/* Under the open menu: a see-through layer a tap on closes it (guest pages). */
.wsm-scrim{position:fixed;inset:0;z-index:79;background:rgba(0,0,0,.12);cursor:pointer;-webkit-tap-highlight-color:transparent}
/* The menu's own Close, and the header's button kept above the layer. */
.wsm-burger{position:relative;z-index:81}
.wsm-close{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:0 22px;background:none;border:0;border-bottom:1px solid var(--wsm-line,rgba(0,0,0,.12));
  color:inherit;font-family:var(--wsm-font,inherit);font-size:13px;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wsm-close span[aria-hidden]{font-size:26px;line-height:1;letter-spacing:0}
.wsm-close:focus-visible{outline:2px solid var(--wsm-accent,currentColor);outline-offset:-2px}
