/* Phone layout (<= 767px only; linked with media="(max-width: 767px)").
   Matches the Union theme as it renders on phones: a fixed white "Menu" bar,
   full-screen menu, normal scrolling, one column. phone.js builds #mw-m from the
   desktop markup and adds html.mw-phone. Desktop never loads these rules. */
@media (max-width: 767px) {
html, body { height: auto !important; }

/* ---------- guest gate ---------- */
html #site-body.public-hosting-container .password-container { width: 100% !important; padding: 24px 16px; box-sizing: border-box; }
html #site-body.public-hosting-container #guest-center-widget { max-width: 100%; padding: 28px 22px !important; box-sizing: border-box; }
html #site-body.public-hosting-container #guest-center-widget h1.title { font-size: clamp(2.2rem, 11vw, 3rem) !important; line-height: 1.1 !important; overflow-wrap: break-word; }
html #site-body.public-hosting-container #guest-center-widget input#password { font-size: 16px; box-sizing: border-box; max-width: 100%; }

/* ---------- swap the desktop page for the phone page ---------- */
html.mw-phone.unlocked #site-body { display: none !important; }
html:not(.unlocked) #mw-m { display: none !important; }
html.mw-phone, html.mw-phone body { background: #fff; }
html.mw-lock { overflow: hidden; scrollbar-gutter: stable; }
html.mw-phone.unlocked body { margin: 0; padding: 0; }

#mw-m { font-family: "Crimson Text", Georgia, serif; color: #444; font-size: 16px; line-height: 30px; -webkit-text-size-adjust: 100%; text-align: center; }
#mw-m *, #mw-m *::before, #mw-m *::after { box-sizing: border-box; }
#mw-m img { display: block; max-width: 100%; height: auto; border: 0; }
#mw-m p { margin: 0; }
#mw-m a { color: inherit; }
#mw-m h1, #mw-m h2, #mw-m h3, #mw-m h4, #mw-m h5, #mw-m h6 { margin: 0; padding: 0; letter-spacing: 0; text-transform: none; font-weight: 400; }

/* ---------- top bar ---------- */
#mw-m .mw-bar { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: #fff; z-index: 1002;
  box-shadow: 0 1px 3px rgba(0,0,0,.33); }
#mw-m .mw-menu-label { position: absolute; left: 41px; top: 13px; font-family: "Ultra", Georgia, serif; font-size: 26.3px; line-height: 36px; color: #000; text-decoration: none; }
#mw-m .mw-burger { position: absolute; right: 33px; top: 18px; width: 31px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: right .58s cubic-bezier(.87,0,.13,1), top .58s cubic-bezier(.87,0,.13,1), width .58s cubic-bezier(.87,0,.13,1), height .58s cubic-bezier(.87,0,.13,1); }
#mw-m .mw-burger span { position: absolute; left: 0; width: 31px; height: 4px; background: #000; transition: transform .58s cubic-bezier(.87,0,.13,1), opacity .58s cubic-bezier(.87,0,.13,1), top .58s cubic-bezier(.87,0,.13,1), left .58s cubic-bezier(.87,0,.13,1), height .58s cubic-bezier(.87,0,.13,1); } /* morphs in step with the panel slide, as on the original */
#mw-m .mw-burger span:nth-child(1) { top: 4px; }
#mw-m .mw-burger span:nth-child(2) { top: 12px; }
#mw-m .mw-burger span:nth-child(3) { top: 20px; }

/* ---------- full-screen menu ---------- */
#mw-m .mw-nav { position: fixed; inset: 0; background: #fff; z-index: 1001; display: block; padding: 54px 21px 0 0; text-align: right;
  /* v18: slides in from the left over the page and back out (measured from the original: 580 ms, easeInOutExpo; visible motion ~350 ms) */
  transform: translateX(-100%); visibility: hidden;
  transition: transform .58s cubic-bezier(.87,0,.13,1), visibility 0s linear .58s; }
