To prevent vertical expansion, change these:
align-items: flex-start; align-content: flex-start;
This makes the items align at the top and keeps their natural height.