I'm currently working on adjusting the layout of 12 vertical stacks of cards to remove excess empty space between them. The cards are already stacking nicely by rank, but there seems to be unwanted horizontal space between each pile, and I can't figure out why CSS Grid is causing this issue.
I attempted to add some extra CSS rules to further control the arrangement of the piles, but unfortunately, it only made the situation worse:
div.three { grid-column-start: three; grid-column-end: four;}
div.four { grid-column-start: four; grid-column-end: five;}
...
You can view the current setup on https://jsfiddle.net/lenbo41/nvu5jyzt/4/
The goal is to have the 4-pile positioned to the right of the 3-pile, the 5-pile to the right of the 4-pile, and so on, without large gaps in between the piles.
Please see the modified CSS code below for reference:
...