/*
 * Post cards in columns that touch (App\Support\CardMasonry, frontend/js/masonry.js).
 * Each photo in its own shape: the theme crops every card photo to one height (220px), which is
 * what made the cards line up in rows. The aspect-ratio on the <img> keeps the space before it loads.
 */
.listing .listing-item .photo img.pv-natural { display: block; height: auto; max-height: 520px; }
/* (display:block: a photo that fails to load still keeps its shape instead of shrinking to an icon) */

/* The columns: the cards' own padding is the gap between them, as in the grid. */
[data-pv-masonry] > .pv-m-cols { display: flex; align-items: flex-start; flex: 0 0 100%; max-width: 100%; }
[data-pv-masonry] .pv-m-col { flex: 1 1 0; min-width: 0; }
[data-pv-masonry] .pv-m-col > [data-pv-m] { flex: none; width: 100%; max-width: 100%; }
