.album-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.section-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.photo-date-filter{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.album-actions select{min-height:38px;width:auto;margin:0}
.photo-date-filter input{min-width:0;max-width:170px}
.section-actions>.filters{flex:1;margin-bottom:0;min-width:0}
.batch-date{margin:0 0 8px;font-size:11px}
@media(max-width:700px){.album-actions{max-width:100%}.album-actions select{max-width:100%}.photo-date-filter{flex-wrap:wrap}}
.life-dates{display:flex;flex-wrap:wrap;gap:4px 20px;font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 18px}
.life-dates>span{white-space:nowrap}
.hero{min-height:560px}
.hero.has-cover .life-dates{color:white}
@media(max-width:700px){.hero{min-height:500px}.life-dates{gap:4px 14px;font-size:12px}}
#photo-list.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;align-items:start}
.photo-batch{min-width:0;border-top:1px solid var(--line);padding-top:18px}
.batch-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:12px}
.batch-heading p{font-size:14px;white-space:pre-wrap}.batch-heading span{flex-shrink:0;font-size:12px}
.memory-source-link{display:inline-block;color:var(--muted);font-size:12px;margin-bottom:8px;text-decoration:underline;text-underline-offset:3px}
#viewer-memory-title{margin-bottom:18px;font-size:18px}
.original-load-row{display:flex;justify-content:center;margin:-6px 0 20px}
.photo-mosaic{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:8px}
.grid-range{margin-top:18px;font-size:11px}
.photo-mosaic[data-count="1"]{grid-template-columns:1fr;max-width:340px}
.photo-mosaic[data-count="2"],.photo-mosaic[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.photo-tile{display:block;position:relative;width:100%;aspect-ratio:1;padding:0;background:#e9ede8;overflow:hidden;border-radius:3px}
.photo-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}
.photo-tile:hover img{transform:scale(1.025)}
.photo-tile[aria-pressed=true]{outline:3px solid var(--green);outline-offset:-3px}
.photo-selection{position:absolute;top:7px;right:7px;border:2px solid white;border-radius:50%;width:25px;height:25px;background:#26332970;color:white;font-size:12px;line-height:21px}
.photo-tile[aria-pressed=true] .photo-selection{background:var(--green)}
#organize-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:24px;padding:12px 0;border-block:1px solid var(--line);font-size:13px}
#photo-counter{margin-left:auto;font-size:13px;color:var(--muted)}
#photo-stage{position:relative;display:flex;align-items:center;justify-content:center;height:54vh;min-height:200px;max-height:640px;background:#edf0ec;margin-bottom:20px;touch-action:pan-y pinch-zoom}
#photo-stage #large-photo{width:100%;height:100%;max-height:100%;margin:0;object-fit:contain}
.photo-nav{position:absolute;top:calc(50% - 22px);background:#f8f9f7ed;box-shadow:0 1px 5px #0002}
#previous-photo{left:8px}#next-photo{right:8px}.photo-nav:disabled{cursor:default;opacity:.35}
@media(max-width:700px){#photo-list.photo-grid{grid-template-columns:1fr;gap:26px}.album-actions{gap:10px}.album-actions .text-button{font-size:13px}.panel-heading{flex-wrap:wrap}.photo-mosaic{gap:3px}#photo-stage{height:44vh;min-height:220px}.photo-nav{width:36px;height:42px}#photo-dialog .dialog-header h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.photo-tile img{transition:none}}
