/* Gedeelde basis: reset, gedicht-structuur en lightbox. Thema's bepalen het uiterlijk. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lb-open { overflow: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.foto { display: block; padding: 0; border: 0; background: none; }
button.foto { cursor: zoom-in; }
.foto img { width: 100%; }

/* Gedicht: elke regel is een blok; lange regels springen in bij afbreken. Witruimte blijft letterlijk. */
.gedicht p { margin: 0 0 1.15em; }
.gedicht p:last-child { margin-bottom: 0; }
.gedicht .regel { display: block; white-space: pre-wrap; overflow-wrap: break-word; }
/* Smal scherm: versregels breken vaak af. Dan links uitlijnen zonder inspringing, met wat lucht
   tussen de versregels zodat zichtbaar blijft waar een nieuwe regel begint. */
.gedicht { line-height: 1.3; }
.gedicht .regel + .regel { margin-top: .36em; }
/* Breed scherm: regels passen bijna altijd; een enkele afgebroken regel springt in. */
@media (min-width: 700px) {
  .gedicht { line-height: inherit; }
  .gedicht .regel { padding-left: 1.2em; text-indent: -1.2em; }
  .gedicht .regel + .regel { margin-top: 0; }
}

/* Lightbox */
/* touch-action: none -> de site handelt knijpen en slepen zelf af (zoomen in de foto, niet in de pagina). */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 14, .97); display: grid; grid-template-columns: auto 1fr auto; align-items: center; overflow: hidden; touch-action: none; overscroll-behavior: contain; }
.lightbox figure { margin: 0; grid-column: 1 / -1; grid-row: 1; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.2rem .5rem 2.4rem; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { color: #fff; font: 600 .95rem/1 system-ui, sans-serif; position: absolute; bottom: .8rem; left: 0; right: 0; text-align: center; opacity: .85; }
.lightbox button { position: relative; z-index: 2; border: 0; color: #fff; background: rgba(255, 255, 255, .16); border-radius: 50%; width: 2.9rem; height: 2.9rem; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .32); }
.lb-sluit { position: absolute !important; top: .6rem; right: .6rem; font-size: 1.2rem !important; }
.lb-vorige { grid-column: 1; grid-row: 1; margin-left: .5rem; }
.lb-volgende { grid-column: 3; grid-row: 1; margin-right: .5rem; }
.lightbox.enkel .lb-nav { display: none; }
.lightbox img { transform-origin: center; will-change: transform; cursor: zoom-in; touch-action: none; }
.lightbox.ingezoomd img { cursor: grab; }
/* Ingezoomd: pijlen en teller uit beeld, zodat de foto de ruimte heeft. Sluiten blijft. */
.lightbox.ingezoomd .lb-nav, .lightbox.ingezoomd figcaption { opacity: 0; pointer-events: none; }
.lb-nav, .lightbox figcaption { transition: opacity .15s; }
.lb-tip { position: absolute; left: 50%; bottom: 2.7rem; transform: translateX(-50%); z-index: 3; margin: 0; padding: .5rem 1rem; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font: 600 .9rem/1.2 system-ui, sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; }
.lightbox.tip:not(.ingezoomd) .lb-tip { animation: lb-tip 3.4s ease-out both; }
@keyframes lb-tip { 0% { opacity: 0; } 10%, 75% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
