/* Card photos in the lead panel's People tier (public/photos.js): a row of card-shaped thumbnails, opened full size in a sheet. */
.ph{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft);min-width:0}
.ph-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}
.ph-count{display:inline-block;min-width:18px;margin-left:4px;padding:0 6px;border-radius:var(--r-pill);background:var(--raised);color:var(--text-2);font:600 11px/18px var(--font);text-align:center}
.ph-strip{display:flex;gap:10px;margin-top:8px;padding-bottom:4px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
/* Visiting cards are ~1.75:1; a thumbnail keeps that shape, so a card reads at a glance and a portrait photo is cropped, not squashed. */
.ph-thumb{position:relative;flex:none;width:132px;aspect-ratio:7/4;padding:0;border:1px solid var(--hairline);border-radius:var(--r);background:var(--well);overflow:hidden;cursor:zoom-in;scroll-snap-align:start;transition:transform var(--dur-quick) var(--ease-out-soft),border-color var(--dur-quick) var(--ease-out-soft)}
.ph-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.ph-thumb:hover{border-color:var(--accent-border);transform:translateY(-1px)}
.ph-thumb:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.ph-thumb.is-loading{cursor:default;border-color:transparent}
.ph-tag{position:absolute;left:6px;bottom:6px;padding:1px 6px;border-radius:var(--r-pill);background:var(--scrim);color:var(--cream-50);font:600 10px/16px var(--font);letter-spacing:.02em}
.ph-note{margin:6px 0 0;font:400 13px/18px var(--font);color:var(--muted)}
.ph-file{display:none}
.ph-head .btn.busy{opacity:.6;pointer-events:none}
/* The viewer */
.ph-sheet{width:min(960px,calc(100vw - 32px))}
.ph-figure{margin:0;display:flex;flex-direction:column;gap:10px}
.ph-figure img{display:block;max-width:100%;max-height:min(70vh,720px);margin:0 auto;border-radius:var(--r);background:var(--well);object-fit:contain}
.ph-figure figcaption{font:400 13px/18px var(--font);color:var(--muted);text-align:center}
.ph-view-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
.ph-view-foot .ph-remove{margin-left:auto;color:var(--danger)}
@media (max-width:480px){.ph-thumb{width:116px}.ph-figure img{max-height:62vh}}
@media (prefers-reduced-motion:reduce){.ph-thumb{transition:none}.ph-thumb:hover{transform:none}}
