I have a CSS grid such as this:
.grid-wrapper
  display: grid
  margin: 0 auto
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr))
  grid-auto-rows: minmax(100px, auto)
  grid-gap: 10px
And I want to position a main element in the beginning:
.main-item
  grid-column-end: span 2
  grid-row-end: span 2
A series of intermediate elements following that one, and in the last possible position of the grid -not following the other elements, but literally on the right bottom corner of the grid-.
Right now I can place it on the last column with
.last item
  grid-column-end: -1
But I can't find a way of placing it on the last row -given that the number of rows is not defined-.
Any ideas?
https://codepen.io/rtyx/pen/XVQMJQ
.wrapper {
  border: 2px solid #f76707;
  background-color: #fff4e6;
}
.wrapper>div {
  border: 2px solid #ffa94d;
  background-color: #ffd8a8;
  color: #d9480f;
}
.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-auto-rows: minmax(100px, auto);
  grid-gap: 10px;
  width: 1000px;
}
.main-item {
  grid-column-end: span 2;
  grid-row-end: span 2;
}
.last-item {
  grid-column-end: -1;
  grid-row-end: -1;
}
<div class="wrapper">
  <div class="main-item">Main item</div>
  <div class="item1">Item 2</div>
  <div class="item2">Item 3</div>
  <div class="item3">Item 4</div>
  <div class="last-item">last-item</div>
</div>