.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1128px;
  justify-content: center;
}
.gallery-item {
  width: calc((100% - 24px * 2) / 3);
}
.gallery-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-image:hover {
  transform: scale(1.05);
  cursor: zoom-in;
}
.gallery-link {
  display: block;
  text-decoration: none;
}
