.that-portfolio-shell{max-width:1200px;margin:auto;padding:60px 28px;text-align:center}
.that-portfolio-shell h1{font-size:clamp(32px,5vw,56px);line-height:1.2;color:#102a43}
.that-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;text-align:start;margin:44px 0 24px}
.that-gallery-grid figure{margin:0}.that-gallery-open{display:block;position:relative;overflow:hidden;border-radius:12px;background:#eee9e4;aspect-ratio:1}
.that-gallery-open img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.that-gallery-open:hover img{transform:scale(1.035)}
.that-gallery-open span{position:absolute;inset-inline-end:14px;bottom:14px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#102a43;color:white;font-size:22px}
.that-gallery-grid figcaption{padding:12px 2px;font-size:15px;color:#102a43}.that-gallery-source{font-size:14px;color:#606a73}
.that-gallery-dialog{width:min(1100px,96vw);max-width:96vw;padding:52px 14px 16px;border:0;border-radius:12px;background:#102a43;color:#fff;max-height:94vh}
.that-gallery-dialog::backdrop{background:rgba(6,16,26,.88)}.that-gallery-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;direction:ltr}
.that-gallery-stage img{max-height:72vh;max-width:100%;width:auto;height:auto;object-fit:contain;margin:auto}.that-gallery-dialog button{min-width:44px;min-height:44px;padding:0;border:1px solid #8795a0;border-radius:50%;background:#183b56;color:#fff;font-size:30px;cursor:pointer}
.that-gallery-dialog .that-gallery-close{position:absolute;top:6px;right:12px;left:auto;transform:none;margin:0}.that-gallery-caption{margin:14px 0 0;text-align:center;color:#fff}
html.that-gallery-is-open{overflow:hidden}@media(max-width:767px){.that-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}.that-portfolio-shell{padding:36px 16px}.that-gallery-stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:4px}.that-gallery-stage button{min-width:36px;min-height:44px}.that-gallery-dialog{padding-inline:6px}.that-gallery-grid figcaption{font-size:13px}.that-gallery-source{font-size:13px}}
@media(prefers-reduced-motion:reduce){.that-gallery-open img{transition:none}}
