/* st11-sal ronde 1 — de foto's. De werking komt van Bouwbedrijf SAL (template2-minder: style.css, home.css), de
   vorm is die van deze pagina: haar kleuren (leisteen, krijt, lucht), Playfair Display en Jost, haar haarlijnen en
   gespatieerde kapitalen, haar scherpe hoeken. Gelinkt na style.css en vast.css; style.css blijft onaangeroerd.
   Wat waarvandaan komt en waar het afwijkt: WIJZIGINGEN.md. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- a main photo that opens the viewer: the whole frame is the link, the label stays on top of it (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; }
.label, .bekijk-foto { pointer-events: none; }

/* ============ ECHT — his stamp on every work photo, tilted as if pressed on (home.css 96–196) ============ */
.zegel {
  display: block; position: absolute; z-index: 3; width: 92px; height: 92px; pointer-events: none;
  transform: rotate(-12deg); filter: drop-shadow(0 2px 5px rgba(21, 28, 34, .38)); font-family: var(--sans);
}
.dienstkaart__band .zegel { left: 18px; top: 70px; }                       /* SAL: .lead-card__photo */
.foto .zegel, .deur__band .zegel { right: 12px; top: 12px; width: 76px; height: 76px; }   /* SAL: .door__photo */
/* the strip on top of the packages card (no SAL counterpart): the door size, right, in the middle of the strip */
.pakketten__band .zegel { right: 14px; top: calc(50% - 38px); width: 76px; height: 76px; }

/* ---- the line at the end of a description: "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(--sans); font-weight: 400; font-size: var(--t-klein); letter-spacing: .02em; line-height: 1.4;
  color: var(--stil); text-align: left; cursor: pointer;
}
.echt-regel .ico { flex: none; width: 17px; height: 17px; fill: var(--inkt); }
.echt-regel b { font-weight: 500; color: var(--inkt); }
.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 dark service card inside a light section: its own inks */
.dienstkaart .echt-regel { color: var(--lucht-500); }
.dienstkaart .echt-regel b { color: var(--krijt-500); }
.dienstkaart .echt-regel .ico { fill: var(--krijt-500); }

