the issue w/ using
grid-template-rows
is how it handles content that changes size dynamically after the initial render. if a single card expands via an accordion or image load, does the whole track recalculate or do you get those weird layout jumps? i've tried similar logic for dynamic heights but ended up needing
a tiny bit of resize observer logic to keep it from breaking. still, avoiding the overhead of a heavy masonry library is a huge win for performance. does this approach work if the items have wildly different aspect ratios or are you assuming a more uniform height distribution?