

/* ================= TITLE ================= */
.gallery-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 40px;
  position: relative;
}

.gallery-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  display: block;
  margin: 10px auto 0;
}

/* ================= GRID ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-items: center; /* centers last row items */
}

/* ================= CARD ================= */
.gallery-card {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
  text-align: center;
}

/* ================= IMAGE ================= */
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

/* ================= TEXT BELOW IMAGE ================= */
.gallery-card span {
  display: block;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  background: #fff;
  border-top: 2px solid var(--accent-red);
}

/* ================= HOVER ================= */
.gallery-card:hover {
  transform: translateY(-6px);
}

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

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: 200px;
  }
}