/* ============================================================
   Pieter de Vries Photography — Stylesheet
   Apple Design System esthetiek · Paars-blauw gradient
   ============================================================ */

:root {
  --bg:          #07070f;
  --surface:     #0d0d1a;
  --surface-2:   #131325;
  --purple:      #7c3aed;
  --blue:        #2563eb;
  --gradient:    linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --text:        #f8fafc;
  --text-muted:  #94a3b8;
  --text-dim:    #475569;
  --border:      rgba(255, 255, 255, 0.07);
  --glass:       rgba(7, 7, 15, 0.85);
  --font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Helvetica Neue", Arial, sans-serif;
  --r-sm:        8px;
  --r:           12px;
  --r-lg:        20px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --t:           0.3s var(--ease);
  --header-h:    72px;
  --gap:         16px;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }

.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft   { float: left;  margin-right: 1.5em; margin-bottom: 1em; }
.alignright  { float: right; margin-left: 1.5em;  margin-bottom: 1em; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── Layout helpers ────────────────────────────────────────── */

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 760px;
}

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-color: var(--border);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo { display: flex; align-items: center; z-index: 1; }

.logo-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo img { height: 36px; width: auto; }

/* Nav — gecentreerd à la Apple */
.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}

.site-header.scrolled .nav-menu {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.nav-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(248, 250, 252, 0.65);
  border-radius: 100px;
  transition: color var(--t), background var(--t);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.nav-menu li { position: relative; }

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: rgba(13, 13, 26, 0.96);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r);
  padding: 14px 6px 6px;
  z-index: 300;
  flex-direction: column;
  gap: 2px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  display: flex;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(124,58,237,.18) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,.14)  0%, transparent 65%),
    var(--bg);
}

.hero--has-image {
  background: var(--bg) var(--hero-bg) center / cover no-repeat;
  background-position-y: calc(50% + var(--parallax-y, 0px));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-rgba, rgba(0,0,0,.4));
  z-index: 1;
}

.hero--has-image .hero-overlay {
  background: var(--overlay-rgba, rgba(0,0,0,.4));
}

.hero:not(.hero--has-image) .hero-overlay {
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
  animation: heroFadeUp 1s var(--ease-out) both;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .92;
  padding-bottom: .12em;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #b5c0ce 0%, #97a2b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  letter-spacing: .03em;
  color: rgba(248,250,252,.65);
  margin-bottom: 52px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 11px 22px;
  font-size: 14px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.45));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 40px rgba(124,58,237,.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 60px rgba(124,58,237,.45);
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 14px;
  padding: 11px 28px;
}

.btn-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

/* ── Gallery sections ──────────────────────────────────────── */

.gallery-section {
  padding: 80px 0;
}

.gallery-section + .gallery-section {
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.gallery-section--alt {
  background:
    radial-gradient(ellipse 80% 50% at 70% 50%, rgba(37,99,235,.06) 0%, transparent 70%),
    transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 20px;
  color: var(--text);
}

.section-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: var(--section-text-width, 500px);
  margin: 0 auto;
}
.section-desc p         { margin-bottom: 1em; }
.section-desc p:last-child { margin-bottom: 0; }
.section-desc strong    { color: var(--text); font-weight: 600; }
.section-desc em        { font-style: italic; }
.section-desc ul,
.section-desc ol        { padding-left: 1.4em; margin-bottom: 1em; }
.section-desc ul        { list-style: disc; }
.section-desc ol        { list-style: decimal; }
.section-desc li        { margin-bottom: .3em; }
.section-desc a         { color: var(--purple); text-decoration: underline; }
.section-desc br        { display: block; margin-bottom: .5em; }

.section-footer {
  text-align: center;
  margin-top: 56px;
}

/* ── Masonry grid ──────────────────────────────────────────── */

.masonry-grid {
  columns: 3 300px;
  column-gap: var(--gap);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  perspective: 1200px;

  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger by column-position (approx) */
.masonry-item:nth-child(3n+2) { transition-delay: .1s; }
.masonry-item:nth-child(3n+3) { transition-delay: .2s; }

.gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s var(--ease), filter .35s var(--ease);
}

.gallery-link:hover img {
  transform: scale(1.05);
  filter: brightness(.82);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t);
}

