/* Share image and heading row sizes within each horizontal gallery. */
.gallery-track > .gallery-slide,
.plugin-workflow-track > .plugin-workflow-slide {
 display:grid;
 grid-template-rows:var(--gallery-art-height,auto) 1fr;
 align-items:start;
}
.gallery-track .gallery-caption,
.plugin-workflow-track .plugin-workflow-slide > figcaption { align-self:stretch; }
.gallery-track .gallery-caption > :is(h3,h4),
.plugin-workflow-track figcaption > h4 { min-height:var(--gallery-heading-height,0px); }

/* Let phones of different heights meet the same baseline above the captions. */
.gallery-track > .gallery-slide > .gallery-screen { align-self:end; }

/* The shortened Myko home screen uses the same phone height as its neighbours. */
.myko-case .gallery-slide:first-child .gallery-screen {
 height:clamp(28rem,42vw,36rem);
 width:auto;
 max-width:100%;
 aspect-ratio:957 / 1818;
}
@media(max-width:760px) {
 .myko-case .gallery-slide:first-child .gallery-screen { height:min(125vw,32rem); }
}
