.project-image-link{display:block;position:relative;aspect-ratio:16/10;overflow:hidden;background:#111820;cursor:zoom-in;text-decoration:none}
.project-image-link:focus-visible{outline:3px solid #e6b850;outline-offset:-3px}
.project-image-link>picture{display:block;width:100%;height:100%}
.project-image-link .project-media-preview{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;background:#111820}
.project-image-hint{position:absolute;right:12px;bottom:12px;padding:6px 11px;border-radius:6px;background:rgba(0,0,0,.72);color:#fff;font:600 13px/1.4 sans-serif;pointer-events:none}
html.project-image-open{overflow:hidden}
.project-image-viewer{box-sizing:border-box;width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:16px;border:1px solid #3c4550;border-radius:14px;background:#111820;color:#fff;box-shadow:0 20px 80px #0008}
.project-image-viewer[open]{display:grid;gap:12px}
.project-image-viewer::backdrop{background:rgba(0,0,0,.87)}
.project-image-toolbar{display:flex;gap:16px;align-items:center;min-width:0}
.project-image-toolbar strong{flex:1;min-width:0;font:600 16px/1.4 sans-serif;overflow-wrap:anywhere;color:#fff}
.project-image-toolbar a{flex-shrink:0;color:#f5d481;text-decoration:underline;font:14px/1.4 sans-serif}
.project-image-viewer .project-image-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;margin:0;padding:0;border:1px solid #56616e;border-radius:8px;background:#26303b;color:#fff;font:28px/1 sans-serif;cursor:pointer}
.project-image-viewer .project-image-close:focus-visible,.project-image-toolbar a:focus-visible{outline:3px solid #f5d481;outline-offset:3px}
.project-image-viewer .project-image-full{display:block;width:100%;height:auto;min-height:0;max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);object-fit:contain;background:#080d12}
.project-image-description{max-height:70px;overflow:auto;margin:0;color:#d3dce5;font:14px/1.6 sans-serif;overflow-wrap:anywhere}
.project-image-description[hidden]{display:none}
@media(max-width:600px){.project-image-viewer{padding:10px;width:calc(100vw - 16px)}.project-image-toolbar{gap:10px}.project-image-toolbar strong{font-size:14px}.project-image-toolbar a{max-width:80px;font-size:12px}.project-image-viewer .project-image-full{max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px)}}
