/* st11-sal ronde 2 — de projecten. De werking komt van Bouwbedrijf SAL (template2-minder: style.css 1082–1123, home.css
   92–95, 126–130, 155–161, 186–193, 254–257), de vorm is die van deze pagina: haarlijnen, scherpe hoeken, Playfair
   Display voor plaats en datum, de schaduw van deze pagina's foto's. Gelinkt na sal-fotos.css; het zegel, de speld en
   de viewer komen uit ronde 1. */

/* ---- projecten: one job per slide at one height, the frame following the picture (4:5, square, 4:3);
   the row starts on the page's left edge and runs out to the right; swipe, scroll or step with the buttons ---- */
/* the row runs the full width, so the section drops the page's side padding and its two .wrap blocks carry it
   instead: their text column lands where every other section's does */
.sectie.werk { padding-inline: 0; }
.werk > .wrap { max-width: calc(var(--wrap) + 2 * var(--rand)); padding-inline: var(--rand); }
.werk__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.werk__head .sectie__kop { margin-bottom: 0; }
.werk__echt { margin: 10px 0 0; max-width: 40em; color: var(--stil); font-size: var(--t-tekst); line-height: 1.55; }
.werk__nav { display: flex; gap: 10px; flex: none; }
.werk__btn {
  width: 52px; height: 52px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; color: var(--inkt); border: 1px solid var(--inkt);
  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(--inkt); color: var(--krijt-100); }
.werk__btn:disabled { opacity: .28; cursor: default; }
.werk__rij {
  --h: clamp(340px, 34vw, 480px);
  --edge: max(var(--rand), calc((100% - var(--wrap)) / 2));
  position: relative; z-index: 2;   /* the cards lie over the page's two plate lines */
  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%; overflow: hidden; cursor: zoom-in;
  background: var(--krijt-700);
}
.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: 2px; margin-top: 22px; background: var(--lijn); overflow: hidden; }
.werk__balk span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--inkt); opacity: .85; }
@media (max-width: 560px) {
  .werk__rij { --h: min(400px, 104vw); }
  .werk__btn { width: 44px; height: 44px; }
  .werk__btn .ico { width: 18px; height: 18px; }
}

/* ---- the last card as "+N" (home.css 92–95): ready for when the series grows past the row; no card uses it today ---- */
.werk__open.meer .meer__n b { font-size: clamp(30px, 16cqmin, 56px); }
.werk__open.meer .meer__w { font-size: 14px; }

/* ---- the cards: his stamp top right (home.css 126–130), a shade from the foot, the place and date large on it with
   the pin (home.css 155–161). The shade is this page's own: leisteen, the stops of st11's photo shade. ---- */
.werk__open .zegel { right: 12px; top: 12px; width: 72px; height: 72px; }
.werk__open .label:not(.label--plain) {
  flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-end;
  padding: 80px 20px 18px; border-top: 0;
  background: linear-gradient(to top, rgba(34, 43, 51, .86) 0%, rgba(34, 43, 51, .62) 38%, rgba(34, 43, 51, 0) 100%);
}
.werk__open .label__waar {
  display: flex; align-items: center; gap: 8px; color: #fff; text-transform: none;
  font: 400 1.38rem/1.22 var(--serif); letter-spacing: .005em; text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.werk__open .label__waar .fotonotitie__stip { width: .2em; height: .2em; margin-inline: .45em; vertical-align: .22em; }
.werk__open .label__waar::before {
  content: ''; flex: none; width: 19px; height: 19px; background: var(--lucht-300);
  -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__open .zegel { width: 64px; height: 64px; }
  .werk__open .label:not(.label--plain) { padding: 64px 16px 15px; }
  .werk__open .label__waar { font-size: 1.19rem; }
  .werk__open .label__waar::before { width: 17px; height: 17px; }
}

/* ============ ROND 2026-10-06 — the project 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; }
