/* phone-viewer (components/phone-viewer/phone-viewer.js): one full screen picture viewer, PHONE ONLY. The picture on chalk,
   edge to edge; CLOSE X top right on the page margin (DESIGN.md 1.4); an optional foot line. No dividers, no feather. */
.pv { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:var(--chalk); color:var(--bark); overflow:hidden; }
.pv:not([open]) { display:none; }
.pv[open] { display:grid; grid-template-rows:minmax(0,1fr) auto; }
.pv::backdrop { background:var(--chalk); }
.pv:focus, .pv:focus-visible { outline:0; }
.pv__stage { position:relative; grid-row:1; overflow:hidden; touch-action:none; cursor:grab; -webkit-user-select:none; user-select:none; }
.pv__layer { position:absolute; left:0; top:0; width:100%; transform-origin:0 0; will-change:transform; }
.pv__layer img { display:block; width:100%; height:auto; -webkit-user-drag:none; pointer-events:none; }
.pv__foot { grid-row:2; padding:12px var(--page,20px) max(24px, env(safe-area-inset-bottom)); }
.pv__foot:empty { display:none; }
.pv__close.fbtn-x { position:absolute; z-index:2; top:max(20px, env(safe-area-inset-top)); right:var(--page,20px); }
/* Olive tone (Camille 23 Oct 2026: "Gallery expand - the background shoudl be olive"): the plate olive, chalk text and CLOSE. */
.pv[data-tone="olive"], .pv[data-tone="olive"]::backdrop { background:var(--sable-green); }
.pv[data-tone="olive"] { color:var(--white); }
.pv[data-tone="olive"] .pv__close.fbtn-x, .pv[data-tone="olive"] .pv-caption { color:var(--white); }

/* Plan-only source expansion: the page remains visible behind the moving vector. */
.pv[data-origin-motion]::backdrop { background:transparent; }
/* The title, top left (the residence number on a floor plan): the residence-number type, its centre on CLOSE X's centre. */
.pv__title { position:absolute; z-index:2; top:max(20px, env(safe-area-inset-top)); left:var(--page,20px); display:flex; align-items:center; height:44px; margin:0; font:350 30px/1 var(--serif); letter-spacing:-.02em; color:inherit; pointer-events:none; }
