I've got a simple grid with auto-fit columns. So depending on the available screen width one, two, three or more items get displayed in a row.
The challange: The last item of each row should always be styled different. Can this be achieved out-of-the-box with css grid or do I need media queries for that?
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}<div class="grid">
   <div>Item 1</div>
   <div>Item 2</div>
   <div>Item 3</div>
   <div>Item 4</div>
   <div>Item 5</div>
   <div>Item 6</div>
</div> 
    