.gallery-link:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.3;
}

/* ── Flip card ─────────────────────────────────────────────── */

.gallery-card {
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r);
}

.gallery-card__front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r);
  overflow: hidden;
}

.gallery-card__front img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  text-align: center;
}

.gallery-card--flip:hover,
.gallery-card--flip:focus-within,
.gallery-card--flip.flipped {
  transform: rotateY(180deg);
}

.gallery-card__back-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.gallery-card__back-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.gallery-card__back-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-top: 4px;
}

.gallery-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 0;
  font-size: 15px;
}

/* ── Lightbox ──────────────────────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  display: grid;
  grid-template-rows: 52px 1fr auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.4,0,.2,1);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─ Top bar ─ */
.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  flex-shrink: 0;
}

.lightbox-close {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.lightbox-counter {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}

/* ─ Stage ─ */
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 64px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  transition: opacity .3s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.34,1.06,.64,1);
}

.lightbox-img.loading {
  opacity: 0;
  transform: scale(.96);
}

/* ─ Nav arrows — verborgen, verschijnen bij hover ─ */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20,20,28,.55);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .2s, transform .2s;
  z-index: 2;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-stage:hover .lightbox-prev,
.lightbox-stage:hover .lightbox-next { opacity: 1; }

.lightbox-prev:hover { background: rgba(30,30,40,.8); transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { background: rgba(30,30,40,.8); transform: translateY(-50%) translateX(2px); }

.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: 0 !important; pointer-events: none; }

/* ─ Caption ─ */
.lightbox-caption {
  text-align: center;
  padding: 10px 48px 18px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  letter-spacing: -.01em;
  min-height: 40px;
  flex-shrink: 0;
}

body.lightbox-open { overflow: hidden; }

/* ── Page templates ────────────────────────────────────────── */

.page-content {
  padding: calc(var(--header-h) + 80px) 0 64px;
}

.page-header {
  text-align: center;
  margin-bottom: 72px;
}

.page-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text);
}

.page-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.page-intro p { margin-bottom: 1.4em; }
.page-intro p:last-child { margin-bottom: 0; }

.post-date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
}

.post-nav-link--next { margin-left: auto; }

.post-nav-link:hover { color: var(--text); }

.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
}

.entry-content p  { margin-bottom: 1.4em; }
.entry-content h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 2em 0 .6em; }
.entry-content h3 { font-size: 22px; font-weight: 600; color: var(--text); margin: 1.6em 0 .5em; }
.entry-content a  { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* ── Single photo ──────────────────────────────────────────── */

.single-photo__hero {
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.single-photo__img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.single-photo__meta {
  padding: 72px 40px 120px;
}

.single-photo__info {
  max-width: 720px;
  margin: 0 auto;
}

.single-photo__series {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(124,58,237,.15);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,.25);
  transition: background var(--t);
}

.tag:hover { background: rgba(124,58,237,.25); }

.single-photo__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.single-photo__content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.single-photo__exif {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-bottom: 32px;
}

.exif-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
}

.exif-item + .exif-item::before {
  content: '·';
  margin: 0 10px;
  color: var(--text-dim);
}

.exif-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}

.exif-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.single-photo__nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Post list ─────────────────────────────────────────────── */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-item {
  padding: 36px 28px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-sm);
  position: relative;
  transition: background var(--t);
}

.post-item:first-child { border-top: 1px solid var(--border); }

.post-item:nth-child(even) { background: rgba(151, 162, 182, .04); }

.post-item:hover { background: rgba(151, 162, 182, .08); }

.post-item-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-sm);
}

.post-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.post-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #97a2b6;
  background: rgba(151, 162, 182, .08);
  border: 1px solid rgba(151, 162, 182, .18);
  padding: 4px 12px;
  border-radius: 100px;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.post-tag:hover {
  background: rgba(151, 162, 182, .16);
  color: var(--text);
  border-color: rgba(151, 162, 182, .35);
}

.post-reading-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple);
}

.single-post-page { padding: 0; }

