/* Matching photo sizes within each pair, card group, and gallery. */
body .workpair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
body .workpair figure,body .workpair figure:nth-child(2){margin:0;padding:0}
body .workpair figure img,body .workpair figure:nth-child(2) img,
body .project-grid img,body .project-grid>a:nth-child(2) img,
body .photo-pair img,body .v2-photo-pair img{
 display:block;width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover;
}
body .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body .project-grid>a:nth-child(2){padding-top:0}
body.t5 .two-photos{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
body .two-photos img:first-child,body .two-photos img:last-child{
 width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover;
}
body.t13 .mosaic{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
body.t13 .mosaic>div{display:contents}
body .mosaic>img,body .mosaic>div img{width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover}
body .gallery img,body .gallery button:nth-child(n) img{
 display:block;width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover;
}
body .gallery button:nth-child(n){grid-column:auto!important;min-width:0}
body.t9 .gallery.v2-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
body .gallery-columns{display:grid;columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
body .gallery-columns img{width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:cover}
body .photo-pair,body .v2-photo-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
body.t6 .roomcards article{border-width:1px;border-style:solid;border-color:transparent}
@media(max-width:760px){
 body .workpair,body.t9 .workpair,body .project-grid,body.t5 .two-photos,body.t13 .mosaic,
 body .photo-pair,body .gallery-columns{grid-template-columns:minmax(0,1fr)}
 body .v2-photo-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
}
