The idea
By default flex items refuse to wrap — they squeeze onto one line and overflow the container. flex-wrap: wrap lets them drop onto a new line when they run out of room. (flex-flow is the shorthand for direction + wrap; align-content spaces the wrapped lines on the cross axis.)
This level needs flex-wrap — the items are locked at flex-shrink: 0, so wrapping is the only way to fit them.