In order to understand how !important works in cascade layers, you have to understand how !important works generally. The conclusion of this post might not be what you expect.
If you’re creating a masonry layout, the packing algorithm puts items into the column with the most space by default. This can cause accessibility issues. The masonry-auto-flow property gives us control over the automatic placement of items in a masonry layout.