/* ── Project page styles ── */

.project-page {
  max-width: 800px;
  margin: 0 auto;
}

.project-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-hero img {
  width: 100%;
  display: block;
}

.project-intro {
  margin-bottom: 48px;
}

.project-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.project-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 24px;
}

.project-meta {
  display: flex;
  gap: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.meta-link {
  color: var(--accent);
  text-decoration: none;
}

.meta-link:hover {
  text-decoration: underline;
}

/* ── Sections ── */
.project-section {
  margin-bottom: 48px;
}

.section-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.section-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.section-image.placeholder {
  height: 240px;
  background-color: #e8e8ea;
}

.section-image img {
  width: 100%;
  display: block;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: #f8f8f9;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Project navigation ── */
.project-nav {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 24px;
}

.project-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.project-nav-link:hover {
  color: var(--accent);
}

/* ── Overview grid ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.overview-card-image {
  aspect-ratio: 16 / 10;
  background-color: #e8e8ea;
  overflow: hidden;
}

.overview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-card-info {
  padding: 16px 20px 20px;
}

.overview-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.overview-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Photography gallery ── */
.photography-page .project-page {
  max-width: 1000px;
}

.photo-map-section {
  margin-bottom: 48px;
}

.photo-map-section .section-heading {
  margin-bottom: 16px;
}

#photo-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.map-marker-dot {
  width: 12px;
  height: 12px;
  background: var(--accent, #3b82f6);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ── Photo gallery ── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ── Journalism articles ── */
.journalism-page {
  max-width: 1000px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.articles-loading,
.articles-empty {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 48px 0;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e8e8ea;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-info {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.article-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ── Pagination ── */
.articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.page-btn:hover:not(.disabled):not(.active) {
  background: rgba(0, 0, 0, 0.04);
}

.page-btn.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.page-btn.disabled {
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.5;
}

.page-num {
  min-width: 36px;
  text-align: center;
  padding: 8px 4px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-title {
    font-size: 24px;
  }

  .project-meta {
    flex-direction: column;
    gap: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .page-btn:not(.page-num) {
    padding: 8px 10px;
    font-size: 12px;
  }
}
