Ensure that masonry containers are sized correctly under max-content constraints even if the items do not have the max-content style.

Number 1
Number 4
Number 2
Number 3