/* template1-sal, round 1 — the pictures (2026-10-14). SAL's picture system (template2-minder: style.css 134–142,
   1031–1056, 1144–1187, 1269–1333; home.css 1–29, 96–247), the mechanics verbatim, set in this page's look:
   SAL's terracotta → his blue #0061CE (on a dark ground the light blue #68B8EC), SAL's lood → his navy #0D1C27,
   SAL's technical face → Montserrat (var(--f-sans)). Literal colours on purpose: the page's own variables flip per
   section (the doors swap --room and --nacht), and these pieces sit on photos and on the viewer's dark ground. */

/* ==================================================== A MAIN PHOTO THAT OPENS THE VIEWER (SAL home.css 1–29) */
.foto-open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.foto-open img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.foto-open:hover img { transform: scale(1.02); }
.foto-open:focus-visible { outline-offset: -3px; }
.foto-open ~ .label { pointer-events: none; }

/* ==================================================== THUMBNAILS (SAL style.css 1031–1056, home.css) */
.duimen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.duim {
  position: relative; display: block; width: 64px; height: 64px; overflow: hidden; cursor: zoom-in;
  background: #DCE4EB; box-shadow: 0 0 0 2px #FFFFFF, 0 2px 8px rgba(13, 28, 39, .2);
  transition: box-shadow .15s, transform .15s;
}
.duim img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duim:hover { box-shadow: 0 0 0 2px #0061CE, 0 4px 12px rgba(13, 28, 39, .24); transform: translateY(-1px); }
.duim:focus-visible { outline-offset: 2px; }
/* shaped for their pictures: 3:4 upright, 4:3 landscape, square; each place sets its own height */
.duim.duim--34 { width: 48px; height: 64px; }
.duim.duim--43 { width: 85px; height: 64px; }
.duim.duim--11 { width: 64px; height: 64px; }
.ba__duimen { width: round(down, 100%, 1px); }

/* the kunststof card: on the seam where the white card meets the picture, at its right. Here the card's copy is
   display: contents (his l=3 layout), so the row is placed against the card's body, not its copy. */
@media (min-width: 1061px) {
  html[data-l] .lead-card .lead-card__copy > .duimen--lead {
    position: absolute; top: 0; right: var(--px, 44px); z-index: 2; grid-column: auto; grid-row: auto;
    width: round(down, 46%, 1px); margin: 0; justify-content: flex-end; transform: translateY(-50%);
  }
}
@media (max-width: 1060px) {
  html[data-l] .lead-card .lead-card__copy > .duimen--lead {
    position: relative; z-index: 2; justify-content: flex-end;
    margin: -36px var(--px, 18px) calc(16px - var(--pt, 26px));   /* over the seam; the heading keeps SAL's 16px under the row */
  }
}
@media (max-width: 560px) {
  .duimen--lead .duim.duim--43 { width: 75px; height: 56px; }
  html[data-l] .lead-card .lead-card__copy > .duimen--lead { margin-top: -32px; }
}

/* the doors: on each door's photo, along its foot (SAL 10-01 put them under it). By hand, 2026-10-14, the operator:
   "they need to be strictly only on top of the image" — round 1 gave them a grid row of their own under the photo,
   which hung them half off the photo and made each door card 66px taller than template 1. Now the row lies inside the
   photo's own area, 18px from its foot (15px on a phone), and the place and date stand above it: the label's padding
   at the foot takes the row's height. The photo frame is template 1's again. */
.duimen--door { position: relative; z-index: 2; }
.duimen--door .duim { box-shadow: 0 0 0 2px #FFFFFF, 0 2px 8px rgba(0, 0, 0, .25); }
.duimen--door .duim:hover { box-shadow: 0 0 0 2px #0061CE, 0 4px 12px rgba(0, 0, 0, .3); }
.duimen--door .duim.duim--43 { width: 75px; height: 56px; }
html[data-v] .doors .door__photo .label:not(.label--plain) { padding-bottom: calc(18px + 56px + 14px); }
@media (min-width: 961px) {
  html[data-d="3"] .doors .door > .duimen--door { grid-column: 1; grid-row: 1 / -1; align-self: end; margin: 0 20px 18px; }
  html[data-d="3"] .doors .door + .door > .duimen--door { grid-column: 2; }
}
@media (max-width: 960px) {
  /* stacked, the row follows the photo: pulled up over the photo's foot, and the photo's 28px under it moves under the row */
  html[data-d="3"] .doors .door > .door__photo { margin-bottom: 0; }
  html[data-d="3"] .doors .door > .duimen--door { margin: calc(-18px - 56px) 20px calc(18px + 28px); }
}
@media (max-width: 560px) {
  .duimen--door .duim.duim--43 { width: 69px; height: 52px; }
  html[data-v] .doors .door__photo .label:not(.label--plain) { padding-bottom: calc(15px + 52px + 12px); }
  html[data-d="3"] .doors .door > .duimen--door { margin: calc(-15px - 52px) 16px calc(15px + 24px); }
}

/* the slider: under the slider and its caption */
.ba__duimen { margin-top: 12px; }
html[data-s="3"] .svc-bath__grid .ba { margin-bottom: 26px; }

/* ==================================================== THE "+N" TILE (SAL style.css 1269–1333)
   A place shows its picks; the photos behind them open only in the viewer. The first of those stands after the last
   thumbnail as a tile in that thumbnail's shape and says how many there are; sal-1.js fills the row as wide as it is.
   The sluier: the next photo itself under a dark veil, the count large in white. */
.meer { container-type: size; }
.meer__n {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; pointer-events: none; text-align: center; line-height: 1;
}
.meer__n b { display: block; font-family: var(--f-sans); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.meer__w { display: block; font-family: var(--f-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.meer img { transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .2s; }
.meer::after { content: ""; position: absolute; inset: 0; background: rgba(13, 28, 39, .58); transition: background-color .2s; }
.meer:hover::after { background: rgba(13, 28, 39, .36); }
.meer__n { color: #FFFFFF; text-shadow: 0 1px 8px rgba(13, 28, 39, .45); }
.meer__n b { font-size: clamp(16px, 36cqmin, 44px); }
.meer__w { display: none; font-size: clamp(10px, 11cqmin, 13px); color: #DCE4EB; }
@container (min-width: 84px) and (min-height: 84px) { .meer__w { display: block; } }
/* every one of the series fits the row: the tile is just its last thumbnail */
.meer-plek--laatste .meer::after, .meer-plek--laatste .meer__n { display: none; }

/* ==================================================== HIS STAMP (SAL ECHT): on every work photo, tilted as if pressed on */
.zegel {
  display: block; position: absolute; z-index: 2; width: 92px; height: 92px; pointer-events: none;
  transform: rotate(-12deg); filter: drop-shadow(0 2px 5px rgba(13, 28, 39, .38)); font-family: var(--f-sans);
}
.lead-card__photo .zegel { left: 18px; top: 70px; }
.door__photo .zegel { right: 12px; top: 12px; width: 76px; height: 76px; }
.ba__stage .zegel { right: 14px; bottom: 66px; }
.area__photo .zegel { right: 12px; top: 12px; width: 76px; height: 76px; }   /* top right: in his narrower side column the band wraps to two lines */

/* ==================================================== THE LINE AT THE END OF A DESCRIPTION (SAL ECHT)
   "Projecten die wij gedaan hebben · N foto's", opening its series */
.echt-regel {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; background: none;
  font-family: var(--f-sans); font-weight: 600; font-size: var(--t-klein); letter-spacing: .03em; line-height: 1.35;
  color: #44505B; text-align: left; cursor: pointer;
}
.echt-regel .ico { flex: none; width: 17px; height: 17px; fill: #0061CE; }
.echt-regel b { font-weight: 700; color: #0D1C27; }
.echt-regel u { text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.echt-regel:hover u { text-decoration-thickness: 2px; }
/* one piece after the paragraph's last word, on a line of its own where it does not fit */
p > .echt-regel { display: inline-block; max-width: 100%; margin: 0; vertical-align: baseline; }
p > .echt-regel .ico { display: inline-block; vertical-align: -3px; margin-right: 7px; }

/* ==================================================== THE BAND (SAL LABEL): "Bekijk onze projecten" left, the place
   and date right, across the photo's foot (on the kunststof card across its top, as SAL's loodgieter) */
.label { pointer-events: none; }
.label__wie { display: block; text-transform: uppercase; }
.label__waar { display: block; text-transform: none; }
html[data-v] .label:not(.label--plain) {
  left: 0; right: 0; bottom: 0; top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 6px 14px; flex-wrap: wrap; padding: 13px 18px 12px; border-radius: 0; letter-spacing: normal;
  background: rgba(13, 28, 39, .84); border-top: 3px solid #0061CE;
}
html[data-v] .lead-card__photo .label:not(.label--plain) { top: 0; bottom: auto; border-top: 0; border-bottom: 3px solid #0061CE; }
.label__wie { color: #FFFFFF; font: 700 19px/1 var(--f-sans); letter-spacing: .14em; }
.label__waar { color: #DCE4EB; font: 600 13px/1.2 var(--f-sans); letter-spacing: .06em; }
.label--ba { z-index: 3; }

/* ==================================================== THE DOOR PHOTOS (SAL PLEK): a shade from the foot, the place and
   date large with the pin, "Bekijk onze projecten →" as a pill top left, the stamp top right */
html[data-v] .door__photo .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%);
}
.door__photo .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);
}
.bekijk-foto {
  position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; pointer-events: none;
  padding: 11px 15px 10px; background: #0061CE; color: #FFFFFF; box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  font: 700 15px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase;
}
.bekijk-foto .ico { width: 16px; height: 16px; }

/* the pin, before the place on the door photos and in the viewer */
.lb__cap::before, .door__photo .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;
}

/* the slider: the band lies in the stage, its hint goes under the photo, as SAL's slider (his s=3 laid the caption
   over the photo's foot, where the band now is) */
html[data-s] .ba .ba__cap { position: static; justify-content: flex-end; margin: 10px 0 0; pointer-events: auto; }
html[data-s] .ba .ba__cap > * { background: none; color: #44505B; padding: 0; }

/* ==================================================== THE VIEWER (SAL style.css 1144–1187, 1269–1333; home.css KNOP)
   the picture whole on a dark ground; close with ×, Esc or a click beside it; the counter top left, the strip along
   the foot, the place and date large with the pin, and "Ook zo'n klus?" with call and WhatsApp */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 64px clamp(12px, 6vw, 88px); background: rgba(13, 28, 39, .97); color: #FFFFFF;
}
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: transparent; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb__img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px);
  border-radius: 4px; box-shadow: var(--shadow-2); background: #0D1C27;
}
.lb__x, .lb__nav {
  position: fixed; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.lb__x { top: 12px; right: 12px; width: 48px; height: 48px; background: #FFFFFF; color: #0D1C27; font-size: 30px; line-height: 1; }
.lb__x:hover { background: #0061CE; color: #FFFFFF; }
.lb__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.lb__nav:hover { background: #0061CE; }
.lb__nav .ico { width: 22px; height: 22px; }
.lb__nav--prev { left: 12px; }
.lb__nav--prev .ico { transform: rotate(180deg); }
.lb__nav--next { right: 12px; }
.lb--one .lb__nav { display: none; }
html.lb-open { overflow: hidden; }

/* the counter, top left across from the ×: where you are in this series ("4 / 16") */
.lb__tel {
  position: fixed; top: 12px; left: 12px; margin: 0; height: 48px; padding: 0 18px; display: flex; align-items: center;
  border-radius: 24px; background: rgba(255, 255, 255, .14); color: #FFFFFF;
  font-family: var(--f-sans); font-weight: 700; font-size: 15px; letter-spacing: .08em; line-height: 1; font-variant-numeric: tabular-nums;
}
.lb__tel[hidden] { display: none; }

/* the strip: every photo of the series as a thumbnail along the foot, the current one lit */
.lb--one .lb__strook { display: none; }
.lb__t { position: relative; flex: none; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #0D1C27; }
.lb__t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb__t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.lb__t.is-nu::after { box-shadow: inset 0 0 0 3px #FFFFFF; }
.lb__t:focus-visible { outline: 2px solid #68B8EC; outline-offset: 2px; }
.lb { padding-bottom: 104px; }
.lb__strook {
  display: flex; gap: 6px; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 24px);
  padding: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain; border-radius: 8px; background: rgba(255, 255, 255, .08);
}
.lb__strook::-webkit-scrollbar { display: none; }
.lb__strook .lb__t { width: 56px; height: 56px; opacity: .55; transition: opacity .15s; }
.lb__strook .lb__t:hover, .lb__strook .lb__t.is-nu { opacity: 1; }

/* the place and date alone, large, with the pin (no caption where a photo has no place) */
.lb__cap {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  color: #FFFFFF; font-family: var(--f-sans); font-size: 21px; font-weight: 700; letter-spacing: .02em;
}
.lb__cap[hidden] { display: none; }

/* KNOP: on a computer "Ook zo'n klus?" and the two buttons right under the photo and its place */
.lb__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 4px; }
.lb__vraag { margin: 0; color: #FFFFFF; font: 700 15px/1.2 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; }
.lb__knoppen { display: flex; gap: 10px; }
.lb__knoppen .btn { min-height: 50px; padding: 0 22px; white-space: nowrap; }
.lb__kort { display: none; }   /* wide: the number (a computer cannot tap to call); a phone: one word each */
.lb__img { max-height: calc(100vh - 300px); max-height: calc(100svh - 300px); }

/* ==================================================== THE PHONE (SAL's phone rules for all of the above) */
@media (max-width: 560px) {
  .zegel { width: 72px; height: 72px; }
  .door__photo .zegel, .area__photo .zegel { width: 64px; height: 64px; }
  .lead-card__photo .zegel { top: 68px; }   /* SAL 56px; in Montserrat the band wraps to two lines on a phone */
  .ba__stage .zegel { bottom: 68px; }        /* SAL 60px; same reason */

  html[data-v] .label:not(.label--plain) { padding: 10px 14px 9px; }
  .label__wie { font-size: 16px; }
  .label__waar { font-size: 12px; }
  html[data-v] .door__photo .label:not(.label--plain) { padding: 64px 16px 15px; }
  .door__photo .label__waar { font-size: 19px; }
  .lb__cap::before, .door__photo .label__waar::before { width: 17px; height: 17px; }
  .bekijk-foto { left: 10px; top: 10px; padding: 9px 12px 8px; font-size: 13px; gap: 7px; }
  .bekijk-foto .ico { width: 14px; height: 14px; }
  html[data-s] .ba .ba__cap { display: none; }   /* his s=3 hides the hint on a phone; the caption has nothing else */

  .lb { padding: 64px 10px 150px; }
  .lb__nav { top: auto; bottom: 16px; margin-top: 0; width: 48px; height: 48px; }
  .lb__nav--prev { left: calc(50% - 58px); }
  .lb__nav--next { right: calc(50% - 58px); }
  .lb__strook { bottom: 76px; }
  .lb__strook .lb__t { width: 48px; height: 48px; }
  .lb__cap { font-size: 18px; }
  /* KNOP on a phone: two small buttons in the top row beside the × */
  .lb__vraag, .lb__lang { display: none; }
  .lb__kort { display: inline; }
  .lb__cta { position: fixed; top: 12px; right: 66px; margin: 0; flex-wrap: nowrap; }
  .lb__knoppen { gap: 6px; }
  .lb__knoppen .btn { min-height: 48px; padding: 0 14px; font-size: 15px; gap: 7px; }
  .lb__img { max-height: calc(100svh - 270px); }
  .lb__tel { padding: 0 12px; font-size: 14px; }
}
/* below 401px the pill would run into the stamp (Montserrat sets wider than SAL's face): tighter, same words */
@media (max-width: 400px) {
  .bekijk-foto { padding: 8px 10px 7px; font-size: 12px; letter-spacing: .05em; gap: 6px; }
}
