Grid items are aligned at the end of the grid container in the inline direction. Inline direction is moved from horizontal to downwards direction with the writing-mode property, so now the end of the contianer in the inline direction is at the bottom of the contianer instead of to the right of it.