Length of the column adapting to content

Hello, I wanted to ask 2 questions in this project.

  1. I want to make the columns adapt to the number of cards they have inside. For example, I want the third column to be way shorter (just a bit bigger than the card height). If I had more cards in the second column, I want it to get longer as I add cards to make it adapt to the number of elements. How can I do this?

  2. Even though I have space-around, there is no space after the last card in column one and two. How can I fix that?

Thank you very much!