
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 20px;
  margin: auto;
  width:100%;
  margin: auto;
}


.gallery-card {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
  cursor: pointer;
  transition: 0.4s ease;
  background: #fff;
  border: 1px solid rgb(235, 234, 234);
}

.gallery-card:hover {
  transform: translateY(-6px);
}


.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit:contain; 
  transition: 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}



/* Tablet */
@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 4px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}