#mw-m.mw-menu-open .mw-nav { transform: none; visibility: visible; transition: transform .58s cubic-bezier(.87,0,.13,1), visibility 0s; }
#mw-m.mw-menu-open .mw-bar { box-shadow: none; } /* v17: bar stays white while the menu fades in */
#mw-m.mw-menu-open .mw-burger { right: 44px; top: 16px; width: 24px; height: 25px; }
#mw-m.mw-menu-open .mw-burger span { width: 31px; height: 3px; left: -3.5px; top: 10.5px; }
#mw-m.mw-menu-open .mw-burger span:nth-child(1) { transform: rotate(45deg); }
#mw-m.mw-menu-open .mw-burger span:nth-child(2) { opacity: 0; }
#mw-m.mw-menu-open .mw-burger span:nth-child(3) { transform: rotate(-45deg); }
#mw-m .mw-nav ul { list-style: none; margin: 0; padding: 0; }
#mw-m .mw-nav li { margin: 0; padding: 0; line-height: 51px; font-size: 18px; }
#mw-m .mw-nav li a { color: #000; text-decoration: none; display: inline-block; }
#mw-m .mw-powered { position: absolute; right: 18px; bottom: 41px; font-size: 18px; line-height: 30px; color: #000; text-decoration: none; display: flex; align-items: center; gap: 9px; }
#mw-m .mw-rg { display: inline-flex; align-items: center; gap: 6px; font-family: Arial, Helvetica, sans-serif; }
#mw-m .mw-rg b { font-size: 17px; font-weight: 700; color: #333; }
#mw-m .mw-rg i { width: 26px; height: 26px; border-radius: 50%; background: #111; color: #fff; font: italic 600 16px/26px "Crimson Text", Georgia, serif; text-align: center; }

/* ---------- sections ---------- */
#mw-m .mw-main { padding-top: 60px; }
#mw-m .mw-sec { padding: 0 32px 80px; }
#mw-m .mw-h { font-family: "Ultra", Georgia, serif; font-size: 30px; line-height: 40px; color: #444; margin: 0 0 12px; padding-top: 18px; }
#mw-m .mw-copy { line-height: 30px; }
#mw-m .mw-sub, #mw-m .mw-group { font-weight: 700; font-size: 18px; line-height: 27px; text-transform: uppercase; color: #444; }

/* hero */
#mw-m .mw-hero { padding: 0; min-height: calc(100vh - 60px); }
#mw-m .mw-hero-img { width: 100%; }
#mw-m .mw-title { font-family: "Ultra", Georgia, serif; font-size: 48px; line-height: 47px; color: #444; padding: 17px 20px 0; }
#mw-m .mw-date { font-size: 15.5px; line-height: 24px; margin-top: 12px; }

/* couple */
#mw-m .mw-couple { padding-left: 15px; padding-right: 15px; padding-top: 103px; padding-bottom: 75px; }
#mw-m .mw-couple .mw-h { margin-bottom: 13px; }
#mw-m .mw-couple-photo img { width: 100%; }
#mw-m .mw-couple .mw-sub { margin-top: 16px; }
#mw-m .mw-couple .mw-copy { padding: 0 34px; margin-top: 8px; }

/* wedding party */
#mw-m .mw-group { margin: 25px 0 12px; }
#mw-m .mw-card { display: block; width: calc((100% + 64px) * .6266); margin: 0 auto; text-decoration: none; color: #444; }
#mw-m .mw-card img { border-radius: 4px; }
#mw-m .mw-card-name { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px 0; height: 54px; align-items: flex-start; text-align: left; font-size: 16px; line-height: 30px; }
#mw-m .mw-card-name i { width: 8px; height: 8px; border-top: 1.5px solid #444; border-right: 1.5px solid #444; transform: rotate(45deg); margin: 11px 3px 0 8px; flex: none; }
#mw-m .mw-party .mw-card + .mw-group { margin-top: 11px; }
#mw-m .mw-party { padding-bottom: 60px; }

