.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.04);
}

/* Primary gallery cards (bootstrap-free) */
.row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

@media (max-width: 991px) {
  .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h5 {
  margin: 0;
  font-weight: 600;
  color: #1f255e;
  text-transform: capitalize;
}

.img-fluid {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.card:hover .img-fluid {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.h-100 {
  height: 100%;
}

.border-0 {
  border: 0;
}

.shadow {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
