.work-gallery{min-width:0;margin-top:30px;padding-top:23px;border-top:1px solid var(--border)}
.work-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
.work-gallery-heading h3{font-size:10px;letter-spacing:1.4px;margin:0}
.work-gallery-heading h3 span{margin-left:9px;color:var(--muted);font-size:9px;letter-spacing:0}
.work-gallery-heading p{font-size:10px;color:var(--muted);margin:0}
.work-gallery-strip{display:flex;gap:12px;list-style:none;margin:0;padding:5px 5px 12px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c8c4bc transparent}
.work-gallery-strip li{flex:0 0 180px;min-width:0;scroll-snap-align:start}
.work-gallery-thumb{display:block;position:relative;height:112px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--secondary)}
.work-gallery-thumb img{width:100%;height:100%;object-fit:contain;transition:transform .25s cubic-bezier(.22,1,.36,1)}
.work-gallery-thumb:hover img{transform:scale(1.035)}
.work-gallery-number{position:absolute;bottom:7px;left:8px;padding:1px 5px;border-radius:5px;background:#f7f5f0e8;font-size:8px;line-height:1.6}
.work-gallery-expand{position:absolute;bottom:6px;right:7px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#f7f5f0e8}
.work-gallery-expand svg{width:12px;height:12px}
.has-work-gallery-open{overflow:hidden}
.work-gallery-dialog{width:min(1200px,calc(100vw - 40px));max-width:none;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:16px 20px;border:1px solid var(--border);border-radius:20px;background:var(--bg);color:var(--ink);box-shadow:0 24px 100px #17171340;overflow:auto;overscroll-behavior:contain}
.work-gallery-dialog::backdrop{background:#191916b8;backdrop-filter:blur(5px)}
.work-gallery-toolbar{display:flex;align-items:center;gap:16px;min-height:44px;margin-bottom:12px}
.work-gallery-toolbar h2{font-size:13px;margin:0}
.work-gallery-toolbar p{margin:0 0 0 auto;font-size:11px;color:var(--muted);text-align:right}
.work-gallery-close,.work-gallery-bottom button{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--border);border-radius:50%;line-height:1;background:var(--surface);transition:background .2s}
.work-gallery-close{font-size:27px;font-weight:300}
.work-gallery-close:hover,.work-gallery-bottom button:hover{background:var(--accent)}
.work-gallery-figure{margin:0;min-width:0}
.work-gallery-image-wrap{display:grid;place-items:center;min-height:180px;height:min(70vh,800px);height:min(70dvh,800px);border-radius:12px;overflow:hidden;background:var(--secondary)}
.work-gallery-image-wrap img{width:100%;height:100%;min-height:0;object-fit:contain}
.work-gallery-figure figcaption{padding:12px 3px 0;font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.work-gallery-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px}
.work-gallery-bottom button{font-size:20px}
.work-gallery-bottom button:disabled{opacity:.35}
.work-gallery-bottom a{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.work-gallery-strip{gap:10px}.work-gallery-strip li{flex-basis:144px}.work-gallery-thumb{height:90px}.work-gallery-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:10px 12px;border-radius:16px}.work-gallery-image-wrap{height:65vh;height:65dvh}.work-gallery-toolbar{gap:10px;margin-bottom:8px}.work-gallery-toolbar h2{font-size:12px}.work-gallery-toolbar p{font-size:10px}.work-gallery-figure figcaption{font-size:11px}}
@media(prefers-reduced-motion:reduce){.work-gallery-thumb img,.work-gallery-close,.work-gallery-bottom button{transition:none}.work-gallery-thumb:hover img{transform:none}}
