.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 24px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  list-style: none;
}

.gallery-item {
  width: 360px;
  height: 240px;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}