/* Member photos use a thumbnail grid and horizontal home strip. */
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.photo-card{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;min-width:0}
.photo-card>button:first-child{display:block;border:0;padding:0;width:100%;border-radius:0}
.photo-card img{display:block;width:100%;height:190px;object-fit:cover}
.photo-card figcaption{padding:.8rem}.photo-card strong,.photo-card small{display:block;overflow-wrap:anywhere}
.photo-card small{color:var(--muted);margin-top:.25rem}.photo-remove{color:#982d25}.photo-card>.photo-remove{margin:0 .8rem .8rem}
.photo-strip{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x proximity;padding:.3rem 0 .7rem}
.photo-strip .photo-card{flex:0 0 calc((100% - 4rem)/5);min-width:170px;scroll-snap-align:start}.photo-strip .photo-card img{height:150px}
.photo-dialog{width:min(850px,94vw);max-height:90vh;overflow:auto}.photo-dialog label{display:block;margin:.7rem 0}
.photo-dialog input[type=checkbox]{width:auto}.photo-dialog .panel-head{gap:1rem}
.photo-full{width:100%;max-height:58vh;object-fit:contain;background:#132333;border-radius:8px}
.photo-preview{min-width:0}.photo-preview img{width:100%;height:120px;object-fit:cover}.photo-preview small{overflow-wrap:anywhere}
.photo-album>button{width:100%;border:0;padding:0;background:none;text-align:left}.photo-album img{width:100%;height:180px;object-fit:cover;border-radius:8px}
.photo-album p{overflow-wrap:anywhere}.photo-album-empty{padding:3rem 1rem;background:#edf1f4;border-radius:8px;color:var(--muted)}.photo-album .button-row{margin-top:1rem}
.photo-grid.hidden{display:none}
@media(max-width:850px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-strip .photo-card{flex-basis:40%}}
@media(max-width:580px){.photo-grid{grid-template-columns:1fr}.photo-strip .photo-card{flex-basis:78%}.photo-dialog{padding:1rem}.department-photos .panel-head{flex-wrap:wrap}.photo-card img{height:220px}}
