/* ===== GALLERY WRAPPER ===== */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
}

/* ===== GALLERY CARD ===== */
.gallery {
  margin: 10px;
  border: 1px solid #333;
  flex: 1 1 calc(33.33% - 30px);
  background-color: #222;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* NEW — ensures uniform card box */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* uniform size — change if needed */
}

/* ===== FIXED IMAGE — NO CROPPING ===== */
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* prevents cropping */
  display: block;
  background: #111;      /* fills empty space */
  border-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;
    margin: auto;
  }

  .gallery img {
    height: 100%;
  }
}
