#press-mentions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: white;
  box-shadow: 0 1px 5px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.project-card:hover,
.project-card:focus-visible {
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.12);
  transform: translateY(-4px);
  color: inherit;
  text-decoration: none;
  border-color: #999; /* just slightly darker than #ddd */
}

#press-mentions a.project-card:focus,
#press-mentions a.project-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ddd !important;  /* match the default border */
}

.project-card:hover .project-categories,
.project-card:focus-visible .project-categories {
  background-color: #f2f2f2; /* same as base */
  color: #444;               /* same as base */
}

.project-image img {
  height: 100%;         /* fills the container vertically */
  width: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.project-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.project-content {
  padding: 1rem 1.25rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: 100%;
}


.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.project-categories {
  background-color: #f2f2f2;
  color: #444;
  padding: 0.25em 0.6em;
  border-radius: 0.7em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.project-date {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
  margin: 0;
}



.project-content h3 {
  margin: 0 0 0.4rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}



.project-subtitle {
  font-size: 0.85rem;
  color: #888888;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-weight: 400;
  font-style: normal;
}

h3 {
  margin-bottom: 0.1rem; /* shrink space below title */
  line-height: 1.2;      /* tighten line height */
}

.title-subtitle-wrapper h3 {
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.title-subtitle-wrapper .project-subtitle {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-description {
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
}