/* Alles gescoped onder .wtl-app zodat het thema niet wordt beïnvloed. Overal Arial 12 pt. */
.wtl-app, .wtl-app *, .wtl-app *::before, .wtl-app *::after { box-sizing: border-box; }
.wtl-app { --wtl-accent: #c8102e; --wtl-line: #c8102e; --wtl-marker: #c8102e; --wtl-bg: #fff; --wtl-text: #1a1a1a; --wtl-muted: #666; width: 100%; margin: 0 auto 2rem; color: var(--wtl-text); clear: both; }
.wtl-app, .wtl-app * { font-family: Arial, Helvetica, sans-serif; font-size: 12pt; line-height: 1.45; font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; }
.wtl-app strong, .wtl-app .wtl-year, .wtl-app .wtl-title { font-weight: 700; }
.wtl-app button { font: inherit; }
.wtl-app ol, .wtl-app ul { margin: 0; padding: 0; list-style: none; }
.wtl-app h1, .wtl-app h2, .wtl-app h3, .wtl-app h4 { font-size: 12pt; margin: 0; padding: 0; }

/* Navigatie per decennium */
.wtl-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.wtl-nav a { padding: 5px 14px; border: 1px solid var(--wtl-accent); color: var(--wtl-accent); text-decoration: none; background: #fff; border-radius: 0; }
.wtl-nav a:hover, .wtl-nav a:focus-visible { background: var(--wtl-accent); color: #fff; outline: none; }

/* De verticale lijn (kleur instelbaar) */
.wtl-line { position: relative; padding: 4px 0; }
.wtl-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--wtl-line); border-radius: 2px; }

.wtl-decade { position: relative; z-index: 2; text-align: center; margin: 6px 0 26px; }
.wtl-decade span { display: inline-block; padding: 6px 20px; background: var(--wtl-accent); color: #fff; font-weight: 700; }
.wtl-line > li[hidden] { display: none; }

.wtl-entry { position: relative; width: 50%; margin: 0 0 30px; }
.wtl-left { padding-right: 42px; }
.wtl-right { margin-left: 50%; padding-left: 42px; }

/* Bolletje of vierkantje op de lijn */
.wtl-dot { position: absolute; top: 14px; width: 18px; height: 18px; background: var(--wtl-marker); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--wtl-marker); z-index: 3; }
.wtl-marker-dot .wtl-dot { border-radius: 50%; }
.wtl-marker-square .wtl-dot { border-radius: 0; }
.wtl-left .wtl-dot { right: -9px; }
.wtl-right .wtl-dot { left: -9px; }

.wtl-card { position: relative; background: var(--wtl-bg); border: 1px solid #ddd; border-top: 3px solid var(--wtl-accent); padding: 12px 16px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); text-align: left; }
.wtl-head { margin: 0 0 8px; text-align: left; }
.wtl-head .wtl-year, .wtl-head .wtl-title { color: var(--wtl-accent); }
.wtl-head .wtl-title { color: var(--wtl-text); }
.wtl-head .wtl-date { color: var(--wtl-muted); }
.wtl-head .wtl-sep { color: var(--wtl-muted); }
.wtl-text p { margin: 0 0 .7em; }
.wtl-text p:last-child { margin-bottom: 0; }
.wtl-text a { color: var(--wtl-accent); }
.wtl-tags { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.wtl-tags span { padding: 1px 8px; background: color-mix(in srgb, var(--wtl-accent) 12%, #fff); color: var(--wtl-accent); }

/* Foto's */
.wtl-media { display: grid; gap: 6px; margin-top: 12px; }
.wtl-n-1 { grid-template-columns: 1fr; }
.wtl-n-2 { grid-template-columns: 1fr 1fr; }
.wtl-n-3 { grid-template-columns: repeat(3, 1fr); }
.wtl-n-3 .wtl-photo:first-child { grid-column: 1 / -1; }
.wtl-photo { display: block; overflow: hidden; background: #eee; cursor: zoom-in; aspect-ratio: 4 / 3; }
.wtl-n-3 .wtl-photo:first-child { aspect-ratio: 16 / 9; }
.wtl-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; transition: transform .25s ease; }
.wtl-photo:hover img, .wtl-photo:focus-visible img { transform: scale(1.04); }
.wtl-photo:focus-visible { outline: 2px solid var(--wtl-accent); outline-offset: 2px; }

/* YouTube (pas laden bij klikken) */
.wtl-videos { display: grid; gap: 8px; margin-top: 12px; }
.wtl-video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0; }
.wtl-video img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border: 0; opacity: .9; transition: opacity .2s; }
.wtl-video:hover img, .wtl-video:focus-visible img { opacity: 1; }
.wtl-video:focus-visible { outline: 2px solid var(--wtl-accent); outline-offset: 2px; }
.wtl-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; background: var(--wtl-accent); border-radius: 10px; }
.wtl-play::after { content: ""; position: absolute; left: 25px; top: 12px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.wtl-videos iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.wtl-credit { margin: 10px 0 0; color: var(--wtl-muted); }

.wtl-more-wrap { text-align: center; margin: 10px 0 0; }
.wtl-more { padding: 10px 28px; border: 0; background: var(--wtl-accent); color: #fff; cursor: pointer; font-weight: 700; border-radius: 0; }
.wtl-more:hover, .wtl-more:focus-visible { filter: brightness(1.1); outline: none; }
.wtl-more[hidden] { display: none; }
.wtl-empty { color: var(--wtl-muted); font-family: Arial, Helvetica, sans-serif; font-size: 12pt; }

/* Verschijn-effect (alleen met JavaScript) */
.wtl-js .wtl-entry { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.wtl-js .wtl-entry.wtl-in { opacity: 1; transform: none; }

/* Lichtbak */
.wtl-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); padding: 20px 56px; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; }
.wtl-lb[hidden] { display: none; }
.wtl-lb figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; color: #fff; }
.wtl-lb img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; margin: 0; border: 0; border-radius: 0; }
.wtl-lb figcaption { margin-top: 12px; text-align: center; max-width: 760px; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; }
.wtl-lb button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; line-height: 1; border-radius: 0; font-family: Arial, Helvetica, sans-serif; }
.wtl-lb button:hover, .wtl-lb button:focus-visible { background: var(--wtl-accent, #c8102e); outline: none; }
.wtl-lb-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 28px; }
.wtl-lb-nav { top: 50%; transform: translateY(-50%); width: 42px; height: 64px; font-size: 38px; }
.wtl-lb-prev { left: 8px; }
.wtl-lb-next { right: 8px; }

/* Smal scherm: lijn links, alles één kant op */
@media (max-width: 800px) {
	.wtl-line::before { left: 18px; }
	.wtl-decade { text-align: left; padding-left: 0; margin-left: 0; }
	.wtl-entry, .wtl-right { width: 100%; margin-left: 0; padding: 0 0 0 48px; }
	.wtl-left .wtl-dot, .wtl-right .wtl-dot { left: 9px; right: auto; }
	.wtl-lb { padding: 56px 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.wtl-js .wtl-entry { opacity: 1; transform: none; transition: none; }
	.wtl-photo img { transition: none; }
}

/* Rubriekknoppen */
.wtl-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; }
.wtl-filter a { padding: 7px 18px; border: 2px solid var(--wtl-accent); color: var(--wtl-accent); text-decoration: none; font-weight: 700; background: #fff; border-radius: 0; }
.wtl-filter a:hover, .wtl-filter a:focus-visible, .wtl-filter a.is-active { background: var(--wtl-accent); color: #fff; outline: none; }

/* Genummerde pagina's (alle knoppen dezelfde kleuren) */
.wtl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 18px 0; }
.wtl-pager-top { margin: 0 0 22px; }
.wtl-pager button { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--wtl-accent); background: #fff; color: var(--wtl-accent); font-weight: 700; cursor: pointer; border-radius: 0; }
.wtl-pager button:hover:not(:disabled):not([aria-current]), .wtl-pager button:focus-visible { background: var(--wtl-accent); color: #fff; outline: none; }
.wtl-pager button[aria-current="page"] { background: var(--wtl-accent); color: #fff; cursor: default; }
.wtl-pager button:disabled { background: #fff; color: var(--wtl-accent); border-color: var(--wtl-accent); opacity: .4; cursor: default; }
.wtl-pager .wtl-gap { padding: 0 4px; color: #777; }
.wtl-pager .wtl-pg-info { flex-basis: 100%; text-align: center; color: #666; }
