To my humble knowledge it's not possible to do it with css grid alone, as in the current state of the spec concerns, though I'd like to be proven wrong so I'm leaving this comment to potentially trigger a Cunningham's law situation.
I suppose you have some alternatives still:
- Some JS trickery;
- Setting several media queries for
div.grid.worksto set its width in multiples of90px * n; - Use a CSS preprocessor (SCSS, LESS...) to define a function that allows the
3n * 90pxthing; - If browser support is not important for you, I guess you could play with
@function