#main-content .area-projects {
  padding-block: clamp(36px, 5vw, 64px);
  color: #153f47;
}

.area-project-heading,
.area-project-footer {
  text-align: center;
}

.area-project-heading { margin-bottom: 28px; }
.area-project-heading h2 {
  margin: 0 auto;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.15;
}

.area-project-track {
  --project-gap: 18px;
  --project-columns: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--project-columns) - 1) * var(--project-gap)) / var(--project-columns));
  gap: var(--project-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  margin: 0;
  padding: 3px 0 10px;
  list-style: none;
  scrollbar-color: #9ab0a6 #edf4ef;
}

.area-project-item {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}

.area-project-track:focus-visible,
.area-project-card:focus-visible,
.area-project-controls button:focus-visible {
  outline: 2px solid #153f47;
  outline-offset: -2px;
}

#main-content .area-project-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e0d9;
  border-radius: 20px;
  background: #fff;
  color: #153f47;
  text-decoration: none;
}

.area-project-card:hover { border-color: #78998e; }

.area-project-visual {
  aspect-ratio: 16 / 10;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 13px;
  background: #edf4ef;
}

#main-content .area-project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px 21px;
}

.area-project-category {
  color: #486f66;
  font-size: .88rem;
  font-weight: 650;
}

#main-content .area-project-copy h3 {
  margin: 7px 0 9px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.18;
  text-wrap: balance;
}

#main-content .area-project-copy p {
  margin: 0 0 17px;
  color: #4a6369;
  font-size: .94rem;
  line-height: 1.5;
}

.area-project-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: auto;
  padding: 6px 15px;
  border: 1px solid #b5cfc4;
  border-radius: 999px;
  font-weight: 650;
}

.area-project-card:hover .area-project-link { background: #edf4ef; }

.area-project-controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.area-project-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b5cfc4;
  border-radius: 50%;
  color: #153f47;
  background: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.area-project-controls button:disabled { opacity: .4; cursor: default; }
.area-project-controls [data-project-status] { min-width: 8ch; text-align: center; }

.area-project-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 22px;
}

#main-content .area-project-footer p {
  margin: 0;
  color: #4a6369;
  font-size: .9rem;
}

@media (max-width: 850px) {
  .area-project-track { --project-columns: 2; }
}

@media (max-width: 550px) {
  .area-project-track { --project-columns: 1; }
}
