.category-page {
  grid-template-areas:
    'header header'
    'introduction introduction'
    'home1 home2'
    'home3 home4'
    'home5 home6'
    'home7 home8'
    'footer footer';
}

.category-intro {
  grid-area: introduction;
  width: 100%;
  max-width: 880px;
  justify-self: start;
  padding: 56px 0 20px;
  margin-bottom: 0;
}

.category-intro h2 {
  margin: 0 0 24px;
  color: inherit;
  font-size: 32px;
  line-height: 1.2;
  font-weight: normal;
  text-align: left;
}

.category-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

@media (max-width: 865px) {
  .category-page {
    grid-template-areas:
      'header'
      'introduction'
      'home1'
      'home2'
      'home3'
      'home4'
      'home5'
      'home6'
      'home7'
      'home8'
      'footer';
  }

  .category-intro {
    padding: 40px 0 20px;
    margin-bottom: 8px;
  }
  .category-intro h2 { font-size: 30px; }
  .category-intro p { font-size: 14px; }
}

.category-page .project-card {
  display: block;
  color: inherit;
  text-align: left;
}

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-image img,
.card-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-caption {
  padding: 16px 0 18px;
}

.card-caption h2 {
  margin: 0;
  color: inherit;
  font-size: 24px;
  line-height: 1.3;
  font-weight: normal;
}

.card-caption p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 865px) {
  .card-caption { padding: 12px 0 28px; }
  .card-caption h2 { font-size: 22px; }
  .card-caption p { font-size: 14px; }
}
