:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --ink: #141413;
  --line: #cfc8ba;
  font-family: Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1500px; margin: auto; padding: 0 clamp(1rem, 4vw, 4rem) 3rem; }
a { color: inherit; }
.masthead, .section-head, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.masthead { font-size: .92rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.square { display: block; width: 1rem; aspect-ratio: 1; background: var(--ink); }
.hero {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1fr);
  align-items: end;
  gap: clamp(1rem, 5vw, 5rem);
  padding: clamp(1.4rem, 5vw, 5rem) 0;
}
h1 { margin: 0; font-size: clamp(2.85rem, 7.8vw, 8rem); font-weight: 700; line-height: .88; letter-spacing: -.084em; }
.hero p { margin: 1.4rem 0 0; line-height: 1.55; }
.hero img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.section-head { border-top: 1px solid var(--ink); margin-bottom: 1rem; }
h2 { margin: 0; font-size: 1.15rem; }
.section-head span { font-size: .9rem; }
.galerij { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.45rem,1.5vw,1.3rem); }
.foto { display: block; position: relative; border: 1px solid var(--line); cursor: zoom-in; }
.foto img { display: block; width: 100%; height: auto; }
.foto::after {
  content: "";
  position: absolute;
  inset: 92.625% auto auto 92.625%;
  width: 1.52%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(#fff,#fff) center / 100% 24% no-repeat,
    linear-gradient(#fff,#fff) center / 24% 100% no-repeat;
}
:focus-visible { outline: 2px solid #196ba1; outline-offset: 3px; }
footer { margin-top: 1.5rem; border-top: 1px solid var(--line); border-bottom: 0; font-size: .9rem; }
dialog { max-width: 100%; max-height: 100%; padding: .5rem; border: 0; background: var(--ink); color: #fff; }
dialog::backdrop { background: rgb(12 12 12 / 94%); }
html:has(dialog[open]) { overflow: hidden; }
.viewer { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; }
.viewer-top, .viewer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.viewer-top { padding-left: .6rem; font-variant-numeric: tabular-nums; }
.viewer-bottom { padding: .4rem .6rem 0; }
.viewer img { width: min(75vw,75dvh); height: auto; aspect-ratio: 1; object-fit: contain; touch-action: pan-y pinch-zoom; }
button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.65rem; cursor: pointer; }
.koop { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .galerij { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .viewer { grid-template-columns: 1fr 1fr; }
  .viewer img { grid-column: 1 / -1; grid-row: 2; width: min(94vw,65dvh); }
  .vorige,.volgende { grid-row: 3; }
}

.project-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.project-nav a { display: inline-flex; align-items: center; min-height: 44px; }
