Build conditional layouts with CSS Flexbox