/* Public guestbook extends the existing ivory, Tiffany blue editorial system. */
.guestbook-paper .guestbook-action:disabled { opacity:.6; cursor:wait; }
.guestbook-public-consent { display:flex; align-items:flex-start; gap:9px; margin-top:20px; font:400 12px/1.7 var(--kr,serif); color:#53625f; cursor:pointer; }
.guestbook-public-consent input { margin-top:3px; accent-color:#287e75; flex:none; }
.guestbook-submit-status { min-height:22px; margin:13px 0 0; font:400 12px/1.8 var(--kr,serif); color:#276b62; }
.guestbook-submit-status.is-error { color:#aa413b; }
.guestbook-website { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; left:-9999px!important; }
.guestbook-gallery { margin-top:clamp(72px,9vw,130px); }
.guestbook-gallery-head { display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:19px 0 22px; border-top:1px solid var(--hair); }
.guestbook-gallery-title { font:400 clamp(35px,5.5vw,65px)/1 var(--serif); letter-spacing:-.06em; margin:0; }
.guestbook-gallery-sub { color:var(--muted); font:400 11px/1.6 var(--kr,serif); }
.guestbook-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.guestbook-entry { min-width:0; display:flex; flex-direction:column; background:#f8f7f3; border:1px solid rgba(21,43,45,.13); }
.guestbook-entry-photo { display:block; width:100%; aspect-ratio:4/3; overflow:hidden; background:#dbece8; }
.guestbook-entry-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.guestbook-entry-body { display:flex; flex:1; flex-direction:column; gap:27px; padding:23px 23px 19px; }
.guestbook-entry-message { margin:0; color:var(--ink); font:400 14px/1.95 var(--kr,serif); overflow-wrap:anywhere; white-space:pre-wrap; }
.guestbook-entry-foot { display:flex; justify-content:space-between; gap:10px; margin-top:auto; color:#63736e; font:500 10px/1.5 var(--sans,Arial,sans-serif); letter-spacing:.035em; }
.guestbook-entry-foot time { flex:none; }
.guestbook-gallery-status,.guestbook-empty { margin:23px 0 0; font:400 13px/1.8 var(--kr,serif); color:var(--muted); }
.guestbook-more { display:block; width:100%; max-width:280px; margin:36px auto 0; background:transparent; border:1px solid #8da7a0; padding:15px 20px; color:var(--ink); font:500 13px var(--kr,serif); cursor:pointer; }
.guestbook-more:hover { background:#dbece8; }
.guestbook-more[hidden],.guestbook-empty[hidden] { display:none!important; }
@media(max-width:900px){ .guestbook-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px){ .guestbook-list { grid-template-columns:1fr; gap:13px; } .guestbook-gallery-head { display:block; } .guestbook-gallery-sub { display:block; margin-top:10px; } .guestbook-entry-body { padding:20px; } }

/* 2026 v2: single editorial type system, photo stack, concise numbered pagination */
.invitation-page .guestbook-gallery-title {
  font-family:var(--display,var(--serif,Georgia,serif));
  font-weight:400;
  font-size:clamp(36px,5.5vw,68px);
  letter-spacing:-.058em;
}
/* Gift-card notice: its own quiet panel (pale Tiffany on ivory), larger and darker than the body copy. */
.guestbook-prize { margin-top:24px!important; max-width:360px; padding:15px 18px 16px; border:1px solid rgba(102,201,192,.5); border-left:3px solid #66c9c0;
  background:#e9f5f2; color:#152b2d; font-size:clamp(15px,1.3vw,16px)!important; font-weight:500!important; line-height:1.75!important; }
.guestbook-public-note { font:400 11px/1.8 var(--kr,serif); color:#64736f; margin:17px 0 0; }
.guestbook-preview-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:16px; }
.guestbook-preview-grid[hidden] {display:none!important;}
.guestbook-preview-item {margin:0; min-width:0; position:relative; aspect-ratio:1; overflow:hidden; background:#dbece8;}
.guestbook-preview-item img {width:100%; height:100%; object-fit:cover; display:block;}
.guestbook-preview-item figcaption {position:absolute; bottom:0; right:0; padding:2px 5px; background:rgba(21,43,45,.77); color:white; font:500 10px var(--sans,Arial,sans-serif);}
.guestbook-photo-stack {position:relative; isolation:isolate; margin:0 8px 8px 0;}
.guestbook-photo-stack:before,.guestbook-photo-stack:after {content:""; position:absolute; inset:7px -7px -7px 7px; background:#b8d8d2; border:1px solid rgba(21,43,45,.2); z-index:-1;}
.guestbook-photo-stack:before {inset:4px -4px -4px 4px; background:#e2f0eb; z-index:-1;}
.guestbook-photo-stack .guestbook-entry-photo {display:block; width:100%; aspect-ratio:4/3; overflow:hidden; background:#dbece8; }
.guestbook-photo-stack .guestbook-entry-photo img {width:100%; height:100%; object-fit:cover; display:block;}
.guestbook-photo-count {position:absolute; top:11px; right:10px; padding:5px 9px; border:1px solid rgba(255,255,255,.75); background:rgba(21,43,45,.65); color:#fff; font:600 10px var(--sans,Arial,sans-serif); letter-spacing:.08em; pointer-events:none;}
.guestbook-photo-arrow {position:absolute; top:50%; transform:translateY(-50%); width:36px; height:44px; border:0; background:rgba(248,247,243,.87); color:#152b2d; font:400 32px/1 Georgia,serif; cursor:pointer; z-index:2;}
.guestbook-photo-arrow.is-prev {left:0;}.guestbook-photo-arrow.is-next {right:0;}
.guestbook-photo-position {position:absolute; bottom:11px; right:12px; background:rgba(21,43,45,.75); color:white; padding:5px 9px; font:500 11px var(--sans,Arial,sans-serif); pointer-events:none;}
.guestbook-pagination {display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin:30px auto 0;}
.guestbook-pagination[hidden] {display:none!important;}
.guestbook-pagination button {width:38px;height:38px;border:1px solid transparent; background:transparent; color:var(--ink);font:500 14px var(--sans,Arial,sans-serif);cursor:pointer;}
.guestbook-pagination button.is-current {border-color:var(--ink);background:var(--ink);color:#fff;}
.guestbook-pagination button:disabled {opacity:.3;cursor:default;}
.guestbook-pagination button:focus-visible,.guestbook-photo-arrow:focus-visible {outline:2px solid #248c81;outline-offset:2px;}
.guestbook-page-gap {padding:0 4px;color:#75827e;}
@media(max-width:650px){.guestbook-preview-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;} .guestbook-photo-arrow {width:40px;height:44px;} .guestbook-gallery-title {font-size:clamp(39px,10vw,56px);} }

/* Text-light refinement: a larger standalone editorial heading. */
.invitation-page .guestbook-gallery-title {
  font-size: clamp(43px, 6.6vw, 82px);
  max-width: 100%;
  text-wrap: balance;
}
@media (max-width:700px) {
  .invitation-page .guestbook-gallery-title { font-size: clamp(41px, 10.8vw, 52px); }
}

/* v4 / On-page guestbook photo lightbox; no Google Drive preview navigation. */
.guestbook-photo-stack .guestbook-entry-photo { border:0; padding:0; cursor:zoom-in; appearance:none; }
.guestbook-photo-stack .guestbook-entry-photo:focus-visible { outline:3px solid #287f7b; outline-offset:3px; }
body.guestbook-lightbox-open {
  position:fixed; left:0; right:0; top:var(--guestbook-lock-top); width:100%; overflow:hidden;
}
.guestbook-lightbox {
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  padding:clamp(56px,8vh,78px) 45px; background:rgba(11,24,26,.94);
}
.guestbook-lightbox[hidden],.guestbook-lightbox [hidden] { display:none!important; }
.guestbook-lightbox-frame { display:flex; align-items:center; justify-content:center; max-width:100%; max-height:100%; min-width:0; }
.guestbook-lightbox-frame img {
  display:block; width:auto; height:auto; max-width:100%; max-height:calc(100dvh - 145px);
  object-fit:contain; touch-action:pinch-zoom; user-select:none; -webkit-user-drag:none;
}
.guestbook-lightbox button {
  display:grid; place-items:center; position:absolute; width:46px; height:46px;
  border:1px solid #c8e1d7a8; border-radius:50%;
  background:#1c3838cc; color:#fff; font:400 23px/1 var(--sans,Arial,sans-serif); cursor:pointer;
}
.guestbook-lightbox button:focus-visible { outline:3px solid #81d8d0; outline-offset:3px; }
.guestbook-lightbox-close { top:max(16px,env(safe-area-inset-top,16px)); right:16px; }
.guestbook-lightbox-prev { top:50%; left:10px; transform:translateY(-50%); }
.guestbook-lightbox-next { top:50%; right:10px; transform:translateY(-50%); }
.guestbook-lightbox-count {
  position:absolute; left:50%; bottom:max(19px,env(safe-area-inset-bottom,19px));
  transform:translateX(-50%); color:#eef6f2;
  font:600 12px/1 var(--sans,Arial,sans-serif); letter-spacing:.12em;
}
.guestbook-lightbox-status { color:#f8f7f3; font:400 14px/1.7 var(--kr,Georgia,serif); text-align:center; }
@media(max-width:650px) {
  .guestbook-lightbox { padding:65px 14px 60px; }
  .guestbook-lightbox-frame img { max-height:calc(100dvh - 125px); }
  .guestbook-lightbox-prev { left:6px; }
  .guestbook-lightbox-next { right:6px; }
  .guestbook-lightbox button { width:42px; height:42px; }
}
