html { scroll-behavior: smooth; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bruin); color: var(--papier); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--papier); }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(20px, 5vw, 64px); background: rgba(251, 248, 243, 0.94); border-bottom: 1px solid var(--lijn); backdrop-filter: blur(6px); }
.topbar-logo img { width: 52px; height: 52px; object-fit: contain; }
.topbar nav a { display: inline-block; padding: 12px 0; text-decoration: none; }

.hero { background: var(--creme); padding: clamp(40px, 8vw, 104px) 24px clamp(40px, 6vw, 88px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: min(680px, 100%); height: auto; mix-blend-mode: multiply; }
.tagline { margin: 4px 0 0; max-width: 560px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--bruin-zacht); }
.tagline:empty { display: none; }
.hero-knop { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 28px; border: 1px solid var(--brons); text-decoration: none; transition: background-color .2s, color .2s; }
.hero-knop:hover { background: var(--bruin); border-color: var(--bruin); color: var(--papier); }

.portfolio { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 40px); }
.portfolio-kop { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }
.portfolio-kop h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.1; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filters[hidden] { display: none; }
.filter { min-height: 44px; padding: 0 20px; border: 1px solid var(--lijn-donker); background: transparent; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--bruin); }
.filter[aria-pressed="true"] { background: var(--bruin); border-color: var(--bruin); color: var(--papier); }

.galerij { columns: 3 260px; column-gap: 16px; }
.tegel { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--creme); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.tegel img { width: 100%; height: auto; transition: transform .5s ease, opacity .4s ease; opacity: 0; }
.tegel img.geladen { opacity: 1; }
.tegel:hover img { transform: scale(1.02); }

.leeg { text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bruin-zacht); padding: 40px 0; }

.voet { border-top: 1px solid var(--lijn); padding: 40px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.voet img { width: 44px; height: 44px; object-fit: contain; }
.voet p { margin: 0; color: var(--bruin-zacht); }
.voet .klein { font-size: 11px; letter-spacing: 0.28em; }
.voet-tekst { font-size: 12px; max-width: 520px; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(42, 33, 26, 0.96); color: var(--creme); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox::backdrop { background: rgba(42, 33, 26, 0.96); }
.lb-figuur { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.lb-figuur img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lb-figuur figcaption { font-family: var(--serif); font-style: italic; font-size: 22px; min-height: 1em; }
.lb-knop { flex: none; width: 48px; height: 48px; border: 1px solid rgba(239, 230, 218, 0.4); background: transparent; color: var(--creme); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-knop:hover { background: rgba(239, 230, 218, 0.1); }
.lb-sluit { position: absolute; top: 16px; right: 16px; border: 0; }
.lb-knop[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox[open] { padding: 64px 8px 24px; gap: 4px; }
  .lb-vorige, .lb-volgende { position: absolute; bottom: 20px; }
  .lb-vorige { left: calc(50% - 56px); }
  .lb-volgende { right: calc(50% - 56px); }
  .lb-figuur img { max-height: calc(100vh - 180px); }
}

/* Foto's niet makkelijk opslaan via slepen */
.tegel img, .lb-figuur img { -webkit-user-drag: none; user-select: none; }
