/* =========================
   PROJECT DETAIL PAGE
   ========================= */

/* Base */
.project-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--dark);
  line-height: 1.7;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--dark);
  text-decoration: none;
}

/* Header */
.project-header {
  margin-bottom: 3rem;
}

.project-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.project-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
}

/* Hero image */
.project-hero {
  margin: 3.5rem 0;
}

.project-hero img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Sections */
.project-section {
  margin-bottom: 3.5rem;
}

.project-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-section p {
  max-width: 720px;
}

/* Gallery */
.project-gallery {
  margin-top: 5rem;
}

.project-gallery h2 {
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .project-detail {
    padding: 3rem 1.25rem;
  }

  .project-header h1 {
    font-size: 2rem;
  }

  .project-tagline {
    font-size: 1rem;
  }

  .project-hero {
    margin: 2.5rem 0;
  }
}
