.photos .albums,.photo-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin-top:16px;list-style:none;display:grid}.photos .albums a,.photo-grid a{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);height:100%;color:inherit;font:500 13px var(--font-ui);overflow-wrap:anywhere;flex-direction:column;gap:6px;padding:8px;display:flex}.photos .albums a:hover,.photo-grid a:hover{border-color:var(--accent);text-decoration:none}.photos .albums img,.photo-grid img{aspect-ratio:4/3;object-fit:cover;background:var(--surface-3);width:100%;height:auto;display:block}.album-name{font-size:14px;font-weight:600}.photo-viewer{color:#f3ece4;background:#0b0908;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.photo-viewer[open]{flex-direction:column;display:flex}.photo-viewer::backdrop{background:#0b0908}.photo-bar{padding:max(8px, env(safe-area-inset-top)) 12px 8px;flex-wrap:wrap;align-items:center;gap:6px;display:flex}.photo-bar .btn{min-height:36px}.photo-count{font:500 13px var(--font-ui);margin-right:auto}.photo-viewer figure{flex-direction:column;flex:1;align-items:center;gap:10px;min-height:0;margin:0;padding:4px 12px 8px;display:flex}.photo-viewer figure img{object-fit:contain;flex:1 1 0;width:100%;min-height:0}.photo-viewer figcaption{text-align:center;max-width:70ch;font:400 14px/1.5 var(--font-ui);flex-direction:column;gap:2px;display:flex}.photo-status{min-height:1.5em;padding:0 12px max(8px, env(safe-area-inset-bottom));text-align:center;font:500 13px var(--font-ui)}
