the space between posts is defined in Customizer > Layout > Container > Separating Space.
However you’re seeing a larger gap as you have added a box shadow to the inner container which means the your observing extra space thats from the container padding. That kind of styling doesn’t work particularly well with your current layout.
I would suggest changing the Customizer > Layout > Container –> Structure to Separate Containers and set the Alignment to boxes first.