/* Algemene stijlen */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Homepage */
html.home-page { height: 100%; width: 100%; }
  body.home-page { min-height: 100%; width: 100%; padding: 2rem 0; }

  body.home-page {
    font-family: 'Arial Narrow', Arial, sans-serif;
    background-color: #f4f1ea;
    background-image:
      /* subtiele papier-vlekken */
      radial-gradient(circle at 20% 30%, rgba(0,0,0,0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(0,0,0,0.05) 0%, transparent 40%),
      /* potloodarcering - diagonale lijnen */
      repeating-linear-gradient(
        45deg,
        rgba(60, 60, 60, 0.08) 0px,
        rgba(60, 60, 60, 0.08) 1px,
        transparent 1px,
        transparent 4px
      ),
      repeating-linear-gradient(
        -45deg,
        rgba(40, 40, 40, 0.06) 0px,
        rgba(40, 40, 40, 0.06) 1px,
        transparent 1px,
        transparent 6px
      ),
      repeating-linear-gradient(
        90deg,
        rgba(80, 80, 80, 0.04) 0px,
        rgba(80, 80, 80, 0.04) 1px,
        transparent 1px,
        transparent 3px
      );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* papier-textuur overlay via SVG noise */
  body.home-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: multiply;
  }

  .title {
    position: relative;
    color: #2b2b2b;
    font-weight: 400;
    text-align: center;
    padding: 0 5vw;
    font-size: clamp(2.5rem, 12vw, 9rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    word-break: break-word;
    z-index: 2;
  }

  .wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .gallery-link {
    font-family: Arial, sans-serif;
    margin-top: 1.5rem;
    color: #2b2b2b;
    font-size: clamp(1rem, 3vw, 1.4rem);
    text-decoration: none;
    border-bottom: 1px dashed #2b2b2b;
    padding-bottom: 2px;
    opacity: 0.85;
    transition: opacity 0.2s;
  }
  .gallery-link:hover { opacity: 1; }

  .bio {
    max-width: 36rem;
    margin-top: 1.5rem;
    padding: 0 1.5rem;
    color: #2b2b2b;
    font-family: Arial, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    text-align: center;
  }

  .title::after {
    content: "";
    display: block;
    width: 70%;
    height: 3px;
    margin: 0.5rem auto 0;
    background: repeating-linear-gradient(
      90deg,
      #2b2b2b 0,
      #2b2b2b 6px,
      transparent 6px,
      transparent 10px
    );
    opacity: 0.6;
  }

/* Collectie */
html.collection-page, body.collection-page { width: 100%; min-height: 100%; }

  body.collection-page {
    background-color: #f4f1ea;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(0,0,0,0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(0,0,0,0.05) 0%, transparent 40%),
      repeating-linear-gradient(45deg, rgba(60,60,60,0.06) 0, rgba(60,60,60,0.06) 1px, transparent 1px, transparent 4px),
      repeating-linear-gradient(-45deg, rgba(40,40,40,0.05) 0, rgba(40,40,40,0.05) 1px, transparent 1px, transparent 6px);
    font-family: 'Georgia', serif;
    color: #2b2b2b;
    padding: 2rem 1rem 3rem;
    position: relative;
  }

  body.collection-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0.2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 0;
  }

  header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .collection-page h1 {
    font-family: 'Bradley Hand', 'Segoe Script', 'Comic Sans MS', cursive;
    font-size: clamp(2rem, 7vw, 4rem);
    letter-spacing: 0.02em;
  }

  .subtitle {
    font-style: italic;
    color: #555;
    margin-top: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  }

  .back {
    display: inline-block;
    margin-top: 1rem;
    color: #2b2b2b;
    text-decoration: none;
    border-bottom: 1px dashed #2b2b2b;
    font-size: 0.95rem;
  }
  .back:hover { opacity: 0.7; }

  .gallery {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .card {
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  .card:hover {
    transform: scale(1.03);
  }

  .card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: transparent;
  }

  /* Lightbox */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    cursor: zoom-out;
  }
  .lightbox.open { display: flex; }
  .lightbox img {
    max-width: calc(100% - 6rem);
    max-height: calc(100% - 4rem);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    cursor: pointer;
  }
  .lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    font: 2rem Arial, sans-serif;
    cursor: pointer;
  }
  .lightbox button:hover { background: rgba(255,255,255,0.3); }
  .lightbox button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }
  .lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
  .lightbox-count {
    position: absolute;
    bottom: 1rem;
    color: #fff;
    font: 1rem Arial, sans-serif;
  }

  @media (max-width: 500px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .card img { height: 160px; }
    body.collection-page { padding: 1.5rem 0.8rem 2rem; }
  }
