.project-gallery{margin:3rem 0}.project-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.project-gallery-heading h2{font-size:clamp(1.4rem,3vw,2.2rem);margin:0}.project-gallery-controls{display:flex;align-items:center;gap:14px}.project-gallery-controls[hidden]{display:none}.project-gallery-controls button{width:44px;height:44px;border:1px solid #ffffff40;border-radius:50%;color:inherit;background:transparent;cursor:pointer}.project-gallery-controls button:disabled{opacity:.3;cursor:default}.project-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin}.project-gallery-track>.case-figure{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start}.project-gallery-track .case-figure a{display:block;background:#101920}.project-gallery-track .case-figure img{width:100%;height:clamp(220px,52vw,650px);object-fit:contain}.project-gallery-track:focus-visible,.project-gallery-controls button:focus-visible{outline:2px solid #c7f558;outline-offset:3px}.project-rich-content{min-width:0;overflow-wrap:anywhere}.project-rich-content img{max-width:100%;height:auto;border-radius:8px}.project-rich-content h2{font-size:clamp(1.6rem,3vw,2.6rem)}.project-rich-content h3{font-size:clamp(1.3rem,2.4vw,2rem)}.project-rich-content p,.project-rich-content li{line-height:1.8}.project-rich-content ul,.project-rich-content ol{padding-left:1.5em}.project-rich-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1.5rem 0}.project-rich-content td,.project-rich-content th{padding:12px;border:1px solid #ffffff30}.project-rich-content th{background:#19262e}.project-rich-content blockquote{margin:1.5rem 0;padding-left:1.25rem;border-left:3px solid #c7f558}.project-rich-content pre{overflow-x:auto;padding:20px;background:#142029;border-radius:8px}.project-rich-content a{text-decoration:underline;text-underline-offset:3px}.project-rich-content hr{border:0;border-top:1px solid #ffffff30;margin:2rem 0}@media(max-width:600px){.project-gallery-heading{align-items:start;flex-direction:column}}

.project-image-viewer{width:min(1400px,96vw);max-width:96vw;max-height:96vh;padding:20px;border:1px solid #536271;border-radius:12px;background:#101820;color:#f4f7ee}.project-image-viewer::backdrop{background:#04080def}.project-image-viewer img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:16px auto}.project-image-viewer p{text-align:center}.project-image-viewer button{display:block;margin-left:auto;border:1px solid #718369;border-radius:8px;padding:12px 18px;background:#192a27;color:inherit;cursor:pointer}.project-image-viewer button:focus-visible{outline:2px solid #d1f45c;outline-offset:3px}
