CSS Flexbox: the main axis calculation with frameset