I think you should check the WordPress Elementor plugin's flexbox container structure. Its built-in editor allows users full access to add as many containers as possible and the ability to edit directions or define CSS rules for each of them. Here is a detailed video link: