.image-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      max-width: calc((480px * 2) + 16px); 
      gap: 16px;
      margin: 0 auto;
      justify-items: center;
    }
    
    .image-grid:has(.grid-item:nth-child(3)) {
  max-width: calc((480px * 3) + (16px * 2));
}

    .image-grid:has(.grid-item:nth-child(4)) {
  max-width: none;
}    

    .grid-item {
      max-width: 480px;
      width: 100%;
    }
    .grid-item img {
      margin: 0;
      width: 100%;
      height: auto;
    }
    
    .grid-item figcaption {
      padding: 12px;
      font-size: 14px;
      line-height: 1.4;
      text-align: center;
    }
    
.mondrian {
      max-width: calc((480px * 2) + 16px); 
      margin: 0 auto;
      text-align: justify;
      padding: 10px;
}