/* schedule */
#mw-m .mw-events { border: 1px solid #000; margin: 0 1px; text-align: left; padding-bottom: 17px; }
#mw-m .mw-schedule .mw-h { margin-bottom: 13px; }
#mw-m .mw-schedule { padding-bottom: 41px; }
#mw-m .mw-ev { position: relative; padding: 16px 16px 16px; }
#mw-m .mw-ev + .mw-ev { border-top: 1px solid #000; }
#mw-m .mw-ev::before { content: ""; position: absolute; left: -6px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: #444; }
#mw-m .mw-ev h4 { font-weight: 700; font-size: 18px; line-height: 27px; letter-spacing: 1px; text-transform: uppercase; }
#mw-m .mw-ev-date { line-height: 30px; }
#mw-m .mw-btn { display: block; width: 100%; background: #000; color: #fff !important; border: 0; border-radius: 0; font: 400 16px/38px "Crimson Text", Georgia, serif; letter-spacing: 1px; text-transform: uppercase; text-align: center; text-decoration: none; padding: 0 10px; margin-top: 8px; cursor: pointer; }
/* v18 expanded event (measured from the original): divider 16px under the date, venue photo,
   text indented 16px, WHERE/ATTIRE labels, View on Map, then the toggle ("Close") */
#mw-m .mw-ev-more { display: flow-root; }
#mw-m .mw-ev-more[hidden] { display: none; }
#mw-m .mw-ev-inner { margin: 16px -16px 0; border-top: 1px solid #000; padding: 16px 16px 8px; }
#mw-m .mw-ev-img { display: block; width: 100%; height: auto; }
#mw-m .mw-ev-text { padding: 0 16px; }
#mw-m .mw-ev-text p { margin: 0; }
#mw-m .mw-ev-text > p:first-child { margin-top: 16px; }
#mw-m .mw-ev-text .mw-ev-label + p { margin-top: 6px; }
#mw-m .mw-ev-label { font-weight: 700; font-size: 16px; line-height: 30px; text-transform: uppercase; letter-spacing: 1px; margin: 14px 0 0; }
#mw-m .mw-ev-map { display: inline-block; width: auto; line-height: 42px; padding: 0 24px; margin-top: 16px; }

/* registry */
#mw-m .mw-reg-links a { display: block; font-size: 32px; line-height: 40px; margin-top: 40px; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 3px; }
#mw-m .mw-registry { padding-bottom: 79px; }
#mw-m .mw-registry .mw-h { margin-bottom: 13px; }
#mw-m .mw-reg-links a:first-child { margin-top: 36px; }
#mw-m .mw-registry .mw-copy { margin: 0 -3px; }

/* travel */
#mw-m .mw-trow { display: flex; align-items: flex-start; text-align: left; margin: 0 0 24px; }
#mw-m .mw-travel .mw-h { margin-bottom: 29px; }
#mw-m .mw-travel { padding-bottom: 76px; }
#mw-m .mw-ticon { width: 103px; flex: none; margin-left: 0; }
#mw-m .mw-ticon img { width: 103px; }
#mw-m .mw-tbody { padding-left: 30px; padding-top: 0; }
#mw-m .mw-tbody h4 { font-weight: 700; font-size: 18px; line-height: 27px; text-transform: uppercase; }
#mw-m .mw-btn-inline { display: inline-block; width: auto; line-height: 34px; padding: 0 9px; letter-spacing: 0; margin-top: 8px; }
#mw-m .mw-other h4 { font-weight: 700; font-size: 18px; line-height: 27px; text-transform: uppercase; margin: 48px 0 8px; }

/* accommodations */
#mw-m .mw-accom .mw-copy { padding: 0 17px; }
#mw-m .mw-accom .mw-h { font-size: min(30px, calc((100vw - 64px) / 10.8)); }
#mw-m .mw-accom { padding-bottom: 75px; }
#mw-m .mw-hotel { border: 1px solid #000; margin: 16px 1px 0; text-align: left; }
#mw-m .mw-hotel img { width: 100%; max-height: 330px; object-fit: cover; }
#mw-m .mw-hotel-body { padding: 16px 16px 16px 17px; }
#mw-m .mw-hotel h4 { font-weight: 700; font-size: 18px; line-height: 27px; text-transform: uppercase; }
#mw-m .mw-hotel h5 { font-weight: 700; font-size: 18px; line-height: 27px; text-transform: uppercase; margin-top: 16px; }
#mw-m .mw-hotel p { margin-top: 8px; }
#mw-m .mw-hotel .mw-btn { line-height: 42px; margin-top: 16px; }

