/* Shared project galleries: complete natural portraits and two small images. */
.project-gallery{--gallery-gap:clamp(.75rem,.5rem + 1vw,1.5rem);display:grid;gap:var(--gallery-gap);min-width:0}
.project-gallery__group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gallery-gap);align-items:start;min-width:0}
.project-gallery__group>.project-gallery__image{margin:0;min-width:0}
.project-gallery__group :is(a,picture){display:block}
.project-gallery__group img{display:block;width:100%;height:auto;border-radius:var(--radius-l)}
.project-gallery__group--trio>.project-gallery__image:first-child,.project-gallery__group>.project-gallery__image--portrait,.project-gallery__group--count-1>.project-gallery__image{grid-column:1/-1}
@media(min-width:48rem){
 .project-gallery__group>.project-gallery__image--portrait{grid-column:auto}
 .project-gallery__group--trio{grid-template-columns:calc(var(--trio-large-share) + var(--trio-gap-adjustment) * var(--gallery-gap)) minmax(0,1fr)}
 .project-gallery__group--trio>.project-gallery__image:first-child{grid-column:1;grid-row:1/3}
 .project-gallery__group--trio>.project-gallery__image:nth-child(2){grid-column:2;grid-row:1}
 .project-gallery__group--trio>.project-gallery__image:nth-child(3){grid-column:2;grid-row:2}
 .project-gallery__group--count-1{grid-template-columns:minmax(0,1fr)}
 .project-gallery__group--count-1>.project-gallery__image--portrait{width:min(100%,32rem);justify-self:center}
}
/* Keep the article's established text/facts/solution order on desktop. */
.project-article__gallery-lead{margin-block:var(--e10-section);min-width:0}
.project-article__gallery-continuation{padding-top:var(--e10-section);min-width:0}
@media(min-width:64rem){
 .content-page main .project-article__gallery-lead{width:100%;grid-column:1/-1;grid-row:5;margin-bottom:0}
 .content-page main .project-article__gallery-continuation{grid-column:1/-1;grid-row:7;width:100%}
}
