.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px; /* gap between cards */
  margin-top: 20px;
}

/* Tablet: below 900px */
@media (max-width: 900px) {
 .project-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

/* Phone: below 600px */
@media (max-width: 600px) {
 .project-grid {
    grid-template-columns: 1fr; /* 1 column */
  }
}

.project-card {
	text-decoration:none;
  text-align: center;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
	height:auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}

.project-card img.project-logo {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.project-card img.project-placeholder {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.project-card-content {
padding: 0 15px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card-content h3,
.project-card-content p {
  margin-bottom: 10px;
}
.project-card-content p {
font-size: var(--wp--preset--font-size--small) !important;
}
/* Filter bar */
.project-filter-bar {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease;
  text-decoration: none;
}

.filter-label:hover {
  background: #ddd;
  text-decoration: none;
}

.filter-label.active {
  background: #0073aa;
  color: #fff;
  text-decoration: none;
}

.filter-button {
  padding: 6px 12px;
}

/* PEACES bars */
.pc-peaces-bars {
  margin-top: auto;
}

.pc-peaces-bar-wrapper {
  position: relative;
  background: #aaa8a4;   /* bar background */
  border-radius: 7px;
  height: 17px;
  margin-bottom: 8px;
  overflow: hidden;
}

.pc-peaces-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #595959;   /* fill color */
  z-index: 1;
  transition: width 0.3s ease;
}

.pc-peaces-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
    line-height: 17px;
    font-size: 11px;
  font-weight: bold;
	  z-index: 2;
  color: #fff