/* V65 — clean, responsive spacing between project cards */
#projectGrid.project-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 28px !important;
  align-items: stretch !important;
  width: 100% !important;
}

#projectGrid.project-grid > .project-card,
#projectGrid.project-grid > .home-project-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1199px) {
  #projectGrid.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 22px !important;
    row-gap: 24px !important;
  }
}

@media (max-width: 899px) {
  #projectGrid.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
    row-gap: 20px !important;
  }
}

@media (max-width: 599px) {
  #projectGrid.project-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}
