:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #9a9a9a;
  --line: #ececec;
  --sidebar-w: 250px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Sidebar (klein menu links) ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg);
  z-index: 40;
}

.sidebar-top { margin-bottom: 3rem; }

.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.tagline {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--muted);
}

/* Reizen-lijst */
.trips {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}
.trip-link {
  background: none;
  border: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  text-transform: lowercase;
  color: var(--muted);
  padding: 0.5rem 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.25s, padding-left 0.25s;
  position: relative;
}
.trip-link:hover { color: var(--ink); padding-left: 0.4rem; }
.trip-link.active {
  color: var(--ink);
  padding-left: 0.6rem;
}
.trip-link.active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0.3rem; height: 0.3rem;
  background: var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
}
.trip-link .year {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 300;
}

.sidebar-bottom {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-bottom a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}
.sidebar-bottom a:hover,
.sidebar-bottom a.active { color: var(--ink); }

/* ---------- Hoofdgebied / viewer ---------- */
.viewer {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.intro {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  /* Vullende achtergrondfoto — vervang images/hero.jpg door je eigen foto */
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* donkere waas zodat de tekst leesbaar blijft */
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.intro-content {
  position: relative;
  z-index: 1;
}
.intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: #fff;
  text-transform: lowercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.intro p {
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Reis-weergave */
.trip-view { padding: 0; }
.trip-header {
  padding: clamp(3rem, 8vh, 6rem) 2rem clamp(2rem, 5vh, 4rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.trip-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: lowercase;
}
.trip-header .meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.trip-header .desc {
  margin-top: 1.25rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  text-transform: lowercase;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

/* Verticale scroll-lijst met foto's */
.photo-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 4vh, 3rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 6rem;
}
.photo-stream figure { margin: 0; }
.photo-stream img { display: block; width: 100%; height: auto; background: #f4f4f4; }

/* liggend: volle breedte */
.photo-stream > figure.landscape img { max-height: 85vh; object-fit: contain; }

/* staande paren: naast elkaar, uitgelijnd op hoogte (breedte volgt de verhouding) */
.pair {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: flex-start;
}
.pair figure { flex-grow: 1; flex-shrink: 1; flex-basis: 0; min-width: 0; }
/* oneven overblijver: half breed en gecentreerd */
.pair.single { justify-content: center; }
.pair.single figure { flex: 0 1 auto !important; max-width: calc(50% - 0.625rem); }
.photo-stream figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.photo-stream .cap-meta {
  font-size: inherit;
  color: #ababab;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* fade-in bij scrollen */
.photo-stream figure {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.photo-stream figure.in-view { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-view {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) clamp(1.25rem, 5vw, 3rem) 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-view img { width: 100%; height: auto; background: #f4f4f4; }
.about-view h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: lowercase;
  margin-bottom: 1.25rem;
}
.about-view .about-text p {
  color: #555;
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 46ch;
}
@media (max-width: 768px) {
  .about-view { grid-template-columns: 1fr; }
}

/* ---------- Mobiel ---------- */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 0.6rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.25s;
}

/* sluitknop in de zijbalk (alleen mobiel) */
.sidebar-close { display: none; }

/* sticky onderbalk met andere reizen (alleen mobiel, als album open is) */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
  }
  .sidebar.open { transform: translateX(0); }
  .viewer { margin-left: 0; }
  .intro { padding-top: 5rem; }

  /* Trips-knop verdwijnt zodra het menu open is */
  .sidebar.open ~ .menu-toggle { opacity: 0; pointer-events: none; }

  /* ✕ rechtsboven in het uitgeschoven menu (schuift mee) */
  .sidebar-close {
    display: block;
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    padding: 0 0.4rem;
  }

  /* album open: trips-knop weg, onderbalk met andere reizen tonen */
  body.trip-open .menu-toggle { display: none; }
  body.trip-open .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    justify-content: center;
    gap: 2rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav button {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--muted);
    cursor: pointer;
  }
  .bottom-nav button:active { color: var(--ink); }
  .bottom-nav .bn-trips { color: var(--ink); }
  /* extra ruimte onderaan zodat de laatste foto niet achter de balk valt */
  body.trip-open .photo-stream { padding-bottom: 5rem; }
}

@media (max-width: 600px) {
  /* staande paren onder elkaar op smalle schermen */
  .pair { flex-direction: column; gap: clamp(1rem, 4vh, 3rem); }
  .pair figure { flex: none; width: 100%; }
  .pair figure img { max-height: 85vh; object-fit: contain; }
}
