/* Basic styles for the grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /*grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));*/
  gap: 5px;
  padding: 0px;
}

/* Square container for each image */
.image-container {
  width: 100%;
  padding-top: 100%; /* This forces the container to have a square aspect ratio */
  position: relative;
  overflow: hidden;
}

/* Images inside the square container */
.image-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the image */
  width: 100%; /* Ensures the image stretches to fill the container */
  height: 100%; /* Ensures the image stretches to fill the container */
  object-fit: cover; /* Ensures the image covers the container and crops appropriately */
}

/* For medium screens (e.g., tablets or smaller desktop screens) */
@media (max-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for medium screens */
  }
}

/* For smaller screens (e.g., mobile devices) */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for small screens */
  }
}

/* For very small screens (e.g., mobile phones in portrait) */
@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr); /* 2 columns for very small screens */
  }
}