/* MARA 12.1 — shared image treatment for static pages and WordPress. */
/* Section scroll margins already account for the sticky header. */
html{scroll-padding-top:0}
.image-filter-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.projectnav{align-items:stretch}
.projectnav a{display:grid;grid-template-rows:auto 1fr;min-height:0;background:#142521}
.projectnav a img,.projectnav a[data-tech=true] img{
  display:block;width:100%;height:auto;aspect-ratio:16/10;
  object-fit:cover;object-position:50% 50%;background:#142824;
  padding:0;border:0;border-radius:0;
}
.projectnav a span{min-height:82px;padding:12px 11px 8px}
.projectnav a b{min-height:4.05em;margin-bottom:8px;line-height:1.35}
.projectnav a[data-project="image2bim"]{isolation:isolate}
.projectnav a[data-project="image2bim"] img{
  object-fit:contain;background:transparent;filter:url(#mara-diagram-ink);
}
.projectnav a[data-project="crisis-to-structure"] img{clip-path:inset(0 0 .45% 0);transform:scale(1.012)}
.stage{background:#142824;isolation:isolate}
.stage img{object-position:center center}
.stage[data-kind="hospital-slide"]{aspect-ratio:3/2;background:#142824}
.stage img.hospital-slide{width:100%;height:100%;padding:0;object-fit:contain;object-position:center;filter:none;transform:none}
.stage img.render-slide{clip-path:inset(0 0 .45% 0);transform:scale(1.012)}
.stage[data-file="image2bim.jpg"]{aspect-ratio:16/9;background:#142824}
.stage[data-file="image2bim.jpg"] img{padding:0;object-fit:contain;filter:url(#mara-diagram-ink)}
.stage[data-file="coordination.jpg"] img,
.stage[data-file="systems.jpg"] img,
.v12-content figure:first-child img{
  filter:none;object-position:center;
}
.stage[data-file="coordination.jpg"] img,.stage[data-file="systems.jpg"] img{padding:20px}
.asset-board figure{isolation:isolate}
.v12-content figure,.v12-compare figure{background:#142824;border:0}
.v12-content .asset-columns,.v12-compare .asset-columns{align-items:stretch}
.v12-content figure img{padding:12px;object-position:center center}
.v12-compare figure:first-child img{object-position:center center}
.v12-content figcaption,.v12-compare figcaption{min-height:40px;padding:10px 8px;display:grid;place-items:center}
.communityart,.videobox{overflow:hidden}
.communityart img,.videobox>img{display:block}
.qual img{background:transparent;clip-path:circle(43% at 50% 50%)}
#lightbox{width:min(1200px,94vw);max-width:94vw;background:#142824;color:var(--ink);padding:56px 24px 20px;overflow:auto;max-height:92svh;border:1px solid #a5c1ac42;border-radius:16px}
#lightbox #largeimg{display:block;margin:auto;width:auto;height:auto;max-width:100%;max-height:calc(88svh - 110px);object-fit:contain;object-position:center}
#lightbox[data-file="crisis-rendering.webp"] #largeimg{clip-path:inset(0 0 .45% 0)}
#lightbox[data-file="image2bim.jpg"] #largeimg{filter:url(#mara-diagram-ink)}
#lightbox[data-file="coordination.jpg"] #largeimg,#lightbox[data-file="systems.jpg"] #largeimg{filter:none}
#largecomposition{width:100%;aspect-ratio:16/10;max-height:none;min-height:0;background:#142824;border-radius:10px;overflow:hidden}
#largecomposition[hidden],#lightbox #largeimg[hidden]{display:none}
#largecomposition .asset-board{height:100%;width:100%}
#lightbox #largecaption{margin:14px 0 0;text-align:center;line-height:1.5;font-size:14px}
#lightbox .close{position:absolute;top:8px;right:10px}
@media(max-width:999px){.projectnav a span{min-height:76px}}
@media(max-width:719px){
  .projectnav a img,.projectnav a[data-tech=true] img{height:auto;aspect-ratio:16/10}
  .projectnav a span{min-height:78px;padding:10px 9px 8px;font-size:13px}
  .projectnav a b{font-size:10px;min-height:4.05em;margin-bottom:6px}
  .stage[data-kind="hospital-slide"]{aspect-ratio:3/2}
  .stage[data-file="coordination.jpg"] img,.stage[data-file="systems.jpg"] img{padding:12px}
  .v12-content figure img{padding:5px}
  .v12-content figcaption,.v12-compare figcaption{font-size:11px;min-height:42px;padding:8px 4px}
  #lightbox{padding:54px 12px 18px;width:96vw;max-width:96vw}
  #largecomposition{aspect-ratio:1.03}
  #lightbox #largecaption{font-size:12px}
}
