.project-gallery{margin:38px 0 52px;min-width:0;max-width:100%}.project-gallery>h2{margin-top:8px}.project-gallery>.eyebrow{color:var(--accent);font-size:14px}.gallery-rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;border:1px solid var(--line);border-radius:14px;background:#fff;max-width:100%;overscroll-behavior-x:contain}.gallery-slide{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;margin:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center}.gallery-enlarge{display:block;position:relative;background:#e9e5dc;align-self:stretch;color:#fff;min-width:0}.gallery-enlarge img{width:100%;height:530px;object-fit:contain;display:block}.gallery-enlarge>span{position:absolute;bottom:14px;left:14px;padding:6px 12px;border-radius:20px;background:#1c1b19e8;font-size:14px}.gallery-slide figcaption{padding:28px;min-width:0}.gallery-category{display:block;font-size:14px;font-weight:650;color:var(--accent)}.gallery-slide h3{font-size:25px;line-height:1.2;margin:12px 0 16px}.gallery-slide p{font-size:16px;line-height:1.65;margin:0}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.gallery-controls[hidden]{display:none}.gallery-controls button,.gallery-dialog button{font-family:inherit;font-size:15px;font-weight:600;line-height:1.3;border:1px solid var(--line);border-radius:24px;padding:12px 18px;background:#fff;color:var(--ink);cursor:pointer;min-height:44px}.gallery-controls button:disabled{opacity:.4;cursor:default}.gallery-position{font-size:14px;white-space:nowrap;color:var(--muted)}.gallery-dialog{padding:16px;border:0;border-radius:12px;background:#14130f;color:white;max-width:94vw;width:1000px;max-height:94vh}.gallery-dialog::backdrop{background:#000c}.gallery-dialog img{display:block;max-width:100%;height:70vh;object-fit:contain;margin:auto}.gallery-dialog p{font-size:16px;line-height:1.5;max-width:65ch;margin:14px auto}.gallery-dialog .gallery-close{display:block;margin-left:auto;margin-bottom:12px}.envelope-method{margin:40px 0}.envelope-method img{display:block;width:100%;height:auto;border-radius:12px}.envelope-method figcaption{font-size:14px;color:var(--muted);margin:10px 0}.envelope-method ol{padding-left:24px}.envelope-method li{margin:20px 0}.envelope-method li strong{display:block;font-size:20px}.envelope-method details{border-top:1px solid var(--line);padding:16px 0}.envelope-method summary{font-weight:600;cursor:pointer}.envelope-method .source{font-size:14px}
@media(max-width:620px){.gallery-slide{grid-template-columns:1fr}.gallery-enlarge img{height:360px}.gallery-slide figcaption{padding:22px}.gallery-slide h3{font-size:24px}.gallery-controls button{padding:12px 14px}.gallery-dialog img{height:58vh}.gallery-dialog{padding:12px}.gallery-dialog p{font-size:15px}.project-gallery{margin:30px 0 40px}}
@media(prefers-reduced-motion:reduce){.gallery-rail{scroll-behavior:auto}}

.project-gallery h2,.envelope-method h2{scroll-margin-top:180px}.gallery-rail{scroll-margin-top:170px}