.single-post-hero {
  width: 100%;
  height: calc(70vh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
}

.single-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-post-page--has-hero {
  padding-top: 56px;
}

.post-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.post-item-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.post-item-title a { color: var(--text); }
.post-item-title a:hover { color: var(--purple); }

.post-excerpt,
.post-excerpt p {
  font-size: 16px;
  line-height: 1.55;
  color: #97a2b6;
}

/* ── Pagination ────────────────────────────────────────────── */

.pagination {
  text-align: center;
  margin-top: 80px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t);
}

.pagination .page-numbers:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.pagination .page-numbers.current {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.pagination a.prev,
.pagination a.next {
  width: auto;
  padding: 0 20px;
  letter-spacing: -.01em;
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  padding: 60px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a,
.footer-nav li a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--t);
}

.footer-nav a:hover,
.footer-nav li a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Voortgangsbalk (foto-pagina) ──────────────────────────── */

#photo-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transition: width .1s linear;
}

/* ── Serie-archiefpagina hero ──────────────────────────────── */

.serie-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  background: var(--surface);
  overflow: hidden;
}

.serie-hero--has-image {
  background: var(--bg) var(--serie-bg) center / cover no-repeat;
  min-height: 60vh;
}

.serie-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
  z-index: 1;
}

.serie-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 40px 56px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.serie-hero__title {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .92;
  color: var(--text);
  margin: 10px 0 14px;
}

.serie-hero__count {
  font-size: 14px;
  color: rgba(248,250,252,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.serie-desc {
  max-width: var(--section-text-width, 640px);
  margin: 0 auto 56px;
  text-align: center;
}

.serie-hero + .page-content {
  padding-top: 48px;
}

.serie-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 48px;
}

.serie-logos img {
  width: auto;
  max-width: none;
}

/* ── Submenu toggle (mobiel) ───────────────────────────────── */

.submenu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--t), color var(--t);
}

/* ── Footer met widgets ────────────────────────────────────── */

.footer-widgets {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-widgets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.footer-widget-col { min-width: 0; }

.footer-widget__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-widget p,
.footer-widget ul { margin: 0; padding: 0; list-style: none; }

.footer-widget p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.footer-widget li { margin-bottom: 8px; }

.footer-widget a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--t);
}

.footer-widget a:hover { color: var(--text); }

.site-footer .footer-inner {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.site-footer--no-widgets .footer-inner {
  border-top: none;
  margin-top: 0;
}

/* Social Icons block in footer
   WordPress's eigen block-CSS regelt kleuren en layout.
   We corrigeren alleen wat breekt op ons donkere thema. */

/* Zorg dat onze algemene .footer-widget a kleuroverride de icons niet raakt */
.footer-widget .wp-block-social-link a,
.footer-widget .wp-block-social-link-anchor {
  color: inherit;
}

/* Standaard grijze icon is onzichtbaar op donkere bg — maak wit */
.footer-widget .wp-block-social-links .wp-social-link {
  color: #fff;
}

/* Als WordPress's icon-achtergrond lichtgrijs is (standaard), vervang door donkergrijs zichtbaar op dark bg */
.footer-widget .wp-block-social-links:not(.has-icon-background-color):not(.has-icon-color) .wp-social-link {
  background-color: rgba(255,255,255,.12);
  color: #fff;
}

/* Paragraph and text blocks in footer */
.footer-widget .wp-block-paragraph,
.footer-widget p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Navigation menu block in footer */
.footer-widget .wp-block-navigation__container { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.footer-widget .wp-block-navigation-item a { font-size: 14px; color: var(--text-muted); transition: color var(--t); }
.footer-widget .wp-block-navigation-item a:hover { color: var(--text); }

/* ── Gestylde scrollbar ────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Animations ────────────────────────────────────────────── */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: .25; transform: scaleY(.75) translateY(0); }
  50%       { opacity: .7;  transform: scaleY(1)   translateY(4px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: no-JS */
@media (scripting: none) {
  .masonry-item,
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .masonry-grid { columns: 3 240px; }
  .gallery-section { padding: 72px 0; }
}

@media (max-width: 900px) {
  .masonry-grid { columns: 2 200px; }
  .gallery-section { padding: 56px 0; }
  .section-header { margin-bottom: 48px; }
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; --gap: 10px; }

  /* Mobile nav */
  .site-nav {
    position: fixed;
    inset: 0;
    transform: none;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
    z-index: 200;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    background: none;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }

  .nav-menu li a {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.02em;
    padding: 12px 32px;
    color: var(--text-muted);
  }

  .nav-menu li a:hover { color: var(--text); background: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile sub-menu */
  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-left: 6px;
  }

  .menu-item-has-children.submenu-open > .submenu-toggle {
    transform: rotate(180deg);
    color: var(--text);
    top: 2px;
  }

  .nav-menu .sub-menu {
    position: static !important;
    transform: none !important;
    min-width: 0;
    display: block !important;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s var(--ease), opacity .35s var(--ease);
  }

  .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 400px;
    opacity: 1;
    pointer-events: all;
    padding: 2px 0 12px;
  }

  .nav-menu .sub-menu li a {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 8px 16px;
    letter-spacing: -.01em;
  }

  /* Serie-hero mobiel */
  .serie-hero__content { padding: 32px 24px 40px; }

  /* Gallery */
  .masonry-grid { columns: 2 140px; }
  .gallery-section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .section-desc { font-size: 16px; }

  /* Hero */
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { padding: 13px 28px; font-size: 14px; }

  /* Lightbox */
  .lightbox-image-wrap { padding: 0 8px; }
  .lightbox-img        { max-height: calc(100vh - 120px); }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; opacity: 1; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  /* Page */
  .single-photo__meta { padding: 48px 24px 80px; }

  .single-photo__exif {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
  }

  .exif-item { flex-direction: column; gap: 2px; }
  .exif-item + .exif-item::before { display: none; }

  .exif-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
  }

  .exif-value { font-size: 14px; }
  .page-content { padding: calc(var(--header-h) + 48px) 0 80px; }
}

