/* ==========================================================================
   foubie.net v2 — gedeelde stylesheet
   Gebruikt op elke pagina (index, gallery, blog, events, video, foto, ...)
   Kleurenpallet:
     #973B62  bordeaux       (donkere achtergronden, primaire tekst-accent)
     #F0860F  oranje         (hoofdaccent, knoppen)
     #DC9F56  amber          (lichte accenttekst / knop)
     #6E726F  groengrijs     (donkere sectie-achtergrond, witte tekst — voldoet aan WCAG AA, 4.9:1)
     #A7C4ED  lichtblauw     (extra accent — contact, soundbox)
     #6B2E4E  bordeaux-donker (afgeleid, randen/secundaire knoppen)
   ========================================================================== */

:root {
  --kleur-bordeaux: #973B62;
  --kleur-bordeaux-donker: #6B2E4E;
  --kleur-oranje: #F0860F;
  --kleur-oranje-toegankelijk: #A85E0A; /* voor witte tekst op oranje: voldoet aan WCAG AA (4.9:1) */
  --kleur-amber: #DC9F56;
  --kleur-groengrijs: #6E726F;
  --kleur-lichtblauw: #A7C4ED;
  --kleur-groengrijs-licht: #5C5F5D; /* donkerder tint voor hover-states op groengrijs */
  --kleur-placeholder: #D0D2CF;
  --font-basis: Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-basis);
  background-color: #fff;
  background-image: url('pattern-gold.webp');
  background-repeat: repeat;
  background-size: 320px 320px;
  background-attachment: fixed;
  color: var(--kleur-bordeaux);
}

a { color: inherit; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 32px;
  background: #fff;
}

footer {
  text-align: center;
  padding: 24px 32px;
  font-size: 13px;
  color: var(--kleur-bordeaux-donker);
  background: #FBF6EC;
}

/* Gedeelde basisstijl voor alle nav-knoppen; enkel de kleur verschilt per knop */
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 14px;
  padding: 10px 20px; border-radius: 10px;
  font-family: Georgia, serif; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.85; }
