/*
* Project cards: Home ("project-grid") and the Projects page ("project-highlight"),
 * moved unchanged from the Code modules they were in. Content is now in Text modules.
 */
.project-grid-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .project-card {
    border: 1px solid #e2e6e5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  .project-card:hover {
    box-shadow: 0 6px 18px rgba(0, 76, 108, 0.12);
    transform: translateY(-2px);
  }
  .project-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f2f2;
  }
  .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .project-card-badge {
    display: inline-block;
    align-self: flex-start;
    background: #004C6C;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  .project-card-body h3 {
    font-size: 1.25rem;
    margin: 0 0 0.6rem 0;
  }
  .project-card-body p {
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
  }
  .project-card-button {
    align-self: flex-start;
    display: inline-block;
    padding: 0.6rem 1.3rem;
    text-decoration: none;
    background: #74A333;
    color: #fff;
    transition: background 0.2s ease;
  }

  .project-card-button:hover {
    background: #5e8528;
  }
  /* Responsive */
  @media (max-width: 700px) {
    .project-grid {
      grid-template-columns: 1fr;
    }
  }

.project-highlight {
    width: 2000px;
    max-width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: #f7f9f8;
    border-left: 5px solid #74A333;
  }

  .project-highlight h2 {
    color: #004C6C;
    margin-top: 0;
    margin-bottom: 0.25rem;
  }

  .project-highlight h3 {
    color: #74A333;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 1.25rem;
  }

  .project-highlight p {
    margin: 0 0 1rem 0;
  }

  .project-highlight .tagline {
    font-weight: bold;
    color: #004C6C;
    margin-bottom: 0;
  }

  .project-highlight .credit {
    font-style: italic;
  }

.project-highlight {
    width: 2000px;
    max-width: 100%;
    margin: 2rem auto;
    padding: 2rem;
  }

  .project-highlight h2 {
    color: #004C6C;
    margin-top: 0;
    margin-bottom: 0.25rem;
  }

  .project-highlight h3 {
    color: #74A333;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 1.25rem;
  }

  .project-highlight p {
    margin: 0 0 1rem 0;
  }

  .project-highlight .tagline {
    font-weight: bold;
    color: #004C6C;
    margin-bottom: 0;
  }

  .project-highlight .credit {
    font-style: italic;
  }

/* Badge and button sit in their own paragraphs in the Text module (so WordPress's automatic
   paragraphs can't break the markup); these wrappers add no space of their own. */
.project-card-body > p.project-card-badge-wrap,
.project-card-body > p.project-card-actions {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	flex-grow: 0;
}
/* The description used to be the card's last paragraph (Divi drops a last paragraph's bottom
   padding); with the button now in its own paragraph after it, keep that spacing. */
.project-card-body > p {
	padding-bottom: 0;
}
