/* Fotoalbums – in de stijl Reisdagboek. Groot en duidelijk: makkelijk te bedienen, ook op de telefoon. */

.hero--fotos { min-height: min(46svh, 420px); }
.fa-main { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) 16px clamp(3rem, 7vw, 5rem); }

/* ---------- Balk met onderwerpen en zoeken ---------- */
.fa-balk { display: grid; gap: 1rem; margin-bottom: 1.5rem; scroll-margin-top: 4.5rem; }
.fa-themas { display: flex; flex-wrap: wrap; gap: .55rem; }
.fa-thema {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 46px;
  font: 400 1rem var(--label-font); color: var(--ink); cursor: pointer;
  background: rgba(251, 246, 234, .75); border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: .5rem 1rem;
}
.fa-thema:hover { border-color: var(--accent); }
.fa-thema[aria-pressed="true"] { background: var(--accent); border: 1.5px solid var(--accent); color: var(--on-accent); }
.fa-thema-aantal { font: 700 .8rem var(--sans); background: rgba(51, 41, 31, .1); border-radius: 999px; padding: .1rem .5rem; }
.fa-thema[aria-pressed="true"] .fa-thema-aantal { background: rgba(255, 248, 236, .25); }

.fa-zoek { display: grid; gap: .3rem; max-width: 30rem; }
.fa-zoek-label { font: 400 .9rem var(--label-font); color: var(--ink-soft); }
.fa-zoek input {
  font: 400 1.1rem var(--sans); color: var(--ink); background: #fbf6ea; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: .65rem .9rem;
}
.fa-zoek input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.fa-resultaat { margin: 0; color: var(--ink-soft); min-height: 1.5em; }
.fa-link { font: 700 1rem var(--sans); color: var(--accent); background: none; border: 0; padding: .3rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fa-laden { color: var(--muted); font-style: italic; }
.fa-meer-rij { text-align: center; margin: 1.8rem 0 0; }
.fa-meer { border: 0; cursor: pointer; min-height: 50px; }

/* ---------- Secties en albumkaarten ---------- */
.fa-sectie { margin-top: clamp(2rem, 5vw, 3.2rem); padding: 0; }
.fa-sectie-kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.3rem; border-bottom: 1.5px dashed var(--line); padding-bottom: .6rem; }
.fa-sectie-kop h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.fa-sectie-aantal { font: 400 .95rem var(--label-font); color: var(--muted); }
.fa-sectie-kop .fa-link { margin-left: auto; }

.fa-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 22px; }
.fa-album {
  position: relative; display: grid; text-decoration: none; color: var(--ink);
  background: #fbf6ea; padding: 10px 10px 14px; box-shadow: 0 4px 14px rgba(60, 40, 20, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fa-album::before { /* plakband */
  content: ""; position: absolute; top: -9px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(230, 210, 160, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); z-index: 1;
}
.fa-album:nth-child(3n+1) { transform: rotate(-.8deg); }
.fa-album:nth-child(3n+2) { transform: rotate(.6deg); }
.fa-album:hover, .fa-album:focus-visible { transform: translateY(-4px) rotate(0); box-shadow: 0 12px 30px rgba(60, 40, 20, .28); }
.fa-omslag { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d9ccb2; }
.fa-omslag img { width: 100%; height: 100%; object-fit: cover; }
.fa-album-tekst { display: grid; gap: .15rem; padding-top: .7rem; }
.fa-album-titel { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.fa-album-meta { font: 400 .85rem var(--label-font); color: var(--muted); }

/* ---------- Albumpagina ---------- */
.fa-albumpagina .topnav { position: sticky; }
.fa-kruimel { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; font: 400 1rem var(--label-font); margin-bottom: 1.2rem; }
.fa-kruimel a { color: var(--accent); text-decoration: none; padding: .45rem 0; }
.fa-kruimel a:first-child {
  background: var(--accent); color: var(--on-accent); padding: .55rem 1rem; border-radius: var(--radius); font-weight: 700;
}
.fa-kruimel a:hover { text-decoration: underline; }
.fa-kruimel a:first-child:hover { text-decoration: none; filter: brightness(1.08); }
.fa-kop h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: 0; }
.fa-meta { font: 400 1rem var(--label-font); color: var(--muted); margin: .6rem 0 1.8rem; }

.fa-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.fa-tegel {
  display: block; padding: 6px; border: 0; background: #fbf6ea; cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(60, 40, 20, .18); transition: transform .18s ease, box-shadow .18s ease;
}
.fa-tegel img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: #d9ccb2; }
.fa-tegel:hover, .fa-tegel:focus-visible { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 20px rgba(60, 40, 20, .25); }
.fa-tegel:focus-visible { outline-offset: 2px; }

