.filters,.playlist,.video-list,.filmstrip{display:flex;gap:10px;flex-wrap:wrap}.filters{margin-bottom:24px}.filters button,.motion-control{border:1px solid #beaa95;border-radius:24px;padding:8px 16px;font:.91rem/1.5 Georgia}.filters [aria-pressed=true]{background:#58273a;color:#fff4e4;border-color:#58273a}.gallery-grid{columns:3;column-gap:20px}.photo-card{padding:7px 7px 12px;background:#fff8ea;color:#4a2c2c;box-shadow:0 3px 13px #3f242621;display:inline-block;break-inside:avoid;width:100%;margin:0 0 20px}.photo-card img{width:100%;aspect-ratio:1.5;object-fit:cover}.photo-card:nth-child(3n+1) img{aspect-ratio:1.1}.photo-card span{display:block;padding-top:8px;font-style:italic}.photo-card:hover img{filter:brightness(1.06)}.filmstrip,.video-list{flex-wrap:nowrap;overflow:auto;padding:10px 3px;scroll-snap-type:x proximity}.filmstrip button{flex:0 0 99px;padding:0;scroll-snap-align:start}.filmstrip img{width:100%;aspect-ratio:1.65;object-fit:cover}.empty{padding:25px 0}.lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;border:0;margin:0;background:#1a1019;color:var(--ivory);padding:20px}.lightbox[open]{display:flex;flex-direction:column;align-items:center;justify-content:space-between}.light-tools,.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%}.light-tools{color:#d8c19c}.lightbox img{max-height:calc(100dvh - 170px);min-height:0;max-width:96%;object-fit:contain}.light-caption{gap:20px;justify-content:center;text-align:center}.round{border:1px solid currentColor;border-radius:50%;width:44px;height:44px;flex:none;justify-content:center;padding:9px}.round:hover{background:#b7956a24}.sheet,.letter-dialog{background:#f6ead9;color:#472632;border:1px solid #b89d76;padding:32px;width:min(720px,92vw);max-height:85dvh}.sheet::backdrop,.letter-dialog::backdrop{background:#160d17bb}.sheet h2,.letter-dialog h2{font-size:2.5rem}.sheet nav{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin:20px 0}.sheet nav a{padding:10px 0;text-decoration:none;border-bottom:1px solid #d7c6b3}.sheet nav a:hover{text-decoration:underline}.sheet .round,.letter-dialog .round{width:40px;height:40px}.letter-dialog{max-width:560px;box-shadow:inset 0 0 0 8px #edddc6}.letter-dialog[open]{animation:letterIn .35s ease-out}.letter-dialog .eyebrow{color:#805637}.letter-dialog h2{margin:12px 0 18px}.letter-dialog p{font-size:1.18rem;white-space:pre-line}.signature{display:block;font:italic 1.5rem var(--serif);margin:24px 0 8px}.sheet-head>svg{width:32px;height:32px;color:#936b42}
/* PHASE03-G MEMORY GALLERY START */
#gallery.memory-gallery{background:radial-gradient(ellipse at 14% 10%,#74314766,transparent 44%),radial-gradient(ellipse at 89% 85%,#65354666,transparent 50%),linear-gradient(145deg,#23131f,#160f1a 58%,#321929);color:#f5e5d8;overflow:hidden;padding-block:clamp(55px,8vw,110px)}
#gallery .section-title{text-align:center}#gallery .section-title .eyebrow{color:#e6bd80;letter-spacing:.18em}#gallery .section-title h2{color:#ffebc9}#gallery .section-title p{color:#eac3ce;font-style:italic}
#gallery .mg-note{text-align:center;color:#dcbac4;max-width:710px;margin:-6px auto 26px;line-height:1.6;font-size:.95rem}#gallery .filters{justify-content:center;gap:8px;margin:0 auto 15px}#gallery .filters button{background:#402333;color:#f5dccc;border:1px solid #b68a675c;min-height:42px;padding:8px 13px;transition:background .2s,border .2s}#gallery .filters button[aria-pressed=true]{background:#e5bb7e;color:#321c23;border-color:#f2d9ac}#gallery .filters button:hover{border-color:#edc78e}#gallery button:focus-visible,#lightbox.mg-lightbox button:focus-visible{outline:2px solid #ffdf9e;outline-offset:4px}#gallery-status{text-align:center;font: .76rem/1.5 Arial,sans-serif;color:#e3ba86;letter-spacing:.06em;margin:10px 0 24px}
#gallery .mg-feature{position:relative;display:block;border:1px solid #d1a46f;border-radius:18px;overflow:hidden;padding:0;box-shadow:0 15px 45px #07040966;margin:0 0 26px;background:#302032;color:#fff0d7;isolation:isolate}#gallery .mg-feature img{width:100%;aspect-ratio:2.75;min-height:240px;max-height:460px;object-fit:cover;transition:transform .8s ease;display:block}#gallery .mg-feature:hover img{transform:scale(1.035)}#gallery .mg-feature-copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px;padding:clamp(20px,4vw,44px);background:linear-gradient(0deg,#150b15eb,transparent 90%);text-align:left}#gallery .mg-feature-copy small{color:#f0c990;font: .68rem/1.4 Arial,sans-serif;letter-spacing:.15em}#gallery .mg-feature-copy strong{font:clamp(1.65rem,4vw,3.1rem)/1.1 var(--serif,Georgia)}#gallery .mg-feature-copy em{font-size:clamp(.9rem,1.8vw,1.15rem)}#gallery .mg-feature-copy .mg-feature-action{position:static;background:none;padding:0;color:#f7d6a0;font: .8rem/1.5 Arial,sans-serif}
#gallery .gallery-grid{columns:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2.2vw,24px)}#gallery .mg-card{display:flex;min-width:0;flex-direction:column;align-items:stretch;text-align:left;margin:0;padding:8px 8px 16px;border:1px solid #ba8c6266;border-radius:13px;background:linear-gradient(145deg,#533043,#321e2d);color:#f6e5d6;box-shadow:0 7px 23px #0b071040;transition:transform .25s ease,border-color .25s ease;animation:mg-in .55s ease both}#gallery .mg-card:hover{transform:translateY(-4px);border-color:#edc78e}#gallery .mg-picture{position:relative;border-radius:8px;overflow:hidden;border:1px solid #bf9861;background:#1a1220;aspect-ratio:4/3}#gallery .mg-card img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;display:block;transition:transform .65s ease}#gallery .mg-card:hover img{transform:scale(1.04)}#gallery .mg-card span{padding:0;font-style:normal}#gallery .mg-card .mg-expand{position:absolute;right:8px;bottom:8px;border-radius:50%;background:#21121bc9;color:#f4d49e;width:30px;height:30px;display:grid;place-items:center}#gallery .mg-card .mg-tag{font: .68rem/1.5 Arial,sans-serif;color:#e9b980;margin:12px 7px 4px;text-transform:uppercase;letter-spacing:.09em}#gallery .mg-caption{font:clamp(1rem,2vw,1.25rem)/1.3 var(--serif,Georgia);margin:0 7px;overflow-wrap:anywhere}#gallery .mg-album{color:#dab2c1;font-size:.78rem;margin:7px 7px 0}#gallery .empty{grid-column:1/-1;text-align:center}#gallery #filmstrip[hidden]{display:none}#gallery .mg-quote{text-align:center;color:#f0cbd5;font-style:italic;margin:clamp(30px,5vw,60px) auto 0;line-height:1.7}#gallery .mg-quote b{display:block;color:#e7b879;font-size:1.6rem;margin-bottom:6px}
#lightbox.mg-lightbox{background:radial-gradient(ellipse at 50% 45%,#41273a,#140e18 70%);color:#fae5d5;inset:0;box-sizing:border-box;padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}#lightbox.mg-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px;justify-items:center;align-items:center}#lightbox.mg-lightbox #light-img{max-width:100%;width:auto;height:auto;max-height:100%;min-height:0;object-fit:contain;align-self:center;justify-self:center;border:1px solid #d2ab7666;border-radius:8px;box-shadow:0 0 28px #0005}#lightbox .light-caption{display:flex;gap:10px;width:100%;max-width:760px;justify-content:space-between}#light-caption{min-width:0;overflow-wrap:anywhere;font-size:clamp(.88rem,2vw,1.12rem)}#lightbox .mg-view-strip{display:flex;gap:8px;max-width:100%;overflow-x:auto;padding:4px;scrollbar-width:thin;justify-self:center}#lightbox .mg-view-strip button{flex:0 0 64px;padding:2px;border:1px solid transparent;border-radius:5px}#lightbox .mg-view-strip button[aria-current=true]{border-color:#f2c584}#lightbox .mg-view-strip img{width:60px;height:46px;max-width:none;object-fit:cover;display:block;border-radius:3px}#lightbox.mg-single .mg-view-strip{display:none}#lightbox .round:disabled{opacity:.3;cursor:default}#lightbox .round{min-width:44px;min-height:44px}
@keyframes mg-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){#gallery .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#gallery .mg-feature img{aspect-ratio:1.8}}@media(max-width:390px){#gallery .gallery-grid{gap:10px}#gallery .mg-card{padding:5px 5px 12px}#gallery .mg-card .mg-tag{font-size:.59rem;margin-inline:3px}#gallery .mg-caption,#gallery .mg-album{margin-inline:3px}#gallery .mg-feature img{aspect-ratio:1.25}#gallery .filters button{font-size:.77rem;padding:6px 9px}}@media(prefers-reduced-motion:reduce){#gallery .mg-card,#gallery .mg-card img,#gallery .mg-feature img{animation:none;transition:none}}
/* PHASE03-G MEMORY GALLERY END */
