/* Native sequential rows. Each 48-photo append ends at a row boundary for
   2, 3, or 4 columns, so existing rows never rebalance when more are revealed. */
.gallery.gallery-rows{display:flex;flex-direction:column;columns:auto;gap:26px;padding:0 5vw 40px}
.gallery-rows .gallery-row{display:grid;gap:22px;align-items:start;min-width:0}
.gallery-rows article{min-width:0;margin:0;break-inside:auto}
.gallery-rows article button.photo{display:flex;align-items:center;justify-content:center;width:100%;min-height:0;overflow:hidden;background:#061a3508;position:relative}
.gallery-rows .photo img{width:100%;height:100%;object-fit:contain}
.gallery-rows .photo-pending{color:var(--navy)}
.gallery-rows .photo-placeholder{font:12px/1.5 Arial,sans-serif;padding:10px;opacity:.6;text-align:center}
.gallery-rows button.preview-retry{background:none;color:var(--navy);padding:5px 0;font:12px Arial,sans-serif;text-decoration:underline;min-height:32px}
.gallery-rows .photo-actions{gap:6px;min-width:0}
.gallery-rows .photo-actions>div{min-width:0}
.album-toolbar{align-items:center;flex-wrap:wrap;position:sticky;top:0;z-index:10;background:rgba(255,254,245,.97);backdrop-filter:blur(12px);border-bottom:1px solid #061a3520}
.album-toolbar .album-filters{flex-wrap:wrap;gap:18px}
.album-toolbar .album-tools{align-items:center;gap:22px}
.album-toolbar .favorites-download{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:183px;padding:11px 22px;border-radius:28px;line-height:1.3}
.favorites-download strong,.favorite-parts strong{font-size:13px;font-weight:400}
.favorites-download small,.favorite-parts small{font-size:11px;opacity:.8}
.favorite-parts{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.favorite-parts .action{display:flex;flex-direction:column;gap:5px;border-radius:25px;width:100%}
.favorites-dialog .form-note{max-width:none}
@media(max-width:1150px){.gallery-rows .gallery-row{gap:18px}}
@media(max-width:700px){
  .gallery.gallery-rows{padding:0 18px 25px;gap:18px}
  .gallery-rows .gallery-row{gap:12px}
  .album-toolbar{padding:12px 20px;gap:12px}
  .album-toolbar .album-filters{width:100%;justify-content:space-between;gap:12px}
  .album-toolbar .album-tools{width:100%;justify-content:space-between;gap:12px}
  .album-toolbar .favorites-download{min-width:0;flex:1;max-width:250px;padding-inline:16px}
  .album-toolbar .refresh-photos{font-size:12px}
  .gallery-rows .photo-actions{flex-wrap:wrap;gap:0;align-items:center}
  .gallery-rows .photo-actions>div{margin-left:auto}
  .gallery-rows .photo-index{font-size:9px}
  .gallery-rows .photo-actions button.download{font-size:11px;letter-spacing:-.02em}
  .gallery-rows button.favorite{width:34px}
  .gallery-rows .photo-placeholder{font-size:10px}
}

.owner-photo-grid .owner-photo-preview{height:240px;background:#061a3508;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.owner-photo-grid .owner-photo-preview img{height:100%;width:100%;object-fit:contain}
.owner-photo-preview>div{padding:16px;font:13px/1.5 Arial,sans-serif;color:var(--navy)}
.owner-photo-preview .plain{display:block;margin:6px auto 0;font-size:12px;text-decoration:underline}
@media(max-width:760px){.owner-photo-grid .owner-photo-preview{height:190px}}
