Updated a Site from 1.12.4 and on two Pages with Image Galleries in “Mansory Layout” there is no more horizontal Space. Vertical Space ist working fine.
Tried to change Layout to Grid and back, but the issue is still there.
Deactivate JS optimizations if you have them enabled. Alternatively, try to exclude isotope.min.js / remove the defer attribute (I’m not sure if there are any options in autoptimize):
I’ve tried to exclude the “isotope.min.js” with Autooptimize, but this does’nt help. Unfortunately, deactivating “suspicious” plugins doesn’t help either (Autooptimize, Motion.Page, ACE, Cache Enabler, Bricksforge, etc.)
ACSS is the culprit as it overrides the margins (red). I added a temporary “fix” to Bricks » Settings » Custom CSS (green - maybe there’s some setting in ACSS to exclude certain selector from the defaults):
The problem, however, is that you place the styling in the Bricks layer and not outside of the layers. This means that it can be immediately overwritten by virtually any plugin that styles the li tag, for example, with margin-block. The same applies, of course, if a user applies global styling like margin-block to the li. This is why ACSS overwrites it, even though it uses the smallest possible specificity. And placing ACSS in a layer below the Bricks layer would destroy the principle of a CSS framework.
You simply overwrite the variable located in the Bricks layer locally on the class or ID in the Bricks gallery element.
Such things shouldn’t be in the layer if they’re intended to be overwritten/restyled.
This is a Bricks (CSS layer) problem, not an ACSS issue.