.nav-links a svg { width: 16px; height: 16px; }
nav a.nav-about   { background: var(--kleur-oranje-toegankelijk); color: #fff; }
nav a.nav-blog    { background: #6B2E4E; color: #DC9F56; }
nav a.nav-events  { background: #DC9F56; color: #6B2E4E; }
nav a.nav-contact { background: #A7C4ED; color: #973B62; }
nav a.nav-projecten { background: #973B62; color: #fff; }

.banner { position: relative; width: 100%; height: 380px; overflow: hidden; }
.banner .banner-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block; filter: sepia(20%) contrast(1.05);
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(61,26,0,0.15) 0%, rgba(61,26,0,0.55) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 36px 32px; text-align: center;
}
.banner-photo {
  width: 100px; height: 100px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  margin-bottom: 14px;
}
.banner-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.banner-overlay h1 {
  color: #fff; font-size: 42px; font-weight: normal; letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.photo-subtitle {
  text-align: center; color: #DC9F56; font-size: 15px; letter-spacing: 1px;
  margin-top: 8px; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.bio-section {
  padding: 56px 32px 48px; max-width: 1400px; margin: 0 auto;
  position: relative;
}
.bio-section::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; right: 50%;
  width: 100vw;
  margin-left: -50vw; margin-right: -50vw;
  background:
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
    url('crowd-drawing.jpg') center 30% / cover no-repeat;
  z-index: 0;
}
.bio-section > * {
  position: relative; z-index: 1;
}
.divider { margin: 0 auto 40px; }

.lang-switcher {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 24px;
}
.lang-btn {
  background: #6E726F; color: #fff; border: 1px solid #DC9F56;
  border-radius: 8px; padding: 8px 18px; font-size: 13px;
  font-family: Georgia, serif; letter-spacing: 0.5px; cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { background: #5C5F5D; }
.lang-btn.active { background: #F0860F; color: #fff; border-color: #F0860F; }

.bio-content {
  display: flex; gap: 36px; justify-content: center; align-items: flex-start;
}
.bio-columns {
  display: flex; gap: 32px; justify-content: center;
}
.bio-col {
  flex: 1; max-width: 480px; background: #6E726F;
  border-radius: 14px; padding: 28px 24px; border: 0.5px solid #DC9F56;
  display: none;
}
.bio-col.active { display: block; }
.bio-col h2 {
  font-size: 12px; color: var(--kleur-oranje); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px; text-align: center;
}
.bio-col p {
  font-size: 13px; line-height: 1.75; color: #fff; margin-bottom: 14px;
}
.contact-hint {
  display: block; text-align: center; margin: 28px auto 0;
  font-size: 20px; color: #973B62; text-decoration: none;
  border-bottom: 1px solid #973B62; padding-bottom: 8px;
  width: fit-content;
}
.contact-hint:hover { opacity: 0.75; }

@media (max-width: 900px) {
  .bio-content { flex-direction: column; align-items: center; }
  .bio-columns { flex-direction: column; align-items: center; }
  .bio-col { max-width: 480px; width: 100%; }
}

.links-section {
  background: #6E726F; padding: 48px 32px; text-align: center;
}
.links-section h2 {
  font-size: 20px; font-weight: normal; color: #fff;
  margin-bottom: 28px; letter-spacing: 0.5px;
}
.link-rows {
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.link-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.link-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 12px; font-size: 15px;
  text-decoration: none; font-family: Georgia, serif; transition: opacity 0.2s;
}
.link-btn:hover { opacity: 0.85; }
.link-btn.instagram { background: #F0860F; color: #fff; }
.link-btn.youtube   { background: #973B62; color: #DC9F56; }
.link-btn.portfolio { background: #973B62; color: #F0860F; }
.link-btn.gallery   { background: #6B2E4E; color: #fff; }
.link-btn.soundbox   { background: #A7C4ED; color: #973B62; }
.link-btn.video     { background: #DC9F56; color: #6B2E4E; }
.link-btn.foto      { background: #F0860F; color: #fff; }
.link-btn.pinterest { background: #AAB0AB; color: #6B2E4E; }
.link-btn.events    { background: #DC9F56; color: #6B2E4E; }
.link-btn.blog      { background: #6B2E4E; color: #DC9F56; }
.link-btn.about     { background: var(--kleur-oranje-toegankelijk); color: #fff; }
.link-btn.archief   { background: #F0860F; color: #fff; }
.link-btn.home      { background: #6B2E4E; color: #fff; }
.link-btn.projecten { background: #973B62; color: #fff; }
.link-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Subnav-pillen: compacte versie van .link-btn, gebruikt op subpagina's om alle secties bereikbaar te maken */
.subnav-links {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
.subnav-links .link-btn.mini {
  padding: 8px 14px; font-size: 12px; gap: 6px; border-radius: 9px;
}
.subnav-links .link-btn.mini svg { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .subnav-links { justify-content: flex-start; }
}
/* Subnav-pillen rechts uitgelijnd en verdeeld over 2 rijen (alle talen),
   i.p.v. één lange rij die onder de zoekbalk links komt te staan */
@media (min-width: 701px) {
  .subnav-links {
    max-width: 500px;
    margin-left: auto;
  }
}

/* Zoek-highlight: omkadert een link op de pagina zelf als de zoektekst ermee overeenkomt */
@keyframes zoekGloed {
  0%, 100% { box-shadow: 0 0 0 3px #F0860F, 0 0 14px 4px rgba(255,140,0,0.6); }
  50%      { box-shadow: 0 0 0 3px #DC9F56, 0 0 22px 8px rgba(255,140,0,0.85); }
}
.zoek-highlight {
  animation: zoekGloed 1.1s ease-in-out infinite;
  outline: none;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}
.nav-links a.zoek-highlight {
  border-radius: 8px;
}

@media (max-width: 600px) {
  .banner { height: 260px; }
  .banner-overlay h1 { font-size: 30px; }
}

/* Animated nav logo (bewegend logo) */
.nav-logo-anim {
  position: relative;
  height: 48px;
  width: 54px;
  aspect-ratio: 851 / 754;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}
.nav-logo-anim .logo-stage {
  position: relative;
  width: 100%; height: 100%;
  overflow: visible;
}
.nav-logo-anim .logo-embers {
  position: absolute; inset: -20px;
  overflow: hidden;
  pointer-events: none;
}
.nav-logo-anim .logo-ember {
  position: absolute;
  bottom: -4px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, #F0860F 0%, rgba(255,140,0,0) 70%);
  opacity: 0;
  animation: navLogoRise 3.2s ease-in infinite;
}
@keyframes navLogoRise {
  0%   { transform: translate(0,0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0; }
  100% { transform: translate(var(--drift,10px), -56px) scale(1.1); opacity: 0; }
}
.nav-logo-anim .logo-ring {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #F0860F;
  opacity: 0;
  transform: translate(-50%,-50%) scale(0.3);
  left: 50%; top: 50%;
  pointer-events: none;
  animation: navRingPulse 1.1s ease-out 1;
  animation-delay: 0.3s;
}
@keyframes navRingPulse {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.3); }
  8%   { opacity: 0.9; }
  35%  { opacity: 0; transform: translate(-50%,-50%) scale(9); }
  100% { opacity: 0; }
}
.nav-logo-anim .logo-flash {
  position: absolute; inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255,212,160,0.5) 0%, rgba(255,140,0,0) 55%);
  opacity: 0;
  pointer-events: none;
  animation: navFlashPulse 1.1s ease-out 1;
  animation-delay: 0.27s;
}
@keyframes navFlashPulse {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}
.nav-logo-anim .logo-card {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  transform: scale(0.7) rotate(-8deg);
  box-shadow: 0 0 0 rgba(255,140,0,0);
  animation: navReveal 1.1s cubic-bezier(.2,.8,.2,1) 1 forwards;
}
.nav-logo-anim .logo-card img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.3);
  transform-origin: center center;
}
@keyframes navReveal {
  0%   { opacity: 1; transform: scale(0.7) rotate(-8deg); box-shadow: 0 4px 0 rgba(255,140,0,0); }
  28%  { opacity: 1; transform: scale(1.08) rotate(2deg); box-shadow: 0 8px 18px rgba(255,140,0,0.4); }
  40%  { transform: scale(0.97) rotate(-1deg); box-shadow: 0 6px 14px rgba(255,140,0,0.35); }
  62%  { transform: scale(1) rotate(0deg); box-shadow: 0 6px 14px rgba(255,140,0,0.3); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); box-shadow: 0 6px 14px rgba(255,140,0,0.3); }
}
.nav-logo-anim .logo-card.glowLoop {
  animation: navGlowPulse 2.6s ease-in-out 1.2s infinite;
}
@keyframes navGlowPulse {
  0%,100% { box-shadow: 0 6px 14px rgba(255,140,0,0.24); }
  50%     { box-shadow: 0 8px 18px rgba(255,140,0,0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo-anim .logo-card { animation: none; opacity: 1; transform: none; }
  .nav-logo-anim .logo-ring, .nav-logo-anim .logo-flash, .nav-logo-anim .logo-ember { display: none; }
}

.newsletter-section {
  background: #6B2E4E; padding: 48px 32px; text-align: center;
}
.newsletter-section h2 {
  font-size: 20px; font-weight: normal; color: #F0860F;
  margin-bottom: 10px; letter-spacing: 0.5px;
}
.newsletter-section p {
  font-size: 14px; color: #DC9F56; opacity: 0.85;
  max-width: 480px; margin: 0 auto 24px;
}
.newsletter-form {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; max-width: 440px; margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 13px 18px; border-radius: 10px;
  border: 1.5px solid #DC9F56; background: #6E726F;
  color: #fff; font-family: Georgia, serif; font-size: 14px;
}
.newsletter-form input[type="email"]::placeholder { color: #D0D2CF; }
.newsletter-form button {
  background: var(--kleur-oranje-toegankelijk); color: #fff; border: none;
  padding: 13px 26px; border-radius: 10px; font-size: 14px;
  font-family: Georgia, serif; cursor: pointer; transition: opacity 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.85; }
.newsletter-form button:disabled { opacity: 0.6; cursor: default; }
.newsletter-status {
  margin-top: 16px; font-size: 13px; display: none;
}
.newsletter-status.success { color: #7CCB7C; display: block; }
.newsletter-status.error { color: #ff9b8a; display: block; }

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Compacte taalkeuze (NL/FR/EN) in de nav, gedeeld via i18n.js */
.foubie-lang-switch {
  display: flex; gap: 4px; flex-shrink: 0;
}
.foubie-lang-switch .lang-btn {
  padding: 6px 10px; font-size: 11px; letter-spacing: 0.5px;
  border-radius: 7px; margin: 0;
}

/* Site search */
.site-search {
  position: relative;
  display: flex;
  align-items: center;
}
.site-search input[type="text"] {
  width: 180px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid #DC9F56;
  background: #6E726F;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 14px;
  transition: width 0.2s, border-color 0.2s;
}
.site-search input[type="text"]::placeholder { color: #D0D2CF; }
.site-search input[type="text"]:focus {
  outline: 2px solid #FFD4A0;
  outline-offset: 2px;
  width: 230px;
  border-color: #F0860F;
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  max-height: 360px;
  overflow-y: auto;
  background: #6E726F;
  border: 1px solid #DC9F56;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(61,26,0,0.25);
  z-index: 50;
  padding: 8px;
}
.search-results.active { display: block; }
.search-results p {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #fff;
  font-family: Georgia, serif;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-family: Georgia, serif;
  transition: background 0.15s;
}
.search-result:hover { background: #5C5F5D; }
.search-result-type {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  background: #6B2E4E; color: #DC9F56;
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0;
}
.search-result--artikel .search-result-type { background: #A7C4ED; color: #973B62; }
.search-result--video .search-result-type { background: #DC9F56; color: #6B2E4E; }
.search-result--evenement .search-result-type { background: #973B62; color: #fff; }
.search-result--gallery .search-result-type { background: #6B2E4E; color: #fff; }
.search-result--knop { cursor: pointer; }
.search-result--knop .search-result-type { background: #973B62; color: #fff; }
.search-result--foto .search-result-type { background: #F0860F; color: #fff; }
.search-result-titel { flex: 1; }
.search-result-theme {
  font-size: 11px; color: #973B62; font-style: italic; flex-shrink: 0;
}
.search-error { color: #c0392b !important; }

@media (max-width: 900px) {
  .site-search input[type="text"] { width: 140px; }
  .site-search input[type="text"]:focus { width: 170px; }
  .search-results { width: 260px; left: -20px; }
}

/* ==========================================================================
   Cookiebanner (gedeeld over alle pagina's)
   Compacte hoekkaart i.p.v. volledige-breedte balk, zodat ze geen
   pagina-inhoud meer overlapt terwijl ze op de inhoud wacht.
   ========================================================================== */
.cookie-banner {
  position: fixed; right: 24px; left: auto; bottom: -400px;
  max-width: 360px;
  background: var(--kleur-bordeaux); color: #fff;
  padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px; z-index: 100;
  border-radius: 16px;
  transition: bottom 0.35s ease-out;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.cookie-banner.show { bottom: 24px; }
.cookie-banner p { margin: 0; font-size: 13px; max-width: 100%; line-height: 1.6; }
.cookie-banner a { color: #FFD4A0; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; width: 100%; }
.cookie-actions .cookie-btn { flex: 1; }
@media (max-width: 600px) {
  .cookie-banner {
    left: 12px; right: 12px; max-width: none; bottom: -400px;
    padding: 14px 16px; gap: 10px;
  }
  .cookie-banner.show { bottom: 12px; }
  .cookie-banner p { font-size: 12px; line-height: 1.45; }
  .cookie-actions { gap: 8px; }
  .cookie-actions .cookie-btn { padding: 9px 12px; font-size: 12px; }
}
.cookie-btn {
  border: none; border-radius: 8px; padding: 10px 20px; font-size: 13px;
  font-family: Georgia, serif; cursor: pointer; transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn.accept { background: var(--kleur-oranje-toegankelijk); color: #fff; }
.cookie-btn.decline { background: transparent; color: #FFD4A0; border: 1px solid #FFD4A0; }

/* ==========================================================================
   Eenvoudige pagina's (privacy, 404, disclaimer)
   ========================================================================== */
.simple-page {
  max-width: 720px; margin: 40px auto; padding: 56px 40px 80px;
  background: var(--kleur-groengrijs);
  border: 0.5px solid var(--kleur-amber);
  border-radius: 18px;
}
.simple-page h1 {
  font-size: 34px; font-weight: normal; color: #fff;
  margin-bottom: 8px;
}
.simple-page .simple-page-subtitle {
  color: #fff; font-size: 16px; margin-bottom: 40px; opacity: 0.85;
}
.simple-page h2 {
  font-size: 20px; font-weight: normal; color: #fff;
  margin-top: 36px; margin-bottom: 12px;
}
.simple-page p, .simple-page li {
  font-size: 16px; line-height: 1.85; color: #fff;
}
.simple-page ul { padding-left: 20px; }
.simple-page a.terug {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 40px; text-decoration: none; color: #fff;
  font-size: 14px;
}
.simple-page a.terug:hover { opacity: 0.8; }

/* 404-pagina */
.error-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 32px;
}
.error-404 .error-code {
  font-size: 96px; color: var(--kleur-oranje); font-weight: normal;
  line-height: 1; margin-bottom: 16px;
}
.error-404 h1 {
  font-size: 24px; font-weight: normal; color: var(--kleur-bordeaux);
  margin-bottom: 12px;
}
.error-404 p {
  font-size: 14px; color: var(--kleur-bordeaux-donker); margin-bottom: 32px;
  max-width: 420px;
}
.error-404 a.terug-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kleur-oranje); color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 12px; font-size: 15px;
  font-family: Georgia, serif; transition: opacity 0.2s;
}
.error-404 a.terug-home:hover { opacity: 0.85; }

/* ==========================================================================
   Content-pagina's (events, gallery, blog, foto, video) — gedeelde onderdelen
   ========================================================================== */
.logo { height: 40px; width: auto; display: block; }

.admin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 18px;
  color: var(--kleur-bordeaux);
  font-family: Georgia, serif; transition: opacity 0.2s;
}
.admin-btn:hover { opacity: 0.75; }
.admin-btn svg { width: 15px; height: 15px; }

a.back {
  text-decoration: none; color: var(--kleur-bordeaux); font-size: 18px;
}
a.back:hover { opacity: 0.75; }

.page-header {
  position: relative;
  overflow: hidden;
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 32px 32px 24px;
  background: #FFF4E8;
  border: 0.5px solid var(--kleur-amber);
  border-radius: 18px;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: url('linken-tekening.webp') center 30% / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}
.page-header > * {
  position: relative; z-index: 1;
}
.page-header h1 {
  font-size: 30px; font-weight: normal; letter-spacing: 2px;
  color: var(--kleur-bordeaux-donker); margin-bottom: 8px;
}
.page-header p {
  font-size: 14px; color: var(--kleur-bordeaux-donker);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.photo-item {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; background: #FFF4E8;
}
.photo-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.photo-item:hover img { transform: scale(1.05); }

.error-msg {
  text-align: center; color: #c0392b; padding: 40px 32px; font-size: 14px;
}
#empty, #loading {
  text-align: center; color: var(--kleur-bordeaux-donker); font-size: 14px;
  padding: 40px 32px;
}

/* Lightbox (gedeeld) */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 15, 25, 0.92);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 66vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 36px; color: #fff; cursor: pointer; line-height: 1;
  opacity: 0.85; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 48px; color: #fff; cursor: pointer;
  opacity: 0.7; transition: opacity 0.2s; user-select: none;
  padding: 0 16px;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }


/* --- Gerelateerde content (over alle secties heen, via tags-api-v2) ---
   Gedeeld door blog.html (eigen kopie), gallery.html, foto.html, events.html,
   video.html en podcast.html (via related-content.js). Standaard voor gebruik
   op de gewone (lichte) pagina-achtergrond; ".lightbox .related-content"
   hieronder is de donkere variant voor gebruik binnen een lightbox-overlay. */
.related-content {
  margin-top: 12px; padding-top: 10px;
  border-top: 0.5px solid var(--kleur-amber);
}
.related-heading {
  font-size: 10px; color: var(--kleur-oranje);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 6px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}
.related-card {
  display: block; text-decoration: none;
  border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--kleur-amber);
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(151,59,98,0.2);
}
.related-thumb {
  width: 100%; height: 45px;
  background: linear-gradient(135deg, var(--kleur-oranje) 0%, var(--kleur-bordeaux-donker) 100%);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-label { padding: 4px 6px; }
.related-type {
  display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--kleur-oranje); margin-bottom: 2px;
}
.related-title {
  display: block; font-size: 11px; color: var(--kleur-bordeaux-donker);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Donkere variant, voor gebruik binnen een lightbox-overlay (gallery/foto/video) */
.lightbox .related-content {
  width: 100%; max-width: min(680px, 90vw);
  border-top-color: rgba(220,159,86,0.5);
  margin-top: 8px; padding-top: 8px;
}
.lightbox .related-card {
  background: rgba(0,0,0,0.4); border-color: rgba(220,159,86,0.5);
}
.lightbox .related-title { color: var(--kleur-amber); }

/* === Mobiele hoofdnav (index) — horizontaal scrollende knoppenrij i.p.v. wrap ===
   De 5 nav-knoppen (Contacteer mij / Events / Blog / Archief / Over mij) wrapten
   op smalle schermen in 3 rijen en duwden de hero (naam/foto) ver naar beneden.
   Op mobiel worden ze nu 1 rij die horizontaal scrolt, met een randvervaging
   als hint dat er meer knoppen te vinden zijn. */
@media (max-width: 700px) {
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}


/* === Toegankelijkheid: zichtbare toetsenbordfocus op alle bedienbare elementen === */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #F0860F;
  outline-offset: 3px;
}

/* === Mobiele nav: bovenste rij (logo + zoek + NL/FR/EN) mag niet breder worden dan het scherm === */
@media (max-width: 700px) {
  nav { padding: 12px 16px; }
  .nav-left { gap: 10px; max-width: 100%; min-width: 0; flex-wrap: wrap; }
  .site-search input[type="text"] { width: 110px; padding: 9px 12px; }
  .site-search input[type="text"]:focus { width: 140px; }
  .nav-links { max-width: 100%; min-width: 0; }
  .foubie-lang-switch .lang-btn { padding: 9px 11px; min-height: 36px; }
}
