Flexbox Holy Albatross + Quantity Query

In this demo, flex items are displayed horizontally if:

  1. The flex container is more than 40rem wide
  2. There are fewer than 5 flex items in total

4 items

5 items