:root {
  --bg:#090a0c;
  --panel:#111318;
  --panel-2:#171a20;
  --ink:#f5f1e9;
  --muted:#9b9da3;
  --accent:#ff5b3d;
  --line:rgba(255,255,255,.12);
  --shadow:0 24px 70px rgba(0,0,0,.46);
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(circle at 82% 4%,rgba(255,91,61,.10),transparent 27rem),radial-gradient(circle at 8% 42%,rgba(69,93,145,.10),transparent 31rem),var(--bg);font-family:"Fredoka",system-ui,sans-serif}
button{font:inherit;cursor:pointer}
.noise{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}
.page-shell{width:min(1520px,100%);margin:auto;padding:28px clamp(18px,4.5vw,72px) 42px}
.site-header{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;min-height:345px;padding:44px 0 58px;border-bottom:1px solid var(--line)}
.header-copy{max-width:900px}.eyebrow,.section-kicker{margin:0 0 12px;color:var(--accent);font-size:.73rem;font-weight:800;letter-spacing:.19em}.site-header h1,.section-heading-row h2{font-family:"Baloo 2","Fredoka",system-ui,sans-serif;font-weight:700}.site-header h1{margin:0 0 20px;font-size:clamp(4.5rem,10vw,8.7rem);line-height:.78;letter-spacing:-.055em}.subtitle{max-width:720px;margin:0;color:var(--muted);font-size:clamp(1rem,1.8vw,1.25rem)}
.header-stamp{width:145px;aspect-ratio:1;display:grid;place-content:center;text-align:center;border:1px solid var(--accent);border-radius:50%;transform:rotate(8deg);color:var(--accent);flex:0 0 auto}.header-stamp span{font-family:"Baloo 2";font-size:2.2rem;line-height:1}.header-stamp small{margin-top:6px;font-size:.62rem;font-weight:800;letter-spacing:.16em}
.gallery-section{padding-top:66px}.section-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.section-heading-row h2{margin:0;font-size:clamp(2.7rem,5vw,5.2rem);line-height:.94}.memory-count,.filter-status{margin:0;color:var(--muted);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}
.filter-wrap{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:32px}.filter-carousel{display:grid;grid-template-columns:42px minmax(0,auto) 42px;align-items:center;gap:10px;max-width:min(860px,100%)}.filter-viewport{overflow:hidden;scroll-behavior:smooth;scrollbar-width:none}.filter-viewport::-webkit-scrollbar{display:none}.filter-bar{display:flex;gap:9px;width:max-content}.filter-chip,.filter-arrow{border:1px solid var(--line);background:rgba(17,19,24,.86);color:var(--muted)}.filter-chip{padding:10px 17px;border-radius:999px;text-transform:uppercase;font-size:.72rem;font-weight:700;letter-spacing:.06em;white-space:nowrap;transition:.2s ease}.filter-chip:hover{color:var(--ink);border-color:rgba(255,255,255,.25)}.filter-chip.active{background:var(--accent);border-color:var(--accent);color:#fff}.filter-arrow{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;transition:.2s ease}.filter-arrow:hover{border-color:var(--accent);color:var(--ink);transform:translateY(-1px)}
.chevron{width:9px;height:9px;border-top:2px solid currentColor;border-right:2px solid currentColor}.chevron-left{transform:rotate(-135deg)}.chevron-right{transform:rotate(45deg)}
.gallery-sections{display:grid;gap:58px}.memory-group{display:grid;gap:18px}.group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:12px}.group-heading h3{margin:0;font-family:"Baloo 2";font-size:clamp(1.9rem,3vw,2.8rem);font-weight:600}.group-heading span{color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.09em}
.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:dense;gap:12px}.gallery-item{position:relative;min-width:0;aspect-ratio:1/1;border:0;padding:0;overflow:hidden;border-radius:16px;background:var(--panel);color:var(--ink);box-shadow:0 12px 30px rgba(0,0,0,.22);isolation:isolate}.gallery-item.landscape{grid-column:span 2;aspect-ratio:16/10}.gallery-item.portrait{aspect-ratio:4/5}.gallery-item.wide{grid-column:span 2;aspect-ratio:16/9}.gallery-item img,.gallery-item video{display:block;width:100%;height:100%;object-fit:cover;transition:transform .42s ease,filter .42s ease}.gallery-item:hover img,.gallery-item:hover video{transform:scale(1.035);filter:brightness(.76)}.gallery-overlay{position:absolute;z-index:2;inset:auto 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:52px 16px 15px;background:linear-gradient(transparent,rgba(0,0,0,.82));opacity:0;transform:translateY(5px);transition:.25s ease;text-align:left}.gallery-item:hover .gallery-overlay,.gallery-item:focus-visible .gallery-overlay{opacity:1;transform:none}.gallery-overlay strong{font-size:.95rem}.gallery-overlay>span{color:rgba(255,255,255,.72);font-size:.72rem}.item-tags,.viewer-caption-tags{display:flex!important;flex-wrap:wrap;gap:5px;margin-top:3px}.item-tag{display:inline-flex!important;align-items:center;width:max-content;padding:3px 7px;border:1px solid rgba(255,255,255,.25);border-radius:999px;color:#fff!important;font-size:.57rem!important;text-transform:uppercase;font-weight:700;letter-spacing:.03em}.video-mark{position:absolute;z-index:3;top:12px;right:12px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(0,0,0,.58);backdrop-filter:blur(7px);font-size:.72rem}.gallery-empty{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:start;padding:36px;border:1px dashed rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.025)}.empty-number{font-family:"Baloo 2";font-size:3rem;color:var(--accent);line-height:1}.gallery-empty h3{font-family:"Baloo 2";font-size:1.7rem;margin:0 0 6px}.gallery-empty p{margin:0;color:var(--muted);line-height:1.6}
footer{display:flex;justify-content:space-between;gap:20px;margin-top:82px;padding-top:22px;border-top:1px solid var(--line);color:var(--muted);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.viewer-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:clamp(18px,3vw,38px) clamp(18px,4vw,66px) clamp(22px,3vw,42px);border:0;background:rgba(3,4,6,.97);color:#fff;overflow:hidden}.viewer-dialog::backdrop{background:#000}.viewer-dialog[open]{display:grid;grid-template-columns:56px minmax(0,1fr) 56px;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:12px 18px}.viewer-stage{grid-column:2;grid-row:1;min-width:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.viewer-stage img,.viewer-stage video{display:block;max-width:100%;max-height:calc(100dvh - 150px);width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 20px 80px rgba(0,0,0,.55)}.viewer-stage video{width:min(1200px,100%)}.viewer-close,.viewer-nav{border:1px solid rgba(255,255,255,.28);background:rgba(8,9,11,.58);color:#fff;backdrop-filter:blur(8px);border-radius:50%;display:grid;place-items:center}.viewer-close{position:fixed;z-index:6;right:18px;top:18px;width:46px;height:46px;font-size:1.8rem;line-height:1}.viewer-nav{width:46px;height:46px}.viewer-prev{grid-column:1;grid-row:1}.viewer-next{grid-column:3;grid-row:1}.viewer-caption{grid-column:2;grid-row:2;min-height:50px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px 13px;text-align:center;color:rgba(255,255,255,.58);font-size:.8rem}.viewer-caption strong{color:#fff;font-size:1rem}.viewer-caption-tags{justify-content:center;margin:0}
@media(max-width:1050px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.site-header{min-height:300px}.filter-wrap{align-items:flex-start;flex-direction:column}.filter-carousel{width:100%;max-width:none}.filter-status{padding-left:52px}}
@media(max-width:760px){.page-shell{padding-inline:15px}.site-header{min-height:auto;padding:44px 0 42px;align-items:flex-start}.header-stamp{display:none}.site-header h1{font-size:clamp(4rem,22vw,6rem)}.gallery-section{padding-top:45px}.section-heading-row{align-items:flex-start}.memory-count{padding-top:12px}.filter-carousel{grid-template-columns:38px minmax(0,1fr) 38px;gap:7px}.filter-arrow{width:38px;height:38px}.filter-status{padding-left:45px}.gallery-sections{gap:42px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-item,.gallery-item.portrait{aspect-ratio:4/5}.gallery-item.landscape,.gallery-item.wide{grid-column:span 2;aspect-ratio:16/10}.gallery-overlay{opacity:1;transform:none;padding:44px 11px 10px}.gallery-empty{grid-template-columns:1fr;padding:25px}.empty-number{font-size:2.3rem}footer{flex-direction:column;margin-top:55px}.viewer-dialog{padding:54px 8px 14px}.viewer-dialog[open]{grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:minmax(0,1fr) auto;gap:8px}.viewer-nav{width:38px;height:38px}.viewer-close{width:42px;height:42px;right:11px;top:11px}.viewer-stage img,.viewer-stage video{max-height:calc(100dvh - 160px)}.viewer-caption{font-size:.72rem;gap:5px 9px}}
@media(max-width:440px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-item,.gallery-item.portrait{aspect-ratio:1/1}.gallery-item.landscape,.gallery-item.wide{grid-column:span 2;aspect-ratio:16/10}.section-heading-row h2{font-size:2.7rem}}

/* Ensure hidden fallback/error states stay hidden even though .gallery-empty uses display:grid */
[hidden]{display:none !important;}
