.album-grid,.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin-top:20px}.album-tile{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:10px;padding:10px;border:1px solid var(--line);border-radius:16px}.album-tile img,.album-empty{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.album-empty{display:grid;place-items:center;font-size:48px;background:var(--surface);opacity:.7}.album-tile small{font-size:12px}.photo-tile img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}.photo-tile p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.photo-open{padding:0;width:100%;background:transparent}.feed-photo{display:block;width:100%;max-height:650px;object-fit:contain;border-radius:14px;margin:16px 0;background:rgba(0,0,0,.08)}#post-photo-preview img{max-height:220px;max-width:100%;border-radius:12px;margin:12px 0}.photo-full img{max-width:100%;max-height:70vh;object-fit:contain;margin-top:16px}#photo-upload{padding:16px;border:1px solid var(--line);border-radius:12px;margin:16px 0}.modal>section:has(.album-grid),.modal>section:has(.photo-grid){width:min(850px,95vw);max-width:850px}#profile-gallery{margin-top:24px}
