#gallery [class*="_galleryGrid_"] figure:nth-child(n + 3) {
  grid-column: span 4 !important;
  grid-row: span 1 !important;
}

#gallery [class*="_galleryGrid_"] figure:nth-child(n + 6) {
  grid-column: span 3 !important;
}

@media (max-width: 720px) {
  #gallery [class*="_galleryGrid_"] figure:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  #gallery [class*="_galleryGrid_"] figure:first-child {
    grid-column: 1 / -1 !important;
    grid-row: span 2 !important;
  }

  #gallery [class*="_galleryGrid_"] figure:last-child {
    grid-column: span 1 !important;
  }
}