/* ============ LABEL — the band on a full-width photo: the words left, the place and date right ============ */
.label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; top: auto; margin: 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  padding: 13px 18px 12px;
  background: rgba(21, 28, 34, .84); border-top: 1px solid rgba(235, 231, 221, .3);
  color: var(--krijt-100); line-height: 1.3;
}
.label__wie {
  display: block; color: #fff;
  font: 500 clamp(.8rem, 1.15vw, .92rem)/1.1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.label__waar {
  display: block; color: var(--lucht-300);
  font: 500 clamp(.6rem, 1.1vw, .7rem)/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase;
}
/* the service card: the band at the top, its rule under it, the stamp below the band (SAL: .lead-card__photo) */
.dienstkaart__band .label { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid rgba(235, 231, 221, .3); }

/* ============ PLEK — a photo beside its text or in a door: the page's own shade from the foot, the place and date
   large with the pin, "Bekijk onze projecten" top left, the stamp top right ============ */
.foto .label, .deur__band .label {
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 0 20px 18px; background: none; border: 0;
}
.foto .label__waar, .deur__band .label__waar {
  display: flex; align-items: center; gap: 8px; color: #fff; text-transform: none;
  font: 400 clamp(1.08rem, 1.75vw, 1.38rem)/1.22 var(--serif); letter-spacing: .005em; text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.foto .label__waar .fotonotitie__stip, .deur__band .label__waar .fotonotitie__stip { width: .2em; height: .2em; margin-inline: .45em; vertical-align: .22em; }
/* a door's photo is low (130–190px): its place and date never run under the stamp */
.deur__band .label { padding-right: calc(12px + 76px + 8px); }
/* the doors become swipe cards of 300px at most (this page, 720 down): the stamp the phone's size, the place and
   date a size smaller, so the words, the stamp and the place and date fit the low photo together */
@media (max-width: 720px) {
  .deur__band .zegel { width: 64px; height: 64px; }
  .deur__band .label { padding: 0 16px 15px; }
  .deur__band .label__waar { font-size: .95rem; }
  .deur__band .bekijk-foto { left: 10px; top: 10px; padding: 9px 12px 8px; font-size: .7rem; gap: 7px; max-width: calc(100% - 20px - 72px); }
  .deur__band .bekijk-foto .ico { width: 14px; height: 14px; }
}

/* the pin: on the place and date of a photo and in the viewer */
.lb__cap::before, .foto .label__waar::before, .deur__band .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;
}

/* "Bekijk onze projecten", top left on the photo; the photo under it is the link. Set as this page's light button. */
.bekijk-foto {
  position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  max-width: calc(100% - 28px - 76px);   /* never under the stamp: on a narrow door the words take two lines */
  padding: 10px 14px 9px; background: var(--krijt-500); color: var(--leisteen-500); box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  font: 500 clamp(.72rem, 1vw, .8rem)/1.25 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.bekijk-foto .ico { flex: none; width: 16px; height: 16px; }

/* ============ the thumbnails: the rest of the series under its main photo; each opens whole in the viewer ============ */
.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: var(--leisteen-300); box-shadow: 0 0 0 2px var(--krijt-100), 0 2px 8px rgba(21, 28, 34, .2);
  transition: box-shadow .15s, transform .15s;
}
.duim img { width: 100%; height: 100%; object-fit: cover; }
.duim:hover { box-shadow: 0 0 0 2px var(--inkt), 0 4px 12px rgba(21, 28, 34, .24); transform: translateY(-1px); }
.duim:focus-visible { outline-offset: 2px; }
/* shaped for their pictures: 3:4 upright, 4:3 landscape, square */
.duim.duim--34 { width: 48px; height: 64px; }
.duim.duim--43 { width: 85px; height: 64px; }
.duim.duim--11 { width: 64px; height: 64px; }

/* the service card: on the seam where the photo meets the card, at its right, in line with the text column
   (SAL switches at 1061; this card is two columns down to 961, so it switches there) */
@media (min-width: 961px) {
  .duimen--lead { position: absolute; top: 0; right: clamp(1.6rem, 3.6vw, 3rem); z-index: 3; transform: translateY(-50%); }
}
@media (max-width: 960px) {
  .duimen--lead { position: relative; z-index: 3; justify-content: flex-end; margin: calc(-1 * clamp(1.6rem, 3.6vw, 3rem) - 36px) 0 16px; }
}
.dienstkaart .duim:hover { box-shadow: 0 0 0 2px var(--krijt-500), 0 4px 12px rgba(0, 0, 0, .3); }

/* under a photo beside its text: the row overlaps the photo's foot (SAL: .door__photo + .duimen--door) */
.foto + .duimen--door { position: relative; z-index: 3; margin: -14px 0 0; }
.sectie--groen .duimen--door .duim { box-shadow: 0 0 0 2px rgba(235, 231, 221, .55), 0 2px 8px rgba(0, 0, 0, .25); }
.sectie--groen .duimen--door .duim:hover { box-shadow: 0 0 0 2px var(--krijt-500), 0 4px 12px rgba(0, 0, 0, .3); }

/* every row the script fills is a whole number of pixels wide */
.duimen--door { width: round(down, 100%, 1px); }
@media (max-width: 960px) { .duimen--lead { width: round(down, 100%, 1px); } }

/* ---- the "+N" tile (style.css 1269–1333): the next photo under a veil, the count large. No series on this page
   earns one yet (two photos at most); the script lays it out as soon as one does ---- */
.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; color: var(--krijt-100); text-shadow: 0 1px 8px rgba(21, 28, 34, .45);
}
.meer__n b { display: block; font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-size: clamp(16px, 36cqmin, 44px); }
.meer__w { display: none; font: 500 clamp(10px, 11cqmin, 13px)/1 var(--sans); text-transform: uppercase; letter-spacing: .2em; color: var(--lucht-300); }
@container (min-width: 84px) and (min-height: 84px) { .meer__w { display: block; } }
.meer img { transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .2s; }
.meer::after { content: ""; position: absolute; inset: 0; background: rgba(21, 28, 34, .58); transition: background-color .2s; }
.meer:hover::after { background: rgba(21, 28, 34, .36); }
.meer-plek--laatste .meer::after, .meer-plek--laatste .meer__n { display: none; }

