/* ----------------------------------------------------------
   NikoC Lightbox — gedeeld component (trails, stories, …)
   Structuur overgenomen van de AirScout-lightbox, styling in
   NikoC-huisstijl: ink-basis, goud accent, Playfair/Barlow.
---------------------------------------------------------- */

.nclb-noscroll { overflow: hidden; }

.nclb-overlay {
  position: fixed; inset: 0; z-index: 12000;
  display: none; align-items: center; justify-content: center;
  background: rgba(12, 14, 10, .96);
  opacity: 0; transition: opacity .25s ease;
  padding: 26px 18px;
}
.nclb-overlay.nclb-open { opacity: 1; }

/* Grain-overlay zodat de lightbox bij de rest van de site hoort */
.nclb-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.nclb-logo {
  position: absolute; top: 20px; left: 24px; z-index: 2;
  height: 26px; width: auto; opacity: .75; pointer-events: none;
}

.nclb-counter {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #C8A84B;
}

.nclb-close, .nclb-prev, .nclb-next {
  position: absolute; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24, 27, 21, .72); border: 1px solid rgba(200, 168, 75, .35);
  color: #C8A84B; border-radius: 99px; cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.nclb-close:hover, .nclb-prev:hover, .nclb-next:hover {
  background: rgba(200, 168, 75, .14); border-color: #C8A84B; color: #F0EDE6;
}
.nclb-close { top: 18px; right: 22px; width: 42px; height: 42px; }
.nclb-prev, .nclb-next { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.nclb-prev { left: 20px; }
.nclb-next { right: 20px; }
.nclb-close svg, .nclb-prev svg, .nclb-next svg { width: 18px; height: 18px; }

/* Kopieerknop: zelfde familie als de sluitknop, maar bewust ingetogener —
   kleiner, dunnere rand, pas op hover volledig aanwezig. */
.nclb-copy {
  position: absolute; z-index: 3; top: 22px; right: 74px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24, 27, 21, .55); border: 1px solid rgba(200, 168, 75, .2);
  color: rgba(200, 168, 75, .72); border-radius: 99px; cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.nclb-copy:hover {
  background: rgba(200, 168, 75, .14); border-color: #C8A84B; color: #F0EDE6;
}
.nclb-copy svg { width: 15px; height: 15px; }
.nclb-copy.nclb-copy-done { color: #6B9040; border-color: rgba(107, 144, 64, .6); }

/* Bevestiging: klein, onderaan gecentreerd, verdwijnt vanzelf */
.nclb-toast {
  position: absolute; z-index: 4; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(24, 27, 21, .92); border: 1px solid rgba(200, 168, 75, .35);
  color: #C8A84B; border-radius: 99px; padding: 8px 18px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.nclb-toast.nclb-toast-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.nclb-toast.nclb-toast-err { color: #E0A0A0; border-color: rgba(224, 160, 160, .45); }

.nclb-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; width: 100%; height: 100%;
}

.nclb-media {
  display: flex; align-items: center; justify-content: center;
  max-width: 92vw; max-height: 84vh; min-height: 60px;
  animation: nclb-in .28s ease;
}
.nclb-media.nclb-dir-prev { animation-name: nclb-in-prev; }
@keyframes nclb-in      { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes nclb-in-prev { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nclb-media, .nclb-overlay { animation: none !important; transition: none !important; }
}

.nclb-media img,
.nclb-media video {
  max-width: 92vw; max-height: 84vh;
  width: auto; height: auto; display: block;
  border-radius: 6px; background: #181B15;
}
.nclb-media iframe {
  width: min(92vw, 1180px); height: min(84vh, 664px);
  border: 0; border-radius: 6px; background: #181B15;
}

.nclb-video-wrap { position: relative; display: flex; }
.nclb-play-overlay {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(12, 14, 10, .35); border: 0; cursor: pointer;
  border-radius: 6px;
}
.nclb-video-wrap.nclb-paused .nclb-play-overlay { display: flex; }
.nclb-play-overlay::after {
  content: ""; width: 0; height: 0;
  border-left: 22px solid #C8A84B;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  margin-left: 5px;
}

.nclb-caption {
  margin: 0; max-width: min(92vw, 760px); text-align: center;
  font-family: Barlow, sans-serif; font-weight: 300; font-size: 14px;
  color: #8C9185;
}
.nclb-caption:empty { display: none; }

.nclb-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(200, 168, 75, .25); border-top-color: #C8A84B;
  animation: nclb-spin .7s linear infinite;
}
@keyframes nclb-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .nclb-logo { height: 20px; top: 16px; left: 16px; }
  .nclb-close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .nclb-copy { top: 17px; right: 60px; width: 32px; height: 32px; }
  .nclb-toast { bottom: 18px; font-size: 11px; padding: 7px 15px; }
  .nclb-prev, .nclb-next { width: 40px; height: 40px; }
  .nclb-prev { left: 8px; }
  .nclb-next { right: 8px; }
  .nclb-counter { top: 20px; font-size: 11px; }
}
