html.visit-choosing, html.visit-choosing body { overflow: hidden; }
dialog.visit-gate { inset:0; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-radius:0; overflow:auto; overscroll-behavior:contain; color:#181818; background:white; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.visit-gate:not([open]) { display:none; }
.visit-gate::backdrop { background:white; }
.visit-gate * { box-sizing:border-box; }
.visit-shell { min-height:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.94fr); }
.visit-copy { display:flex; flex-direction:column; align-items:flex-start; padding:clamp(28px,5vw,76px); }
.visit-wordmark { width:clamp(125px,12vw,176px); height:auto; object-fit:contain; }
.visit-message { width:100%; max-width:440px; margin:auto 0; padding:52px 0; }
.visit-message h1 { margin:0 0 16px; font:600 clamp(30px,3.1vw,46px)/1.13 Georgia,"Songti SC",serif; letter-spacing:-.025em; text-wrap:balance; }
.visit-message p { margin:0; max-width:40ch; font-size:16px; line-height:1.6; color:#504e48; }
.visit-actions { display:grid; justify-items:start; gap:12px; margin-top:30px; }
.visit-actions button { min-height:48px; max-width:100%; padding:12px 24px; border-radius:100px; border:1px solid #bbb; background:white; color:#181818; font:500 14px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor:pointer; }
.visit-actions [data-visit-allow] { background:#181818; border-color:#181818; color:white; }
.visit-actions button:focus-visible { outline:2px solid #181818; outline-offset:4px; }
.visit-language { margin-top:20px; }
.visit-language select { max-width:100%; min-height:40px; padding:6px 12px; border:1px solid #bbb; border-radius:8px; color:#292722; background:#fff; font:inherit; cursor:pointer; }
.visit-image { background:#f4f4f4 url('./assets/videos/family-album-firstframe.jpg') 54% center/cover no-repeat; }
@media (max-width:700px) {
  .visit-shell { display:flex; flex-direction:column; }
  .visit-image { order:-1; flex:none; height:clamp(120px,31svh,300px); background-position:center 44%; }
  .visit-copy { padding:26px max(24px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); flex:1; }
  .visit-message { margin:auto; max-width:420px; padding:28px 0 0; }
  .visit-actions { justify-items:stretch; margin-top:22px; }
  .visit-message p { font-size:15px; }
}
@media (max-width:700px) and (max-height:570px) { .visit-image { display:none; } }
