Elements with .sideways__block are divided evenly in their wrapper (.sideways). Uses the nth-last-child selector to style all siblings based on their amount. Inspired by this.
After the $sideways__limit, the columns begin a new row and form a grid. Note: You might need this or another solution to even the rows when block height alters.