CSS nth now uses variable

Only one variable needs to be changed to increase or decrease grid size.