dialog.project-viewer{position:fixed;inset:0;margin:0;padding:64px 80px 58px;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:#101010;color:#d5d5d5;overflow:hidden}
.project-viewer::backdrop{background:#101010}
.project-viewer[open]{display:grid;place-items:center}
.project-viewer figure{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;margin:0;width:100%;height:100%;min-height:0;pointer-events:none}
.project-viewer figure img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100% - 34px);object-fit:contain;pointer-events:auto}
.project-viewer figcaption{font:14px/1.4 Arial,sans-serif;color:#c8c8c8;text-align:center;max-width:70ch}
.project-viewer button{position:absolute;display:grid;place-items:center;width:48px;height:48px;padding:12px;border:0;border-radius:0;background:#101010b3;color:#d5d5d5;cursor:pointer;z-index:1;touch-action:manipulation}
.project-viewer button:hover{color:#fff;background:#303030}
.project-viewer button:focus-visible{outline:2px solid #d5d5d5;outline-offset:3px}
.project-viewer button[hidden]{display:none}
.project-viewer button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.project-viewer-close{top:max(14px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right))}
.project-viewer-prev{left:16px;top:calc(50% - 24px)}
.project-viewer-next{right:16px;top:calc(50% - 24px)}
.project-viewer-count{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;margin:0;font:14px/1.4 Arial,sans-serif;color:#c8c8c8;pointer-events:none}
@media(max-width:650px){dialog.project-viewer{padding:68px 12px 68px}.project-viewer-prev{left:4px}.project-viewer-next{right:4px}.project-viewer button{background:#1010109c}.project-viewer figcaption{padding-inline:16px;font-size:13px}}
