// Define the default maximum column width variable
:root {
   --max-column-width: 200px;
}

// Grid.
.grid,
.grid-2col {
   display: grid;
   grid-column: span 2 / span 2;
   grid-template-columns: repeat(2, minmax(0, var(--max-column-width)));
   gap: 10px;
   margin: 0 0;
   padding: 0;
}
.grid-2colfr {
   display: grid;
   grid-column: span 2 / span 2;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 10px;
   margin: 10px 0;
   padding: 0;
}
.grid-3col {
   grid-column: span 3 / span 3;
   grid-template-columns: repeat(3, minmax(0, var(--max-column-width)));
}
.grid-3colfr {
   display: grid;
   grid-column: span 3 / span 3;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 10px;
   margin: 10px 0;
   padding: 0;
}

.grid-4col {
   grid-column: span 4 / span 4;
   grid-template-columns: repeat(4, minmax(0, var(--max-column-width)));
}

.grid-5col {
   grid-column: span 5 / span 5;
   grid-template-columns: repeat(5, minmax(0, var(--max-column-width)));
}

.grid-6col {
   grid-column: span 6 / span 6;
   grid-template-columns: repeat(6, minmax(0, var(--max-column-width)));
}

.grid-7col {
   grid-column: span 7 / span 7;
   grid-template-columns: repeat(7, minmax(0, var(--max-column-width)));
}

.grid-8col {
   grid-column: span 8 / span 8;
   grid-template-columns: repeat(8, minmax(0, var(--max-column-width)));
}

.grid-9col {
   grid-column: span 9 / span 9;
   grid-template-columns: repeat(9, minmax(0, var(--max-column-width)));
}

.grid-10col {
   grid-column: span 10 / span 10;
   grid-template-columns: repeat(10, minmax(0, var(--max-column-width)));
}

// Grid offset.
.grid-start-2 {
   grid-column-start: 2
}

.grid-start-3 {
   grid-column-start: 3
}

.grid-start-4 {
   grid-column-start: 4
}

.grid-start-5 {
   grid-column-start: 5
}

.grid-start-6 {
   grid-column-start: 6
}

.grid-start-7 {
   grid-column-start: 7
}

.grid-start-8 {
   grid-column-start: 8
}

.grid-start-9 {
   grid-column-start: 9
}

.grid-start-10 {
   grid-column-start: 10
}

.grid-span-2 {
   grid-column-end: span 2
}

.grid-span-3 {
   grid-column-end: span 3
}

.grid-span-4 {
   grid-column-end: span 4
}

.grid-span-5 {
   grid-column-end: span 5
}

.grid-span-6 {
   grid-column-end: span 6
}

.grid-span-7 {
   grid-column-end: span 7
}

.grid-span-8 {
   grid-column-end: span 8
}

.grid-span-9 {
   grid-column-end: span 9
}

.grid-span-10 {
   grid-column-end: span 10
}
.max-width-140px {
   --max-column-width: 140px;
}
.max-width-300px {
   --max-column-width: 300px;
}