I got Masonry component to work with an image but now I would like to have images open in a lightbox.
So i added an Anchor image instead and configured for lightbox (this part works)
However the Images are not listed in Masonry style, just large images one after the other.
Removing the Anchor, the image get processed as Masonry and display correctly.
I can only imagine that the component is trying to process the a tags and not the img tags to determine the dimensions.
Well there is a reason why you can't do that using the UI and you see the result on your page.
If you want to do this you need to make sure the anchor elements are block elements (not inline) and also use the responsive image option for your images ...
And actually the easiest way to achieve this without having to add classes in code is to use the standard row > col structure in bootstrap. I.e. add a row, add a col inside, add the anchor image inside the col. Then select row > make masonry and you are done.