Trimmed vertical margins in grid containers