/* template1-sal, round 2 — the projects section. SAL's mechanics verbatim (template2-minder: style.css 1082–1123,
   home.css 92–95, 116, 126–131, 155–161, 171, 186–193, 254–257); colour and letter of this page: SAL's kalk →
   his lifted ground (--nacht-2), kalk-wit → white, lood → his navy (--room), dakpan → his blue (--koper),
   kalk-rand → his rule colour (--room-3), the technical letter → Montserrat (--f-sans). */

/* ---- projecten: one job per slide at one height, the frame following the picture (4:5, 4:3); the row starts on the
   page's left edge and runs out to the right; swipe, scroll or step with the buttons ---- */
.werk { background: var(--nacht-2); padding: var(--sec) 0; }
.werk__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.werk__head .sec-h { margin-bottom: 0; }
.werk__echt { margin: 10px 0 0; max-width: 40em; color: var(--inkt-75); font-size: var(--t-tekst); line-height: 1.5; }
.werk__nav { display: flex; gap: 10px; flex: none; }
.werk__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--nacht); color: var(--room); border: 2px solid var(--room);
  transition: background-color .15s, color .15s, opacity .15s;
}
.werk__btn .ico { width: 20px; height: 20px; }
.werk__btn--prev .ico { transform: rotate(180deg); }
.werk__btn:hover:not(:disabled) { background: var(--room); color: var(--nacht); }
.werk__btn:disabled { opacity: .28; cursor: default; }
.werk__rij {
  --h: clamp(340px, 34vw, 480px);
  --edge: max(var(--gut), calc((100% - var(--wrap)) / 2));
  position: relative; display: flex; gap: clamp(12px, 1.4vw, 18px); margin: 0; list-style: none;
  padding: 4px var(--edge) 10px; scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.werk__rij::-webkit-scrollbar { display: none; }
.werk__slide { flex: none; height: var(--h); aspect-ratio: 4 / 5; max-width: 86vw; scroll-snap-align: start; }
.werk__slide--11 { aspect-ratio: 1; }
.werk__slide--43 { aspect-ratio: 4 / 3; }
.werk__open {
  position: relative; display: block; width: 100%; height: 100%; border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: var(--nacht-3); box-shadow: var(--shadow-1);
}
.werk__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.werk__open:hover img { transform: scale(1.03); }
.werk__open .label { pointer-events: none; }
.werk__open:focus-visible { outline-offset: -3px; }
.werk__balk { position: relative; height: 3px; margin-top: 22px; border-radius: 2px; background: var(--room-3); overflow: hidden; }
.werk__balk span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--koper); transition: left .2s, width .2s; }

/* the last card is the "+4", in the carousel's own shape; the count a little larger on a card */
.werk__open.meer .meer__n b { font-size: clamp(30px, 16cqmin, 56px); }
.werk__open.meer .meer__w { font-size: 14px; }

/* his stamp on every project card */
.werk__open .zegel { right: 12px; top: 12px; width: 72px; height: 72px; }

/* the project cards: a shade from the foot, the place and date large on it with a pin */
html[data-v] .werk__open .label:not(.label--plain) {
  flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 80px 20px 18px; border-top: 0;
  background: linear-gradient(to top, rgba(13, 28, 39, .86) 0%, rgba(13, 28, 39, .55) 50%, rgba(13, 28, 39, 0) 100%);
}
.werk__open .label__waar {
  display: flex; align-items: center; gap: 8px; color: #FFFFFF; font: 700 22px/1.15 var(--f-sans); letter-spacing: .02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.werk__open .label__waar::before {
  content: ''; flex: none; width: 19px; height: 19px; background: #68B8EC;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.6a2.6 2.6 0 110-5.2 2.6 2.6 0 010 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.6a2.6 2.6 0 110-5.2 2.6 2.6 0 010 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 560px) {
  .werk__rij { --h: min(400px, 104vw); }
  .werk__btn { width: 44px; height: 44px; }
  .werk__btn .ico { width: 18px; height: 18px; }
  .werk__open .zegel { width: 64px; height: 64px; }
  html[data-v] .werk__open .label:not(.label--plain) { padding: 64px 16px 15px; }
  .werk__open .label__waar { font-size: 19px; }
  .werk__open .label__waar::before { width: 17px; height: 17px; }
}

/* ROND (SAL 2026-10-06): the row goes round; the bar follows the scroll directly, so at the end of a round it does
   not sweep back across */
.werk__balk span { transition: none; }
