.contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .contenedor {
    flex-direction: column;
  }
}