@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
  .container, .header-inner, .footer-inner { padding: 0 16px; }
  .gallery-section { padding: 36px 0; }
  .footer-nav { gap: 16px; }
  .single-photo__nav { flex-direction: column; align-items: flex-start; }
}

/* ── Contact page ───────────────────────────────────────────── */

.contact-page {
  min-height: calc(100vh - var(--header-h));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.contact-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.contact-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-intro p { margin-bottom: 1.4em; }
.contact-intro p:last-child { margin-bottom: 0; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 100px;
  transition: color var(--t), border-color var(--t), background var(--t);
  margin-bottom: 48px;
}

.contact-email:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}

.contact-portrait {
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 340px;
}

.contact-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}

/* ── CF7 form styling ───────────────────────────────────────── */

.contact-form-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
}

.contact-form-inner .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-inner p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-inner label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-form-inner input[type="text"],
.contact-form-inner input[type="email"],
.contact-form-inner input[type="tel"],
.contact-form-inner textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), background var(--t);
  -webkit-appearance: none;
}

.contact-form-inner input[type="text"]::placeholder,
.contact-form-inner input[type="email"]::placeholder,
.contact-form-inner input[type="tel"]::placeholder,
.contact-form-inner textarea::placeholder {
  color: var(--text-dim);
}

.contact-form-inner input[type="text"]:focus,
.contact-form-inner input[type="email"]:focus,
.contact-form-inner input[type="tel"]:focus,
.contact-form-inner textarea:focus {
  border-color: rgba(124, 58, 237, .6);
  background: rgba(124, 58, 237, .04);
}

.contact-form-inner textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form-inner .wpcf7-submit {
  align-self: flex-start;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 36px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  box-shadow: 0 0 40px rgba(124, 58, 237, .25);
}

.contact-form-inner .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 60px rgba(124, 58, 237, .45);
}

.contact-form-inner .wpcf7-submit:active {
  transform: translateY(0);
}

.contact-form-inner .wpcf7-response-output {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  border: none;
}

.contact-form-inner .wpcf7-mail-sent-ok {
  background: rgba(34, 197, 94, .12);
  color: #4ade80;
}

.contact-form-inner .wpcf7-validation-errors,
.contact-form-inner .wpcf7-mail-sent-ng,
.contact-form-inner .wpcf7-spam-blocked {
  background: rgba(239, 68, 68, .12);
  color: #f87171;
}

.contact-form-inner .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #f87171;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .contact-form-inner .wpcf7-submit {
    width: 100%;
    justify-content: center;
  }
}
