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