/* Native photo ratios; no square crop and no image-file resizing. Intrinsic
   width/height attributes reserve space before lazy images finish loading. */
.gallery-grid.photo-masonry,.related-grid.photo-masonry{--photo-columns:4;--photo-gap:16px;display:block;column-count:var(--photo-columns);column-gap:var(--photo-gap)}
.photo-masonry>.example-card{display:block;width:100%;aspect-ratio:auto;break-inside:avoid;margin:0 0 16px;padding:0}
.photo-masonry>.example-card>img{display:block;width:100%;height:auto;object-fit:contain}
@media(min-width:1800px){.gallery-grid.photo-masonry,.related-grid.photo-masonry{--photo-columns:5;--photo-gap:18px}.photo-masonry>.example-card{margin-bottom:18px}}
@media(min-width:761px) and (max-width:1100px){.gallery-grid.photo-masonry,.related-grid.photo-masonry{--photo-columns:3;--photo-gap:12px}.photo-masonry>.example-card{margin-bottom:12px}}
@media(max-width:760px){.gallery-grid.photo-masonry,.related-grid.photo-masonry{--photo-columns:2;--photo-gap:10px}.photo-masonry>.example-card{margin-bottom:10px}}
.gallery-grid.photo-masonry[data-masonry-layout=stable]{position:relative;column-count:auto}
.gallery-grid.photo-masonry[data-masonry-layout=stable]>.example-card{position:absolute;margin:0}
