/* Related images share a centred row and a common uncropped height. */
.centred-project{--gallery-gap:clamp(12px,1.8vw,28px);--gallery-height:min(65svh,620px);--gallery-space:clamp(32px,5vw,72px);padding-bottom:0}
.centred-project .gallery-row{display:flex;align-items:center;justify-content:center;gap:var(--gallery-gap);width:calc(100% - 8vw);max-width:min(1600px,calc(var(--row-ratio)*var(--gallery-height) + var(--row-gaps)*var(--gallery-gap)));padding:0;margin:0 auto var(--gallery-space);background:transparent}
.centred-project .gallery-row>.gallery-item{flex:var(--image-ratio) 1 0%;min-width:0;display:block;margin:0;padding:0;background:transparent;border:0}
.centred-project .gallery-row>.gallery-item>img{position:static;display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain;margin:0!important;padding:0;transform:none!important}
.centred-project .gallery-copy{width:calc(100% - 8vw);max-width:760px;padding:0;margin:0 auto 32px;display:block}
.centred-project .gallery-copy p{max-width:none;font-size:clamp(13px,1.05vw,16px);line-height:1.85;color:#ddd}
.centred-project .gallery-intro{display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding:64px 4vw 70px;margin:0;background:transparent;min-height:0}
.centred-project .gallery-intro h1{font-family:'Funnel Display',Arial,sans-serif;font-size:clamp(40px,6vw,88px);font-weight:450;letter-spacing:-.06em;line-height:1.05;margin:0}
.centred-project .gallery-intro .subtitle{font-size:14px;line-height:1.8;color:var(--accent,#fd2424);margin:0}
.centred-project .gallery-intro .brief{font-size:16px;line-height:1.8;max-width:720px;margin:0}
.centred-project .annotated-cad{margin-left:auto;margin-right:auto;margin-bottom:var(--gallery-space)}
@media(max-width:700px){
 .centred-project{--gallery-height:calc(100svh - 170px);--gallery-space:36px}
 .centred-project .gallery-row{flex-direction:column;width:88%;max-width:none;gap:24px}
 .centred-project .gallery-row>.gallery-item{flex:none;width:100%;max-width:calc(var(--image-ratio)*var(--gallery-height))}
 .centred-project .gallery-copy{width:88%;margin-bottom:24px}
 .centred-project .gallery-intro{padding:40px 6vw 48px;gap:20px}
 .centred-project .gallery-intro h1{font-size:clamp(36px,10vw,56px)}
}

/* Restore the original white backing on Nigeria CAD artwork. */
.centred-project .gallery-row .cad-white-background{background:#fff}

/* Project copy follows its collection colour; the introductory label stays white. */
.project-colour-theme main.centred-project h1,.project-colour-theme main.centred-project h2,.project-colour-theme main.centred-project h3,
.project-colour-theme main.centred-project p{color:var(--accent)}
.project-colour-theme main.centred-project .subtitle{color:#fff}

/* Match cursor overlap masking to the project background. */
.project-colour-theme .orange-pointer::after{background:var(--bg)}

/* Approved alignment: image rows share the same page margins. */
.centred-project.aligned-gallery .gallery-row{max-width:none}
@media(max-width:700px){.centred-project.aligned-gallery .gallery-row>.gallery-item{max-width:none}}

.centred-project.aligned-gallery .development-spread.sketchbook-page,.centred-project.aligned-gallery .annotated-cad{width:92%;max-width:none;max-height:none;margin-left:auto;margin-right:auto}
@media(max-width:700px){.centred-project.aligned-gallery .development-spread.sketchbook-page,.centred-project.aligned-gallery .annotated-cad{width:88%}}
