.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.gallery-item {
  flex: 0 1 300;
  max-width: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-link {
  display: block;
  text-decoration: none;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

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