@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');
:root { color-scheme: dark; --bg:#121512; --surface:#1c211c; --text:#efeee6; --muted:#a7afa3; --accent:#c4d5a4; --line:#353d32; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--text); font-family:'DM Sans',Arial,sans-serif; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; }
button:focus-visible,a:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.site-header,main,footer { width:min(1280px,calc(100% - 96px)); margin-inline:auto; }
.site-header { min-height:96px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.wordmark { font-size:12px; letter-spacing:.12em; font-weight:700; }
.wordmark span { color:var(--muted); font-weight:400; }
.back-link { color:var(--muted); font-size:13px; }
.back-link span { margin-left:12px; color:var(--accent); }
.intro { padding:48px 0 0; }
.eyebrow { color:var(--accent); font-size:11px; letter-spacing:.2em; font-weight:600; }
.eyebrow span { font-size:8px; margin-right:10px; }
h1 { font-family:'Playfair Display',Georgia,serif; font-weight:500; font-size:clamp(64px,9vw,100px); line-height:1.1; letter-spacing:-.05em; margin:20px 0; }
h1 em { color:var(--accent); font-weight:500; }
.description { color:var(--muted); font-size:17px; line-height:1.8; max-width:470px; margin:0 0 40px; }
.collection-label { display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); padding-bottom:20px; font-size:10px; letter-spacing:.16em; }
#photo-count { color:var(--muted); }
.collection { padding:28px 0 72px; }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.filters button { border:1px solid var(--line); border-radius:30px; color:var(--muted); background:transparent; padding:9px 17px; font-size:12px; }
.filters button[aria-pressed=true] { background:var(--accent); border-color:var(--accent); color:var(--bg); }
.gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 24px; }
.photo { min-width:0; margin:0; }
.photo-button { display:block; width:100%; border:0; padding:0; background:var(--surface); overflow:hidden; position:relative; }
.photo-button img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .35s ease; }
.photo-button:hover img { transform:scale(1.035); }
.photo-button::after { content:'↗'; position:absolute; bottom:14px; right:14px; border-radius:50%; width:34px; height:34px; display:grid; place-items:center; background:#121512b3; color:white; }
.photo figcaption { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-top:13px; }
.photo-title { font-size:14px; font-weight:500; }
.photo-category { font-size:10px; color:var(--muted); text-align:right; }
.empty-state { border:1px dashed var(--line); padding:56px 24px; text-align:center; background:linear-gradient(140deg,#20281b70,transparent); }
.empty-icon { color:var(--accent); font-size:46px; }
.empty-state h2 { font-family:'Playfair Display',Georgia,serif; font-weight:500; font-size:30px; margin:16px 0; }
.empty-state p { color:var(--muted); max-width:400px; line-height:1.8; margin:0 auto; font-size:14px; }
footer { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding:24px 0 32px; color:var(--muted); font-size:11px; }
dialog { border:1px solid var(--line); background:#101310; color:var(--text); width:min(1200px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:0; }
dialog::backdrop { background:#050705ed; }
body:has(dialog[open]) { overflow:hidden; }
.viewer-toolbar { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; font-size:12px; color:var(--muted); gap:16px; }
.viewer-actions { display:flex; gap:20px; align-items:center; }
.viewer-actions button,.step { border:1px solid var(--line); background:var(--surface); color:var(--text); width:44px; height:44px; border-radius:50%; }
.viewer-actions a { text-decoration:underline; text-underline-offset:4px; }
.viewer-stage { position:relative; display:flex; justify-content:center; min-height:100px; }
#viewer-image { display:block; max-width:100%; height:min(65dvh,800px); object-fit:contain; }
.step { position:absolute; top:50%; transform:translateY(-50%); background:#121512cc; font-size:22px; }
.previous { left:12px; }.next { right:12px; }
.viewer-caption { padding:20px 28px 24px; }
.viewer-caption h2 { font-size:20px; font-weight:500; margin:0 0 8px; }
.viewer-caption p { color:var(--muted); font-size:14px; line-height:1.6; margin:0 0 10px; }
#viewer-category { font-size:10px; color:var(--accent); letter-spacing:.1em; text-transform:uppercase; }
@media(min-width:1000px) { .photo:nth-child(3n + 2) { padding-top:48px; } }
@media(max-width:760px) { .site-header,main,footer { width:calc(100% - 40px); } .site-header { min-height:76px; } .wordmark span { display:block; margin-top:6px; } .back-link { font-size:11px; } .intro { padding-top:52px; } .description { font-size:15px; margin-bottom:40px; } .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 14px; } .photo figcaption { display:block; } .photo-category { display:block; text-align:left; margin-top:5px; } footer { flex-direction:column; gap:8px; } }
@media(max-width:400px) { .gallery { grid-template-columns:1fr; } .collection-label { font-size:9px; letter-spacing:.08em; } .viewer-toolbar { padding:10px; } .viewer-actions { gap:10px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none !important; } }
