/* V50 — final natural-height project cards; removes every inherited forced card/body height */
body main .project-grid,
body main .projects-grid,
body main .home3-project-grid,
body main .projects-eight-grid,
body.home-v4 main .cs9-project-grid {
  align-items: start !important;
  grid-auto-rows: max-content !important;
}

body main .project-card-unified,
body main .home-project-card,
body.home-v4 main .cs9-project-grid .home-project-card {
  height: fit-content !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
  flex: none !important;
}

body main .project-card-unified .home-project-body,
body main .home-project-card .home-project-body,
body.home-v4 main .cs9-project-grid .home-project-card .home-project-body {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 18px 20px 20px !important;
  gap: 8px !important;
}

body main .project-card-unified .home-project-body > *,
body main .home-project-card .home-project-body > *,
body.home-v4 main .cs9-project-grid .home-project-card .home-project-body > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
}

body main .project-card-unified .home-project-actions,
body main .home-project-card .home-project-actions,
body.home-v4 main .cs9-project-grid .home-project-card .home-project-actions {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: start !important;
}

body main .project-card-unified .home-project-actions > a,
body main .home-project-card .home-project-actions > a {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}
