
/* TITLE */
.gallery-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 40px;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */
.gallery-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

/* IMAGE */
.gallery-img {
  position: relative;
  overflow: hidden;
}

.gallery-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.4s;
}

/* ZOOM EFFECT */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 52, 137, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.overlay span {
  color: #fff;
  background: var(--accent-red);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* TEXT */
.gallery-item p {
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.gallery-item p a {
  color: var(--text-black);
  text-decoration: none;
  font-weight: 500;
}

.gallery-item p a:hover {
  color: var(--accent-red);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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