/* Six-project work comparisons on the current H04 preview only. */
body[data-work-layout] .project-grid,
body[data-work-layout] #work > .section-heading{width:85%;max-width:1360px;margin-inline:auto}
body[data-work-layout] .project-grid{gap:88px 6%}
body[data-work-layout] .project-wrap{margin-top:0;width:100%;max-width:none;grid-column:auto;justify-self:stretch}
body[data-work-layout="staggered"] .project-wrap:nth-child(3n + 2){margin-top:140px}
body[data-work-layout="staggered"] .project-wrap:nth-child(3n){grid-column:1/-1;width:83.333333%;justify-self:center}
body[data-work-layout="staggered"] .project-wrap:nth-child(3n + 1) .project-card{aspect-ratio:1.26}
body[data-work-layout="staggered"] .project-wrap:nth-child(3n + 2) .project-card{aspect-ratio:.96}
body[data-work-layout="staggered"] .project-wrap:nth-child(3n) .project-card{aspect-ratio:1.83}
/* Keep the two-column content just inside the existing full-section rail borders. */
body[data-work-layout="columns"] #work{padding-inline:calc(13.8889% + 1px)}
body[data-work-layout="columns"] .project-grid,
body[data-work-layout="columns"] #work > .section-heading{width:100%;max-width:none}
body[data-work-layout="columns"] .project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:64px 32px}
body[data-work-layout="columns"] .project-wrap:nth-child(n) .project-card{aspect-ratio:1.26}
body[data-work-layout] .project-info h3{font-size:clamp(17px,1.5vw,23px)}
.work-layout-controls{display:flex;align-items:center;gap:12px}
.work-layout-controls label{display:flex;align-items:center;gap:7px}
.work-layout-controls select{max-width:170px}
@media(max-width:700px){
 body[data-work-layout="columns"] #work{padding-inline:calc(6% + 1px)}
 body[data-work-layout] .project-grid,
 body[data-work-layout] #work > .section-heading{width:92%}
 body[data-work-layout="staggered"] .project-grid{grid-template-columns:1fr;gap:48px}
 body[data-work-layout="staggered"] .project-wrap:nth-child(n){grid-column:auto;width:100%;margin-top:0}
 /* Mobile returns to the original single-column reading order and type scale. */
 body[data-work-layout="columns"] .project-grid{width:100%;grid-template-columns:minmax(0,1fr);gap:50px}
 body[data-work-layout="columns"] #work > .section-heading{width:100%}
 body[data-work-layout="columns"] .project-card{aspect-ratio:1!important}
 body[data-work-layout="columns"] .project-info{padding-top:18px;gap:15px;min-height:60px;align-items:baseline}
 body[data-work-layout="columns"] .project-info h3{font-size:19px;letter-spacing:-.04em}
}
