.project-gallery{position:fixed;inset:0;width:min(960px,calc(100vw - 64px));max-width:none;height:min(860px,86dvh);max-height:calc(100dvh - 48px);margin:auto;padding:16px 24px;border:0;background:#080808;color:#fff;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:300;box-sizing:border-box;overflow:hidden}
.project-gallery[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}.project-gallery::backdrop{background:rgba(0,0,0,.8)}.gallery-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.gallery-label,.gallery-count{font-size:14px!important;font-weight:300}.project-gallery button{font-family:inherit;font-size:14px;font-weight:300;color:#fff;background:none;border:0;padding:12px;cursor:pointer;line-height:1}.project-gallery button:hover{color:#ff9d00}.project-gallery button:focus-visible{outline:1px solid #ff9d00;outline-offset:3px}.project-gallery button:disabled{opacity:.25;cursor:default}.gallery-stage{min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y}.gallery-stage img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;user-select:none}.gallery-controls{display:flex;align-items:center;justify-content:center;gap:32px}.gallery-controls button{font-size:28px;min-width:48px;min-height:44px}@media(max-width:640px){.project-gallery{width:calc(100vw - 24px);height:82dvh;max-height:calc(100dvh - 32px);padding:12px;gap:12px}.gallery-controls{padding-bottom:env(safe-area-inset-bottom)}}
