* { box-sizing: border-box; } .grid { position: relative; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2; -moz-column-gap: 1em; -webkit-column-gap: 1em; column-gap: 1em; padding-bottom: 40px; height: 100%; } .masonry-entry { width: 100%; height: auto; display: inline-block; padding-bottom: 1em; } h1, h2, h3, h4, h5, h6, a { -ms-word-wrap: break-word; word-wrap: break-word; } @media (max-width: 991.98px) { .archive .grid { -moz-column-count: 2; -webkit-column-count: 2; column-count: 2; } } @media (max-width: 767.98px) { .grid { -moz-column-count: 1; -webkit-column-count: 1; column-count: 1; } }