.fab-project-gallery {width:min(1240px,calc(100% - 32px));margin:clamp(36px,6vw,84px) auto;color:#17324f;scroll-margin-top:120px}
.fab-project-gallery--home {width:100%;margin:32px auto 0}
.fab-project-gallery h2 {margin:0 0 12px;font-size:clamp(26px,4vw,44px);line-height:1.12;letter-spacing:-.025em}
.fab-project-gallery p {margin:0;line-height:1.55;color:#425b73}
.fab-project-list {display:grid;gap:18px;margin-top:20px}
.fab-project-list--covers {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.fab-project {min-width:0;padding:clamp(13px,2.5vw,24px);border:1px solid #dbe5ee;border-radius:16px;background:#f5f9fc;scroll-margin-top:120px}
.fab-project h3 {margin:0 0 7px;font-size:clamp(17px,2vw,23px);line-height:1.25;color:#17324f}
.fab-project a {color:#14518a;text-underline-offset:3px}
.fab-project-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin-top:14px}
.fab-project-grid figure {margin:0;min-width:0}
.fab-project-grid figure a,.fab-project-cover {display:block;border-radius:10px;overflow:hidden;background:#e1e8ef}
.fab-project img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.fab-project-grid img {object-position:center 47%}
.fab-project-cover img {object-position:center 45%}
.fab-project-cover + h3 {margin-top:12px}
.fab-project-grid figcaption {font-size:14px;line-height:1.35;color:#344e67;margin-top:6px}
.fab-project details {margin-top:10px}
.fab-project summary {cursor:pointer;padding:10px 0;color:#14518a;font-weight:650}
.fab-project summary:focus-visible,.fab-project a:focus-visible,.fab-project-dialog button:focus-visible {outline:2px solid #1471bf;outline-offset:3px}
.fab-project-service {display:inline-block;margin-top:12px;font-size:14px;font-weight:650}
.fab-project-dialog {width:min(96vw,1050px);max-width:none;max-height:96vh;padding:12px;margin:auto;border:0;border-radius:14px;background:#0c1a2b;color:#fff;box-sizing:border-box;overflow:auto}
.fab-project-dialog::backdrop {background:rgb(4 12 25 / 84%)}
.fab-project-dialog figure {margin:0}
.fab-project-dialog img {display:block;width:auto;max-width:100%;max-height:calc(86dvh - 85px);margin:0 auto;object-fit:contain}
.fab-project-dialog figcaption {padding:9px 4px;text-align:center;font-size:14px;line-height:1.35}
.fab-project-dialog-controls {display:flex;gap:6px;justify-content:space-between;align-items:center}
.fab-project-dialog button {min-height:44px;padding:6px 12px;border:1px solid #60758c;border-radius:8px;background:#182e46;color:#fff;font:inherit;cursor:pointer}
.fab-project-dialog button[hidden] {display:none}
@media(max-width:520px){.fab-project-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fab-project-grid figcaption{font-size:12px}.fab-project-dialog {width:calc(100% - 12px)}}
.fab-project-grid--single {display:block;max-width:430px}
.fab-project-grid--pair {grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}

.fab-project-gallery--flat .fab-project-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(10px,1.6vw,20px);
  margin-top: 22px;
}
.fab-project-gallery--flat figure {margin:0;min-width:0}
.fab-project-gallery--flat img,.fab-editorial img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center 46%;
}
.fab-editorial {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);
  align-items:center;
  gap:clamp(16px,3vw,38px);
  margin:clamp(18px,3vw,32px) 0 0;
  padding:clamp(14px,2vw,25px);
  border:1px solid #dbe5ee;
  border-radius:16px;
  background:#f5f9fc;
  color:#17324f;
}
.fab-editorial h3 {margin:0 0 8px;font-size:clamp(17px,2vw,24px);line-height:1.25;color:#17324f}
.fab-editorial p {margin:0;color:#425b73;line-height:1.55}
.fab-editorial .fab-project-grid {margin:0;gap:10px}
.fab-editorial a:focus-visible,.fab-project-gallery--flat a:focus-visible {outline:2px solid #1471bf;outline-offset:3px}
@media(max-width:960px){.fab-project-gallery--flat .fab-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.fab-editorial{grid-template-columns:1fr}.fab-project-gallery--flat .fab-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

