| ... |
... |
@@ -195,6 +195,11 @@ |
| 195 |
195 |
display: grid; |
| 196 |
196 |
grid-template-columns: repeat(2, 1fr); |
| 197 |
197 |
gap: 32px 36px; |
|
198 |
+ article.service:last-child:nth-child(odd) { |
|
199 |
+ grid-column: 1 / -1; /*// span both columns*/ |
|
200 |
+ max-width: 680px; /*// optional: keep it from stretching too wide*/ |
|
201 |
+ justify-self: center; /*// center it in the row*/ |
|
202 |
+ } |
| 198 |
198 |
} |
| 199 |
199 |
|
| 200 |
200 |
.service { |
| ... |
... |
@@ -257,12 +257,6 @@ |
| 257 |
257 |
border-top: 1px solid @line; // always show a separator above it |
| 258 |
258 |
} |
| 259 |
259 |
} |
| 260 |
|
- /* If there is an odd number of services, center the last one on its own row */ |
| 261 |
|
- .services-grid > .service:last-child:nth-child(odd) { |
| 262 |
|
- grid-column: 1 / -1; /*// span both columns*/ |
| 263 |
|
- max-width: 680px; |
| 264 |
|
- justify-self: center; |
| 265 |
|
- } |
| 266 |
266 |
|
| 267 |
267 |
/* Responsive */ |
| 268 |
268 |
@media (max-width: 760px) { |