/* ゲスト（祖父母・姉たち）の見るだけの画面（H6）。見た目は今のアルバムのページ（album-tag.css）と同じで、
   ゲストに要る所（あいさつ・案内・まとめて保存・大きく見る）だけをここに足す（D-061）。角は今の決まりのまま（四角） */
body.guest { display: flex; flex-direction: column; height: 100dvh; background: var(--bg); color: var(--text); }
body.guest .content { flex: 1; min-height: 0; max-width: 1240px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.guest-name { font-size: var(--fs-13); color: var(--text-sub); padding-right: var(--sp-4); }

/* 招待のリンクの案内・ホーム画面に追加の案内 */
.guest-notice, .guest-hint { display: flex; flex-direction: column; gap: var(--sp-8); padding: var(--sp-20); border: var(--line-w) solid var(--line); background: var(--surface); }
.guest-notice[hidden], .guest-hint[hidden] { display: none; }
.guest-notice { max-width: 560px; margin: var(--sp-32) auto 0; }
.guest-notice .title, .guest-hint .title { margin: 0; font-family: var(--font-serif); font-size: var(--fs-18); font-weight: var(--fw-normal); letter-spacing: .04em; }
.guest-notice .body, .guest-hint .body { margin: 0; font-size: var(--fs-14); line-height: var(--lh-text); color: var(--text-sub); }
.guest-hint .btn { align-self: flex-start; }

/* 写真を選んで保存 */
.guest-tools { flex: none; display: flex; gap: var(--sp-8); }
.guest-tools[hidden] { display: none; }
.guest-tools.is-off { visibility: hidden; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-actionbar); display: flex; align-items: center; gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-16) calc(var(--sp-12) + env(safe-area-inset-bottom)); background: var(--bar-bg); color: var(--bar-fg); }
.save-bar[hidden] { display: none; }
.save-bar .t { font-size: var(--fs-14); font-weight: var(--fw-bold); }
.save-bar .btn { height: var(--tap); border-color: var(--bar-line); color: var(--bar-fg); }
.save-bar .btn.is-primary { border-color: transparent; background: var(--accent-on-bar); color: var(--bar-bg); }
body.guest.guest-selecting .content { padding-bottom: calc(var(--tap) + 48px); }

/* 写真・動画を大きく見る（黒い地。今のビューアーと同じ色） */
.gv { position: fixed; inset: 0; z-index: var(--z-viewer); background: var(--viewer-bg); color: var(--viewer-fg); }
.gv[hidden] { display: none; }
.gv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gv-img, .gv-video { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; } /* 本体の大きく見る画面（.v-img）と同じく、画面いっぱいに収める */
.gv-img[hidden], .gv-video[hidden] { display: none; }
.gv-msg { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); margin: 0; padding: var(--sp-8) var(--sp-16); background: var(--viewer-ctrl-strong); font-size: var(--fs-14); }
.gv-msg[hidden] { display: none; }
.gv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: var(--sp-8);
  padding: calc(var(--sp-8) + env(safe-area-inset-top)) var(--sp-8) var(--sp-8); background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.gv-pos { font-size: var(--fs-13); color: var(--viewer-sub); }
.gv-btn { min-width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 var(--sp-12);
  border: 0; background: var(--viewer-ctrl); color: var(--viewer-fg); font: inherit; font-size: var(--fs-14); cursor: pointer; }
.gv-btn[hidden] { display: none; }
.gv-btn .icon { width: var(--icon-l); height: var(--icon-l); stroke: currentColor; fill: none; stroke-width: 1.6; }
.gv-btn[disabled] { opacity: .5; }
.gv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: var(--tap); height: 64px; display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--viewer-ctrl); color: var(--viewer-fg); cursor: pointer; }
.gv-nav .icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.gv-nav[disabled] { display: none; }
.gv-prev { left: var(--sp-8); }
.gv-next { right: var(--sp-8); }
@media (max-width: 767px) {
  .gv-nav { display: none; }
  .save-bar .t { font-size: var(--fs-13); }
}

/* 家族の「見え方」の画面の帯（H6b。今の口の /preview/guest/{id}/ だけで出す） */
.preview-bar { flex: none; display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-8) var(--sp-16); background: var(--accent-soft); color: var(--accent-strong); font-size: var(--fs-13); line-height: var(--lh-ui); }
.preview-bar[hidden] { display: none; }
.preview-bar .t { min-width: 0; }
/* そのほかの写真（アルバムに入っていない写真。H6b）の見出し：年の数字の欄に収まるよう、小さめで折り返さない */
.others-row .year-label .y { font-size: var(--fs-18); white-space: nowrap; }
