
/* PROJECT DETAIL PAGES */

.project-page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 35px 0 80px;
}

.project-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 35px;
}

.project-back-link {
  color: var(--pink-dark);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

.project-page-content {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-detail-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.project-detail-heading h1 {
  margin: 5px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.project-detail-heading > p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.project-detail-grid {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.project-information h2 {
  margin-top: 0;
}

.project-information h3 {
  margin-top: 24px;
}

.project-information > p {
  line-height: 1.8;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.project-facts > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.project-facts span {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-facts strong {
  font-size: .85rem;
}

.project-not-found {
  padding: 50px 20px;
  text-align: center;
}

.project-not-found p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .project-page-wrap {
    width: min(100% - 24px, 600px);
    padding-top: 20px;
  }

  .project-page-content {
    padding: 18px;
  }

  .project-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-main-row {
    grid-template-columns: minmax(0, 1fr) 75px;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-page-top {
    align-items: flex-start;
  }
}