/* rsvp: the real Mad-Libs form, restyled */
#mw-m #SmartRsvp { text-align: center; }
#mw-m #SmartRsvp .section { padding: 0; margin: 0; }
#mw-m #SmartRsvp span.rsvp-copy { display: block !important; padding: 34px 0 62px !important; font-weight: 700; }
#mw-m #SmartRsvp .rsvp-copy strong { font-weight: 700; }
#mw-m #SmartRsvp input { display: inline-block; width: calc(100% - 6px); height: 40px; margin: 0; padding: 0 16px; border: 1px solid #000; border-radius: 0; background: #fff; font: 16px "Crimson Text", Georgia, serif; color: #444; box-shadow: none; -webkit-appearance: none; appearance: none; }
#mw-m #SmartRsvp input::placeholder { color: #aaa; }
#mw-m #SmartRsvp .contact-details input { width: calc(100% - 6px); margin-top: 8px; }
#mw-m #SmartRsvp .contact-details > :first-child input { margin-top: 0; }
#mw-m #SmartRsvp #contact { margin-top: 32px; }
#mw-m #SmartRsvp .contactim { display: block; }
#mw-m #SmartRsvp .text { display: block; margin-top: 8px; }
#mw-m #rg-rsvp-v3-submit { display: block; width: calc(100% - 6px); height: 53px; margin: 32px 0 0; background: #000; color: #fff; border: 0; border-radius: 0; padding: 0 0 3px; font: 16px Arial, Helvetica, sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
#mw-m #rsvp-closed-note { margin-top: 16px; }
#mw-m .mw-rsvp { padding-bottom: 95px; }

/* photos */
#mw-m .mw-photos { padding-bottom: 0; }
#mw-m .mw-gallery img { width: 100%; margin-top: 8px; }
#mw-m .mw-gallery img:first-child { margin-top: 0; }
#mw-m .mw-photos .mw-h { margin-bottom: 21px; }

/* ---------- wedding party detail (in place of the page) ---------- */
#mw-m .mw-detail { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 1000; overflow-y: auto; text-align: left; padding: 25px 45px 40px; }
#mw-m .mw-detail[hidden] { display: none; }
#mw-m .mw-detail-x { position: absolute; top: 8px; right: 13px; width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; }
#mw-m .mw-detail-x::before, #mw-m .mw-detail-x::after { content: ""; position: absolute; left: 0; top: 11px; width: 25px; height: 1.5px; background: #000; transform: rotate(45deg); }
#mw-m .mw-detail-x::after { transform: rotate(-45deg); }
#mw-m .mw-detail-body img { width: 225px; margin: 0 auto; }
#mw-m .mw-detail-body h4 { font-weight: 700; font-size: 18px; line-height: 27px; text-transform: uppercase; margin-top: 11px; }
#mw-m .mw-detail-body p { margin-top: 12px; }
#mw-m .mw-goback { display: block; text-align: center; margin-top: 49px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 1px; }

@media (prefers-reduced-motion: reduce) { #mw-m .mw-nav, #mw-m.mw-menu-open .mw-nav, #mw-m .mw-burger, #mw-m .mw-burger span { transition: none; } }
/* v18: returning guest (flag set by pre.js) - keep the gate invisible until main.js shows the site;
   failsafe: if scripts never run, the gate becomes visible after 3 s. */
html.mw-pre:not(.unlocked) #gate { visibility: hidden; animation: mw-pre-show 0s linear 3s forwards; }
@keyframes mw-pre-show { to { visibility: visible; } }
/* v18 scroll reveal (phone only; JS adds .mw-rv-on, so nothing is hidden without JS) */
html.mw-rv-on #mw-m .mw-rv { opacity: 0; transition: opacity .5s cubic-bezier(.42,0,.58,1); }
html.mw-rv-on #mw-m .mw-rv.mw-in { opacity: 1; }
}
@media print { html.mw-rv-on #mw-m .mw-rv { opacity: 1 !important; } }
