/* Gedeelde stijl voor project-detailpagina's */
:root {
  --kleur-donker: #1a1a1a;
  --kleur-accent: #c8a96e;
  --kleur-accent-donker: #a88b4e;
  --kleur-licht: #f7f5f0;
  --kleur-grijs: #f4f4f4;
  --radius: 12px;
  --radius-lg: 20px;
  --schaduw: 0 4px 24px rgba(0,0,0,0.08);
  --nav-project: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.project-page {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--kleur-licht);
  color: var(--kleur-donker);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.project-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  min-height: var(--nav-project);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--kleur-donker);
  text-decoration: none;
  padding: 0.5rem 0;
  min-height: 44px;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.project-back:hover {
  color: var(--kleur-accent-donker);
}

.project-back::before {
  content: '←';
  font-size: 1.1rem;
}

.project-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--kleur-donker);
  font-weight: 600;
  font-size: 0.85rem;
}

.project-topbar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.project-article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 4rem;
}

/* ——— Galerij ——— */
.project-gallery {
  margin-bottom: 2rem;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--kleur-donker);
  box-shadow: var(--schaduw);
  aspect-ratio: 16 / 10;
  touch-action: pan-y pinch-zoom;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-main--single .gallery-btn {
  display: none;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--kleur-donker);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease-out), background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-btn:hover {
  background: var(--kleur-wit);
  transform: translateY(-50%) scale(1.06);
}

.gallery-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.gallery-btn--prev {
  left: 0.75rem;
}

.gallery-btn--next {
  right: 0.75rem;
}

.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-dot.is-active {
  background: var(--kleur-accent);
  transform: scale(1.25);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: none;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.65;
  -webkit-tap-highlight-color: transparent;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--kleur-accent);
  opacity: 1;
}

/* ——— Verhaal ——— */
.project-content {
  background: var(--kleur-wit);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--schaduw);
  border-top: 3px solid var(--kleur-accent);
}

.project-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kleur-accent-donker);
  margin: 0 0 0.5rem;
}

.project-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.project-story p {
  margin: 0 0 1rem;
  color: #333;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
}

.project-story p:last-child {
  margin-bottom: 0;
}

.project-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.project-cta-primary {
  background: var(--kleur-donker);
  color: #fff;
}

.project-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.project-cta-outline {
  border: 2px solid var(--kleur-donker);
  color: var(--kleur-donker);
}

.project-cta-outline:hover {
  background: var(--kleur-donker);
  color: #fff;
}

.project-footer-mini {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: rgba(26,26,26,0.45);
}

@media (max-width: 600px) {
  .gallery-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .gallery-btn--prev {
    left: 0.5rem;
  }

  .gallery-btn--next {
    right: 0.5rem;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .project-topbar-brand span {
    display: none;
  }
}

@media (min-width: 768px) {
  .gallery-thumbs {
    display: none;
  }
}

@media (max-width: 767px) {
  .gallery-dots {
    display: none;
  }
}
