.pan__foot{flex-wrap:wrap;gap:14px}.portfolio-open{cursor:pointer}
.project-gallery{width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:0;border-radius:24px;background:#041d56;color:#fff;overflow:auto}
.project-gallery::backdrop{background:rgba(1,8,45,.85)}
.project-gallery__head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.project-gallery__head h2{font-size:clamp(18px,3vw,28px)}
.project-gallery button{width:46px;height:46px;border:1px solid #adc9e1;border-radius:50%;background:transparent;color:white;font-size:24px;cursor:pointer;flex:none}
.project-gallery button:focus-visible{outline:3px solid #ade1fb;outline-offset:3px}.project-gallery figure{margin:0}.project-gallery figure img{display:block;width:100%;height:min(65dvh,650px);object-fit:contain;border-radius:12px}
.project-gallery figcaption{font-size:14px;line-height:1.5;text-align:center;margin-top:16px;min-height:21px}.project-gallery__controls{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:16px}
@media(max-width:640px){.project-gallery{padding:16px}.project-gallery figure img{height:55dvh}.pan__foot .portfolio-open{font-size:13px}}
