/* A fixed-format inbox; authored photo canvases never own its geometry. */
#memory-generated .other-photos-section { container:other-photos / inline-size; width:100%; min-width:0; box-sizing:border-box; margin:0 0 64px; position:relative; }
#memory-generated .other-photos-heading-row { display:grid; gap:6px; margin-bottom:24px; }
#memory-generated .other-photos-heading { font:700 28px/1.2 var(--font-body); margin:0; color:var(--color-ink,var(--app-color-memory-111111,#111)); min-width:0; }
#memory-generated .other-photos-description { margin:0; font:400 14px/1.45 var(--font-body); color:var(--color-muted,var(--color-ink)); }
#memory-generated .other-photos-shortcuts { display:flex; flex-wrap:wrap; column-gap:18px; }
#memory-generated .other-photos-shortcuts button { appearance:none; padding:0; min-height:32px; border:0; background:none; color:var(--color-ink); font:600 14px/1.45 var(--font-body); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
#memory-generated .other-photos-shortcuts button:focus-visible { outline:2px solid var(--color-action); outline-offset:2px; }
#memory-generated .other-photos-selection { display:flex; flex:none; align-items:center; gap:8px; font:500 16px/1.4 var(--font-body); }
#memory-generated .other-photos-selection output { flex:none; min-width:4ch; font:inherit; }
#memory-generated .other-photos-selection output:not(:empty)::before { content:"/ "; white-space:pre; }
#memory-generated .other-photos-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--memory-component-gutter,24px); }
#memory-generated .other-photos-card { position:relative; min-width:0; aspect-ratio:1; }
#memory-generated#memory-generated .other-photos-preview,
#memory-generated#memory-generated .other-photos-preview:is(:hover,:focus-visible,:active) { display:block; width:100%; height:100%; min-width:0; padding:0; border:0; border-radius:0; background:var(--color-neutral); color:inherit; overflow:hidden; cursor:zoom-in; }
#memory-generated .other-photos-preview img { display:block; width:100%; height:100%; object-fit:cover; }
#memory-generated .other-photos-preview:focus-visible { outline:2px solid var(--color-action); outline-offset:3px; }
#memory-generated .other-photos-checkbox { display:none; }
#memory-generated.is-editing .other-photos-preview { cursor:pointer; }
#memory-generated#memory-generated.is-editing .other-photos-checkbox { display:block; position:absolute; top:10px; right:10px; }
#memory-generated.is-editing .other-photos-card.is-selected { outline:3px solid var(--color-action); outline-offset:-3px; }
#memory-generated .other-photos-actions { position:sticky; top:0; z-index:45; isolation:isolate; display:flex; flex-wrap:nowrap; justify-content:space-between; align-items:center; gap:14px; padding:12px 0; margin:0 0 24px; background:var(--memory-shell-theme-bg,var(--bg,var(--app-color-memory-f7f5eb,#F7F5EB))); }
#memory-generated .other-photos-actions::before { content:""; position:absolute; inset:calc(-1 * env(safe-area-inset-top,0px)) -24px 0; z-index:-1; background:inherit; pointer-events:none; }
#memory-generated .other-photos-destination { display:flex; align-items:center; gap:14px; min-width:0; }
#memory-generated .other-photos-actions[hidden] { display:none!important; }
#memory-generated :is(.other-photos-date,.other-photos-day) { display:flex; align-items:center; gap:14px; font:500 16px/1.4 var(--font-body); }
#memory-generated :is(.other-photos-date input,.other-photos-day select) { min-width:0; height:40px; box-sizing:border-box; border:1px solid var(--color-divider); border-radius:20px; background:var(--control-bg); padding:0 14px; color:var(--color-ink); font:500 16px/1.4 var(--font-body); }
#memory-generated .other-photos-day select { max-width:min(360px,32vw); width:auto; min-width:140px; text-overflow:ellipsis; }
#memory-generated .other-photos-day { min-width:0; max-width:100%; flex:0 1 auto; }
#memory-generated .other-photos-select-all { flex:none; display:flex; align-items:center; gap:8px; font:500 16px/1.4 var(--font-body); cursor:pointer; }
#memory-generated#memory-generated :is(.other-photos-checkbox,.other-photos-select-all input) { box-sizing:border-box; appearance:auto; width:24px; height:24px; min-width:24px; max-width:24px; min-height:24px; padding:0; margin:0; flex:0 0 24px; transform:none; accent-color:var(--color-action); cursor:pointer; }
#memory-generated .other-photos-notes { margin-top:24px; font:400 var(--memory-body-size,20px)/var(--memory-body-leading,32px) var(--font-memory-text); }
@container other-photos (min-width:1000px) { #memory-generated .other-photos-grid { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@container other-photos (max-width:1000px) { #memory-generated .other-photos-destination :is(.other-photos-day,.other-photos-date) { display:grid; gap:6px; } }
@media(min-width:769px) { #memory-generated .memory-layout-horizontal-timeline .other-photos-section { width:clamp(720px,80vw,1280px); flex:0 0 clamp(720px,80vw,1280px); align-self:stretch; height:100%; min-height:0; margin:0; padding:0 0 24px; overflow-y:auto; overscroll-behavior:contain; } }
@media(max-width:768px) {
    #memory-generated .other-photos-section { width:calc(100% - 12px); margin-bottom:48px; }
    #memory-generated .other-photos-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    #memory-generated .other-photos-heading { font-size:24px; }
    #memory-generated .other-photos-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; }
    #memory-generated .other-photos-destination { display:contents; }
    #memory-generated :is(.other-photos-date,.other-photos-day) { min-width:0; display:grid; gap:6px; }
    #memory-generated .other-photos-day select { width:100%; max-width:100%; }
    #memory-generated .other-photos-selection { grid-column:1 / -1; grid-row:3; justify-content:space-between; }
    #memory-generated .other-photos-selection output { text-align:right; }
    #memory-generated .other-photos-selection output:not(:empty)::before { content:none; }
    #memory-generated .other-photos-date { grid-column:1; grid-row:2; }
    #memory-generated [data-other-save] { grid-column:2; grid-row:2; }
    #memory-generated .other-photos-day { grid-column:1 / -1; grid-row:1; }
    #memory-generated .other-photos-section[data-day-id="free-story:unassigned-photos"] .other-photos-actions {
        display:flex;
        flex-wrap:wrap;
    }
}
@layer remembrand-buttons {
    #memory-generated .other-photos-actions > [data-other-save] { align-self:end!important; }
}