/* ============ the viewer: the photo whole on a dark ground; close with ×, Esc or a click beside it ============ */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 64px clamp(12px, 6vw, 88px) 104px; background: rgba(21, 28, 34, .97); color: var(--krijt-100);
}
.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 - 300px); max-height: calc(100svh - 300px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7); background: var(--leisteen-700);
}
/* 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; color: #fff; font: 400 21px/1.25 var(--serif); text-align: center; }
.lb__cap[hidden] { display: none; }
.lb__x, .lb__nav {
  position: fixed; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.lb__x { top: 12px; right: 12px; width: 48px; height: 48px; background: var(--krijt-500); color: var(--leisteen-500); font-size: 30px; line-height: 1; }
.lb__x:hover { background: #fff; }
.lb__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; background: rgba(235, 231, 221, .14); color: var(--krijt-100); }
.lb__nav:hover { background: rgba(235, 231, 221, .3); }
.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 ("1 / 2") */
.lb__tel {
  position: fixed; top: 12px; left: 12px; margin: 0; height: 48px; padding: 0 18px; display: flex; align-items: center;
  background: rgba(235, 231, 221, .14); color: var(--krijt-100);
  font: 500 15px/1 var(--sans); letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.lb__tel[hidden] { display: none; }

/* the whole series as a strip along the foot, the current one lit */
.lb--one .lb__strook { display: none; }
.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; background: rgba(235, 231, 221, .08);
}
.lb__strook::-webkit-scrollbar { display: none; }
.lb__t { position: relative; flex: none; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--leisteen-500); }
.lb__t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb__t::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.lb__t.is-nu::after { box-shadow: inset 0 0 0 3px var(--krijt-100); }
.lb__t:focus-visible { outline: 2px solid var(--krijt-500); outline-offset: 2px; }
.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; }

/* KNOP — call and WhatsApp: on a computer "Ook zo'n klus?" and the two buttons 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: var(--krijt-100); font: 500 .85rem/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.lb__knoppen { display: flex; gap: 10px; }
.lb__knoppen .knop { 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 */

/* ============ the phone ============ */
@media (max-width: 560px) {
  .zegel { width: 72px; height: 72px; }
  .foto .zegel, .deur__band .zegel, .pakketten__band .zegel { width: 64px; height: 64px; }
  .pakketten__band .zegel { top: calc(50% - 32px); }
  .dienstkaart__band .zegel { top: 56px; }

  .label { padding: 10px 14px 9px; }
  .label__wie { font-size: .76rem; }
  .foto .label, .deur__band .label { padding: 0 16px 15px; }
  .foto .label__waar { font-size: 1.05rem; }
  .lb__cap::before, .foto .label__waar::before, .deur__band .label__waar::before { width: 17px; height: 17px; }
  .bekijk-foto { left: 10px; top: 10px; padding: 9px 12px 8px; font-size: .7rem; gap: 7px; max-width: calc(100% - 20px - 72px); }
  .bekijk-foto .ico { width: 14px; height: 14px; }

  .lb { padding: 64px 10px 150px; }
  .lb__img { max-height: calc(100svh - 270px); }
  .lb__cap { font-size: 18px; }
  .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; }
  /* 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 .knop { min-height: 48px; padding: 0 14px; gap: 7px; letter-spacing: .14em; }
  .lb__tel { padding: 0 12px; font-size: 14px; }
}
