.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

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