/* Vorig / volgend album */
.fa-buren { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.6rem; border-top: 1.5px dashed var(--line); }
.fa-buur {
  display: flex; align-items: center; gap: .9rem; min-height: 72px; text-decoration: none; color: var(--ink);
  background: #fbf6ea; padding: .6rem; box-shadow: 0 3px 10px rgba(60, 40, 20, .16); border-radius: var(--radius);
}
.fa-buur:hover { box-shadow: 0 8px 20px rgba(60, 40, 20, .24); }
.fa-buur img { width: 84px; height: 63px; object-fit: cover; flex: none; background: #d9ccb2; }
.fa-buur--volgend { flex-direction: row-reverse; text-align: right; grid-column: 3; }
.fa-buur--vorig { grid-column: 1; }
.fa-buur--alle { grid-column: 2; justify-content: center; font: 700 1rem var(--label-font); color: var(--accent); padding: .6rem 1.2rem; }
.fa-buur-tekst { display: grid; gap: .15rem; }
.fa-buur-label { font: 400 .85rem var(--label-font); color: var(--accent); }
.fa-buur-titel { font-family: var(--display); font-weight: 700; line-height: 1.25; }

@media (max-width: 700px) {
  .fa-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .fa-album { padding: 7px 7px 10px; }
  .fa-album-titel { font-size: .98rem; }
  .fa-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fa-tegel { padding: 3px; }
  .fa-buren { grid-template-columns: 1fr; }
  .fa-buur--vorig, .fa-buur--volgend, .fa-buur--alle { grid-column: 1; }
  .fa-buur--volgend { flex-direction: row; text-align: left; }
  .fa-sectie-kop .fa-link { margin-left: 0; }
  .fa-thema { min-height: 44px; padding: .35rem .8rem; font-size: .95rem; gap: .4rem; }
  .fa-themas { gap: .45rem; }
}
@media (max-width: 380px) { .fa-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Fotoviewer ---------- */
html.fv-open { overflow: hidden; }
.fv {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #1c1712; color: #f6eedd; overflow: hidden;
}
.fv[open] { display: grid; grid-template-rows: auto 1fr auto; }
.fv::backdrop { background: #1c1712; }
.fv-boven { display: flex; align-items: center; gap: 1rem; padding: .6rem .8rem .6rem 1.1rem; background: rgba(0, 0, 0, .25); }
.fv-teller { margin: 0; font: 400 1.05rem var(--label-font); white-space: nowrap; }
.fv-albumtitel { margin: 0; flex: 1; min-width: 0; color: #cdbfa6; font-family: var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-sluit {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; min-width: 48px; padding: .4rem 1rem;
  font: 700 1rem var(--sans); color: #1c1712; background: #f6eedd; border: 0; border-radius: var(--radius); cursor: pointer;
  margin-left: auto;
}
.fv-sluit span[aria-hidden] { font-size: 1.6rem; line-height: 1; }
.fv-sluit:hover { background: #fff; }
.fv-podium { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 0; touch-action: pinch-zoom; }
.fv-figuur { margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; padding: .5rem; }
.fv-figuur img { max-width: 100%; max-height: calc(100dvh - 8.5rem); width: auto; height: auto; object-fit: contain; background: transparent; user-select: none; -webkit-user-drag: none; }
.fv-pijl {
  width: 64px; height: 64px; margin: 0 .6rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(246, 238, 221, .14); color: #f6eedd; font-size: 2.6rem; line-height: 1; display: grid; place-items: center;
}
.fv-pijl:hover:not(:disabled) { background: rgba(246, 238, 221, .28); }
.fv-pijl:disabled { opacity: .25; cursor: default; }
.fv-pijl:focus-visible, .fv-sluit:focus-visible { outline: 3px solid #f0c27b; outline-offset: 3px; }
.fv-einde { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 2rem; }
.fv-einde-tekst { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); }
.fv-einde .knop { max-width: min(90vw, 36rem); }
.fv-einde-terug { font: 700 1rem var(--sans); color: #f6eedd; background: none; border: 1.5px solid rgba(246, 238, 221, .5); border-radius: var(--radius); padding: .7rem 1.2rem; cursor: pointer; }
.fv-hint { margin: 0; padding: .4rem 1rem .8rem; text-align: center; font: 400 .9rem var(--label-font); color: #b8aa90; }

@media (max-width: 700px) {
  .fv-podium { grid-template-columns: 1fr; }
  .fv-pijl { position: absolute; bottom: .4rem; width: 58px; height: 58px; z-index: 2; background: rgba(246, 238, 221, .16); border: 1.5px solid rgba(246, 238, 221, .45); }
  .fv-pijl--vorig { left: .4rem; }
  .fv-pijl--volgend { right: .4rem; }
  .fv-figuur { padding: 0; }
  .fv-figuur img { max-height: calc(100dvh - 9rem); }
  .fv-albumtitel { display: none; }
  .fv-knoptekst { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fa-album, .fa-tegel { transition: none; }
}
