.building-photo-manager { display:block; }
.photo-toolbar,.photo-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.photo-toolbar { margin-bottom:12px; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:12px; }
.photo-card { position:relative; display:flex; flex-direction:column; gap:8px; padding:8px; border:1px solid #dbe4ef; border-radius:10px; min-width:0; }
.photo-card a { display:block; }
.photo-card img { width:100%; height:180px; object-fit:contain; border-radius:6px; background:#f1f5f9; }
.photo-actions { justify-content:center; margin-top:auto; }
.photo-icon-button { display:inline-flex; justify-content:center; align-items:center; width:32px; height:32px; padding:5px; border-radius:7px; flex-shrink:0; }
.photo-icon-button svg,.photo-main-indicator svg { width:18px; height:18px; display:block; }
.photo-icon-button[aria-pressed="true"] { opacity:1; }
.photo-icon-button[aria-pressed="true"] svg,.photo-main-indicator svg { fill:currentColor; }
.photo-file-picker { display:inline-flex; }
.photo-main-indicator { position:absolute; top:12px; right:12px; color:#1d4ed8; background:white; border-radius:6px; padding:4px; }
.photo-status { font-size:.82rem; }
.photo-status:empty { display:none; }
.photo-removed { margin-top:16px; }
.photo-removed summary { cursor:pointer; margin-bottom:12px; }
.photo-icon-button:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
@media (pointer:coarse) { .photo-icon-button { width:40px; height:40px; } }
