.gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .gallery img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 24px;
  display: block;

  transition: 0.4s ease;
}
.gallery img:hover {
  transform: scale(1.03) rotate(0.2deg);
}