.mb-project-page{grid-template-columns:repeat(3,minmax(0,1fr))}
.mb-project-card{position:relative;display:block;overflow:hidden;min-height:0!important;aspect-ratio:4/3;background:#262422}
.mb-project-card>img,.mb-project-card>.mb-project-card-placeholder{width:100%;height:100%;transition:transform .45s ease}
.mb-project-card>img{object-fit:cover}
.mb-project-card:hover>img{transform:scale(1.045)}
.mb-project-card>.mb-project-card-placeholder{position:absolute;inset:0;display:grid;width:100%;height:100%;place-items:center;background:linear-gradient(145deg,#383531,#1d1c1a);color:#ffffff1f;font-size:76px;font-weight:850;letter-spacing:-.08em}
.mb-project-card>span:last-child{right:22px;bottom:20px;left:22px}
.mb-project-card>span:last-child small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-project-card>span:last-child strong{font-size:20px;line-height:1.2}
.mb-project-card>span:last-child b{display:block;max-height:0;overflow:hidden;margin-top:0;color:#fff;font-size:10px;opacity:0;transition:.25s ease}
.mb-project-card:hover>span:last-child b{max-height:22px;margin-top:7px;opacity:.8}
.mb-project-empty{grid-column:1/-1;padding:70px;border:1px dashed var(--line);background:#fff;text-align:center}
.mb-project-empty>span{color:var(--red);font-size:10px;font-weight:800;letter-spacing:.18em}
.mb-project-empty h2{margin:14px 0 10px;font-size:clamp(30px,4vw,48px)}
.mb-project-empty p{margin:0;color:var(--muted)}
.mb-project-single-hero{padding:210px 0 90px;background:linear-gradient(120deg,#f1ede6,#fff 72%)}
.mb-project-single-layout{display:grid;align-items:center;grid-template-columns:minmax(0,.78fr) minmax(440px,1.22fr);gap:7%}
.mb-project-back{display:inline-block;margin-bottom:36px;color:#77716a;font-size:11px;font-weight:700}
.mb-project-back:hover{color:var(--red)}
.mb-project-single-copy h1{margin:17px 0 22px;font-size:clamp(48px,6vw,84px)}
.mb-project-location{display:inline-flex;margin:0 0 24px;padding:8px 12px;border:1px solid #d7d0c7;border-radius:999px;color:#625d57;font-size:11px}
.mb-project-description{max-width:600px;color:var(--muted);font-size:15px;line-height:1.75}
.mb-project-description>:last-child{margin-bottom:0}
.mb-project-cover{position:relative;display:block;overflow:hidden;width:100%;padding:0;border:0;aspect-ratio:4/3;background:#222;box-shadow:0 28px 60px rgba(44,35,29,.14)}
.mb-project-cover img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.mb-project-cover:hover img{transform:scale(1.025)}
.mb-project-cover>span{position:absolute;right:18px;bottom:18px;padding:9px 12px;border-radius:5px;background:rgba(25,23,21,.82);color:#fff;font-size:10px;font-weight:750;backdrop-filter:blur(10px)}
.mb-project-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:42px}
.mb-project-gallery-heading h2{max-width:780px;margin:14px 0 0}
.mb-project-gallery-heading>small{flex:0 0 auto;color:var(--muted);font-size:11px}
.mb-project-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mb-project-gallery-item{position:relative;overflow:hidden;width:100%;padding:0;border:0;aspect-ratio:4/3;background:#ddd}
.mb-project-gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease,filter .4s ease}
.mb-project-gallery-item>span{position:absolute;right:14px;bottom:14px;display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:rgba(255,255,255,.9);color:#222;font-size:21px;opacity:0;transform:translateY(6px);transition:.22s ease}
.mb-project-gallery-item:hover img{filter:brightness(.78);transform:scale(1.035)}
.mb-project-gallery-item:hover>span{opacity:1;transform:none}
.mb-project-lightbox{position:fixed;inset:0;z-index:3000;display:grid;align-items:center;grid-template-columns:76px minmax(0,1fr) 76px;padding:34px;background:rgba(12,11,10,.94);opacity:0;transition:opacity .2s ease;backdrop-filter:blur(12px)}
.mb-project-lightbox[hidden]{display:none}
.mb-project-lightbox.is-open{opacity:1}
.mb-project-lightbox-stage{display:flex;min-width:0;max-width:1320px;max-height:calc(100vh - 68px);align-items:center;justify-content:center;flex-direction:column;margin:auto}
.mb-project-lightbox-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 125px);object-fit:contain;box-shadow:0 28px 70px rgba(0,0,0,.38)}
.mb-project-lightbox-stage figcaption{display:flex;width:100%;justify-content:space-between;gap:20px;margin-top:13px;color:#fff;font-size:11px}
.mb-project-lightbox-stage figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8}
.mb-project-lightbox-stage figcaption small{flex:0 0 auto;opacity:.58}
.mb-project-lightbox-close,.mb-project-lightbox-prev,.mb-project-lightbox-next{border:0;background:transparent;color:#fff}
.mb-project-lightbox-close{position:absolute;top:16px;right:20px;z-index:2;width:48px;height:48px;font-size:38px;line-height:1}
.mb-project-lightbox-prev,.mb-project-lightbox-next{width:54px;height:70px;justify-self:center;font-size:56px;line-height:1;opacity:.72;transition:.18s ease}
.mb-project-lightbox-prev:hover,.mb-project-lightbox-next:hover,.mb-project-lightbox-close:hover{opacity:1;color:#fff}
body.mb-project-lightbox-open{overflow:hidden}
@media(max-width:980px){.mb-project-page,.mb-project-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-project-single-layout{grid-template-columns:1fr;gap:45px}.mb-project-single-copy{max-width:760px}.mb-project-single-hero{padding:170px 0 70px}}
@media(max-width:650px){.mb-project-page,.mb-project-gallery-grid{grid-template-columns:1fr}.mb-project-card{aspect-ratio:1.08}.mb-project-empty{padding:45px 22px}.mb-project-single-hero{padding:145px 0 55px}.mb-project-back{margin-bottom:27px}.mb-project-single-copy h1{font-size:48px}.mb-project-cover{aspect-ratio:1}.mb-project-gallery-heading{align-items:flex-start;flex-direction:column}.mb-project-gallery-heading h2{font-size:38px}.mb-project-lightbox{grid-template-columns:44px minmax(0,1fr) 44px;padding:18px 7px}.mb-project-lightbox-stage{max-height:calc(100vh - 36px)}.mb-project-lightbox-stage img{max-height:calc(100vh - 115px)}.mb-project-lightbox-prev,.mb-project-lightbox-next{width:42px;font-size:46px}.mb-project-lightbox-close{top:7px;right:7px}}
@media(prefers-reduced-motion:reduce){.mb-project-card>img,.mb-project-cover img,.mb-project-gallery-item img,.mb-project-gallery-item>span,.mb-project-lightbox{transition:none}}
