.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
}

.gallery {
  margin: 10px;
  border: 1px solid #333;
  flex: 1 1 calc(33.33% - 30px); /* 3 per row */
  background-color: #222;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.desc {
  padding: 10px;
  font-size: 16px;
  color: #ffcc00;
}

/* Tablets: 2 per row */
@media (max-width: 992px) {
  .gallery {
    flex: 1 1 calc(50% - 30px);
  }
}

/* Phones: 1 per row */
@media (max-width: 768px) {
  .gallery {
    flex: 1 1 100%;
    max-width: 400px;   /* keeps card neat and not stretched */
    margin: auto;       /* centers the card */
  }

  .gallery img {
    height: auto;
  }
}
