This took me way too long to solve 🤦♂️
You'd think adding a 1px border to a grid of cards would be simple, until you get double borders, broken edges when the card count changes, and layout shifts. Here's how I solved it with box-shadow and a 1px gap, no hacks required. - The double border problem when adding border to every card - The