.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 20px; */
  /* background-color: white; */
  background-color: #f2f2f2;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* grid-auto-rows: 200px; */
  grid-auto-rows: 200px;
  grid-gap: 15px;
  grid-auto-flow: dense;
}

.gallery-item {
  overflow: hidden;
  /* border-radius: 8px; */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* 特殊网格项大小 */
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* .gallery-item.wide {
        grid-column: span 2;
      } */
.gallery-item.wide {
  grid-column: span 2;
  /* grid-template-columns: 30% 150% */
}

.gallery-item.tall {
  grid-row: span 2;
}
