.gallery {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
  }

  .gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.3s;
  }

  .gallery img:hover {
    transform: scale(1.05);
  }