The previous solution of adding Display Flex to the section element works perfectly.

So, Display Inline Flex can be used instead of Display Flex when you want this container to act as an inline element instead of block level element.