/*
Theme Name: NG Solutions
Theme URI: https://www.ng-solutions.nl
Author: Next Generation Solutions
Description: Maatwerk thema voor NG Solutions. Donker techthema met RGB-accent, computer-showcase, automatische Google Reviews, projectenblog en ingebouwd contactformulier. Werkt volledig zonder plugins.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngs
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --ngs-bg: #0a0e1a;
  --ngs-bg-2: #0e1424;
  --ngs-surface: #131b2e;
  --ngs-surface-2: #1a2440;
  --ngs-line: rgba(120, 150, 220, .16);
  --ngs-text: #e7ecf5;
  --ngs-muted: #9aa7bf;
  --ngs-accent: #22d3ee;            /* wordt overschreven via Customizer */
  --ngs-accent-2: #7c3aed;
  --ngs-accent-3: #ec4899;
  --ngs-rgb: linear-gradient(90deg, var(--ngs-accent), var(--ngs-accent-2), var(--ngs-accent-3), var(--ngs-accent));
  --ngs-radius: 14px;
  --ngs-font-display: 'Space Grotesk', system-ui, sans-serif;
  --ngs-font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --ngs-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ngs-bg);
  color: var(--ngs-text);
  font-family: var(--ngs-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ngs-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ngs-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--ngs-font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.ngs-container { max-width: var(--ngs-max); margin: 0 auto; padding: 0 22px; }

/* ============================================================
   RGB-strip (signatuur — als een ledstrip in een PC-kast)
   ============================================================ */
.ngs-rgb-strip {
  height: 3px;
  background: var(--ngs-rgb);
  background-size: 300% 100%;
  animation: ngs-rgb-flow 9s linear infinite;
}
@keyframes ngs-rgb-flow {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ============================================================
   Header
   ============================================================ */
.ngs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ngs-line);
}
.ngs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.ngs-brand { display: flex; align-items: center; gap: 12px; color: var(--ngs-text); font-family: var(--ngs-font-display); font-weight: 700; font-size: 1.15rem; }
.ngs-brand:hover { text-decoration: none; }
.ngs-brand img { max-height: 46px; width: auto; }
.ngs-brand-mark { color: var(--ngs-accent); }

.ngs-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.ngs-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--ngs-text);
  font-size: .95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.ngs-nav a:hover { background: var(--ngs-surface); color: var(--ngs-accent); text-decoration: none; }

.ngs-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ngs-line);
  border-radius: 8px;
  color: var(--ngs-text);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}
@media (max-width: 880px) {
  .ngs-nav-toggle { display: block; }
  .ngs-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ngs-bg-2); border-bottom: 1px solid var(--ngs-line); padding: 12px 22px 18px; }
  .ngs-nav.is-open { display: block; }
  .ngs-nav ul { flex-direction: column; }
}

/* ============================================================
   Knoppen
   ============================================================ */
.ngs-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--ngs-font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.ngs-btn:hover { text-decoration: none; transform: translateY(-2px); }
.ngs-btn-primary { background: var(--ngs-accent); color: #06101a; }
.ngs-btn-primary:hover { box-shadow: 0 6px 24px color-mix(in srgb, var(--ngs-accent) 45%, transparent); }
.ngs-btn-ghost { background: transparent; color: var(--ngs-text); border-color: var(--ngs-line); }
.ngs-btn-ghost:hover { border-color: var(--ngs-accent); color: var(--ngs-accent); }

/* ============================================================
   Hero
   ============================================================ */
.ngs-hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 15% -10%, color-mix(in srgb, var(--ngs-accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at 90% 110%, color-mix(in srgb, var(--ngs-accent-2) 18%, transparent), transparent 70%),
    var(--ngs-bg);
}
.ngs-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ngs-line) 1px, transparent 1px), linear-gradient(90deg, var(--ngs-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  opacity: .5;
  pointer-events: none;
}
.ngs-hero-inner { position: relative; max-width: 780px; z-index: 2; }

/* Interactieve hero-effecten */
.ngs-hero-fx { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ngs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
  transition: transform .3s ease-out;
}
.ngs-orb-a {
  width: 480px; height: 480px;
  left: -140px; top: -160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ngs-accent) 55%, transparent), transparent 70%);
  animation: ngs-orb-drift 14s ease-in-out infinite alternate;
}
.ngs-orb-b {
  width: 540px; height: 540px;
  right: -180px; bottom: -220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ngs-accent-2) 55%, transparent), transparent 70%);
  animation: ngs-orb-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes ngs-orb-drift {
  from { translate: 0 0; }
  to   { translate: 60px 40px; }
}
.ngs-particles { position: absolute; inset: 0; overflow: hidden; }
.ngs-particle {
  position: absolute;
  bottom: -12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ngs-accent);
  opacity: 0;
  animation: ngs-particle-rise linear infinite;
}
.ngs-particle:nth-child(3n)  { background: var(--ngs-accent-2); }
.ngs-particle:nth-child(5n)  { background: var(--ngs-accent-3); width: 3px; height: 3px; }
@keyframes ngs-particle-rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .25; }
  100% { transform: translateY(-560px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ngs-orb { animation: none; }
  .ngs-particle { display: none; }
}
.ngs-eyebrow {
  display: inline-block;
  font-family: var(--ngs-font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ngs-accent);
  border: 1px solid color-mix(in srgb, var(--ngs-accent) 40%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.ngs-hero p.ngs-lead { font-size: 1.15rem; color: var(--ngs-muted); max-width: 620px; }
.ngs-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ngs-hero-title span { background: var(--ngs-rgb); background-size: 300% 100%; animation: ngs-rgb-flow 9s linear infinite; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   Secties
   ============================================================ */
.ngs-section { padding: 84px 0; }
.ngs-section-alt { background: var(--ngs-bg-2); border-top: 1px solid var(--ngs-line); border-bottom: 1px solid var(--ngs-line); }
.ngs-section-head { max-width: 680px; margin-bottom: 44px; }
.ngs-section-head p { color: var(--ngs-muted); }

/* Scroll reveal */
.ngs-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.ngs-reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Diensten
   ============================================================ */
.ngs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .ngs-grid-3 { grid-template-columns: 1fr; } }

/* Dienstenraster: 6 kaarten (3×2) + brede kaart onderaan */
.ngs-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ngs-services-grid > .ngs-card-wide { grid-column: 1 / -1; }
@media (max-width: 940px) {
  .ngs-services-grid { grid-template-columns: 1fr; }
}
.ngs-card-wide {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--ngs-surface), var(--ngs-surface-2));
}
.ngs-card-wide .ngs-card-icon { flex: 0 0 52px; }
.ngs-card-wide h3 { margin-top: 0; }
.ngs-card-wide p { margin: 0; color: var(--ngs-muted); max-width: 760px; }
@media (max-width: 560px) { .ngs-card-wide { flex-direction: column; } }

.ngs-card {
  position: relative;
  background: var(--ngs-surface);
  border: 1px solid var(--ngs-line);
  border-radius: var(--ngs-radius);
  padding: 30px 26px 26px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.ngs-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--ngs-rgb);
  background-size: 300% 100%;
  opacity: 0;
  transition: opacity .25s;
}
.ngs-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ngs-accent) 45%, transparent); }
.ngs-card:hover::after { opacity: 1; animation: ngs-rgb-flow 6s linear infinite; }
.ngs-card h3 { margin-top: 14px; }
.ngs-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--ngs-muted); }
.ngs-card ul li { margin-bottom: 6px; }
.ngs-card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ngs-accent) 18%, transparent), color-mix(in srgb, var(--ngs-accent-2) 16%, transparent));
  border: 1px solid color-mix(in srgb, var(--ngs-accent) 35%, transparent);
  color: var(--ngs-accent);
}
.ngs-card-icon svg { width: 26px; height: 26px; }
.ngs-card:hover .ngs-card-icon {
  box-shadow: 0 0 22px color-mix(in srgb, var(--ngs-accent) 35%, transparent);
}

/* ============================================================
   Projecten (blog)
   ============================================================ */
.ngs-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .ngs-projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ngs-projects-grid { grid-template-columns: 1fr; } }

.ngs-project-card {
  background: var(--ngs-surface);
  border: 1px solid var(--ngs-line);
  border-radius: var(--ngs-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.ngs-project-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ngs-accent) 45%, transparent); }
.ngs-project-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ngs-surface-2); }
.ngs-project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ngs-project-card:hover .ngs-project-thumb img { transform: scale(1.04); }
.ngs-project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ngs-project-body h3 { font-size: 1.1rem; margin: 0; }
.ngs-project-body h3 a { color: var(--ngs-text); }
.ngs-project-body h3 a:hover { color: var(--ngs-accent); text-decoration: none; }
.ngs-project-meta { font-size: .82rem; color: var(--ngs-muted); font-family: var(--ngs-font-display); letter-spacing: .05em; text-transform: uppercase; }
.ngs-project-excerpt { color: var(--ngs-muted); font-size: .95rem; margin: 0; }
.ngs-more-link { margin-top: auto; font-weight: 600; font-size: .9rem; }

/* Specs-blok */
.ngs-specs {
  background: var(--ngs-surface-2);
  border: 1px solid var(--ngs-line);
  border-left: 3px solid var(--ngs-accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}
.ngs-specs h4 { color: var(--ngs-accent); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ngs-specs ul { list-style: none; margin: 0; padding: 0; }
.ngs-specs li { padding: 7px 0; border-bottom: 1px dashed var(--ngs-line); font-size: .95rem; }
.ngs-specs li:last-child { border-bottom: 0; }
.ngs-specs li strong { color: var(--ngs-accent); font-family: var(--ngs-font-display); font-weight: 600; margin-right: 8px; }

/* ============================================================
   Showcase slider
   ============================================================ */
.ngs-slider { position: relative; overflow: hidden; border-radius: var(--ngs-radius); }
.ngs-slider-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.ngs-slide { flex: 0 0 100%; position: relative; }
.ngs-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ngs-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 28px 22px;
  background: linear-gradient(transparent, rgba(6, 9, 18, .92));
}
.ngs-slide-caption h3 { margin: 0; font-size: 1.3rem; }
.ngs-slide-caption p { margin: 4px 0 0; color: var(--ngs-muted); font-size: .92rem; }
.ngs-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ngs-line);
  background: rgba(10, 14, 26, .7);
  color: var(--ngs-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  z-index: 2;
}
.ngs-slider-btn:hover { background: var(--ngs-surface-2); border-color: var(--ngs-accent); }
.ngs-slider-prev { left: 14px; }
.ngs-slider-next { right: 14px; }
.ngs-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ngs-slider-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--ngs-line); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.ngs-slider-dot.is-active { background: var(--ngs-accent); transform: scale(1.25); }

/* ============================================================
   Reviews
   ============================================================ */
.ngs-reviews-summary {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 34px;
}
.ngs-reviews-score {
  font-family: var(--ngs-font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ngs-accent);
  line-height: 1;
}
.ngs-stars { color: #fbbf24; letter-spacing: 2px; font-size: 1.05rem; }
.ngs-reviews-count { color: var(--ngs-muted); font-size: .92rem; }
.ngs-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .ngs-reviews-grid { grid-template-columns: 1fr; } }
.ngs-review {
  background: var(--ngs-surface);
  border: 1px solid var(--ngs-line);
  border-radius: var(--ngs-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ngs-review-head { display: flex; align-items: center; gap: 12px; }
.ngs-review-head img { width: 42px; height: 42px; border-radius: 50%; }
.ngs-review-name { font-weight: 600; font-size: .95rem; }
.ngs-review-time { color: var(--ngs-muted); font-size: .8rem; }
.ngs-review-text { color: var(--ngs-muted); font-size: .93rem; margin: 0; }
.ngs-reviews-note { margin-top: 26px; font-size: .88rem; color: var(--ngs-muted); }

/* ============================================================
   Contact
   ============================================================ */
.ngs-contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .ngs-contact-grid { grid-template-columns: 1fr; } }

.ngs-form { display: grid; gap: 16px; }
.ngs-form label { font-size: .88rem; font-weight: 600; display: block; margin-bottom: 6px; }
.ngs-form input, .ngs-form textarea, .ngs-form select {
  width: 100%;
  background: var(--ngs-surface);
  border: 1px solid var(--ngs-line);
  border-radius: 10px;
  color: var(--ngs-text);
  padding: 13px 15px;
  font: inherit;
  transition: border-color .2s;
}
.ngs-form input:focus, .ngs-form textarea:focus, .ngs-form select:focus { border-color: var(--ngs-accent); outline: none; }
.ngs-form textarea { min-height: 140px; resize: vertical; }
.ngs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .ngs-form-row { grid-template-columns: 1fr; } }
.ngs-hp { position: absolute; left: -9999px; }
.ngs-form-notice { padding: 14px 18px; border-radius: 10px; font-size: .95rem; }
.ngs-form-notice.success { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #86efac; }
.ngs-form-notice.error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; }

.ngs-contact-info { display: grid; gap: 18px; }
.ngs-info-block { background: var(--ngs-surface); border: 1px solid var(--ngs-line); border-radius: var(--ngs-radius); padding: 22px 24px; }
.ngs-info-block h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ngs-accent); margin-bottom: 8px; }
.ngs-info-block p { margin: 0; color: var(--ngs-muted); }

/* ============================================================
   Klanten logo-carousel
   ============================================================ */
.ngs-logo-carousel {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ngs-logo-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  width: max-content;
  animation: ngs-logo-scroll 32s linear infinite;
}
.ngs-logo-carousel:hover .ngs-logo-track { animation-play-state: paused; }
@keyframes ngs-logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ngs-logo-carousel { mask-image: none; -webkit-mask-image: none; }
  .ngs-logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
.ngs-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 220px;
  padding: 24px 18px 18px;
  background: linear-gradient(160deg, var(--ngs-surface), var(--ngs-surface-2));
  border: 1px solid var(--ngs-line);
  border-radius: var(--ngs-radius);
  color: var(--ngs-muted);
  font-size: .82rem;
  font-family: var(--ngs-font-display);
  letter-spacing: .04em;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ngs-logo-item:hover {
  text-decoration: none;
  color: var(--ngs-accent);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ngs-accent) 45%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.ngs-logo-item img {
  height: 74px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: transform .25s;
}
.ngs-logo-item:hover img { transform: scale(1.05); }

/* Als er (nog) weinig logo's zijn: geen animatie, netjes gecentreerd */
.ngs-logo-carousel.is-static { mask-image: none; -webkit-mask-image: none; }
.ngs-logo-carousel.is-static .ngs-logo-track {
  animation: none;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 30px;
}
.ngs-logo-carousel.is-static .ngs-logo-item[aria-hidden="true"] { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.ngs-footer { background: var(--ngs-bg-2); border-top: 1px solid var(--ngs-line); padding: 40px 0 28px; margin-top: 0; }
.ngs-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; color: var(--ngs-muted); font-size: .9rem; }
.ngs-socials { display: flex; gap: 10px; }
.ngs-socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--ngs-line);
  border-radius: 10px;
  color: var(--ngs-text);
  transition: border-color .2s, color .2s;
}
.ngs-socials a:hover { border-color: var(--ngs-accent); color: var(--ngs-accent); text-decoration: none; }
.ngs-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   Losse pagina's / blog
   ============================================================ */
.ngs-page-hero { padding: 64px 0 44px; background: var(--ngs-bg-2); border-bottom: 1px solid var(--ngs-line); }
.ngs-back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--ngs-font-display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ngs-muted);
  transition: color .2s, transform .2s;
}
.ngs-back-link:hover { color: var(--ngs-accent); text-decoration: none; transform: translateX(-3px); }
.ngs-content { padding: 56px 0 84px; }
.ngs-content-inner { max-width: 780px; }
.single-showcase .ngs-content-inner { max-width: 920px; }
.ngs-content-inner img { border-radius: var(--ngs-radius); margin: 18px 0; }
.ngs-content-inner p { color: #c6cede; }

/* Uniform fotoformaat in berichten (instelbaar via Customizer).
   De lightbox toont bij klikken altijd de volledige, onbijgesneden foto. */
.ngs-content-inner > img,
.ngs-content-inner .wp-block-image img,
.ngs-content-inner p > img,
.ngs-img-row img,
.ngs-gallery img {
  width: 100%;
  aspect-ratio: var(--ngs-media-ratio, 4 / 3);
  object-fit: cover;
}

/* Media in de tekst: strakke, gelijke marges */
.ngs-content-inner figure { margin: 18px 0; }
.ngs-content-inner figure img,
.ngs-content-inner figure video { margin: 0; }
.ngs-content-inner .wp-block-video { text-align: center; }
.ngs-content-inner video {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: var(--ngs-radius);
  background: #000;
}

/* Opeenvolgende afbeeldingen automatisch naast elkaar (via JS gegroepeerd) */
.ngs-img-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.ngs-img-row.ngs-img-row-3 { grid-template-columns: repeat(3, 1fr); }
.ngs-img-row figure, .ngs-img-row p { margin: 0; }
.ngs-img-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}
@media (max-width: 640px) {
  .ngs-img-row, .ngs-img-row.ngs-img-row-3 { grid-template-columns: 1fr; }
}
.ngs-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.ngs-pagination .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--ngs-line);
  border-radius: 8px;
  color: var(--ngs-text);
  font-size: .9rem;
}
.ngs-pagination .page-numbers.current { background: var(--ngs-accent); color: #06101a; border-color: var(--ngs-accent); }
.ngs-pagination a.page-numbers:hover { border-color: var(--ngs-accent); text-decoration: none; }

.ngs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.ngs-gallery img { border-radius: 10px; aspect-ratio: var(--ngs-media-ratio, 4 / 3); object-fit: cover; width: 100%; margin: 0; }

/* ============================================================
   Lightbox (foto-popup)
   ============================================================ */
.ngs-zoomable { cursor: zoom-in; }
body.ngs-noscroll { overflow: hidden; }
.ngs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 18, .92);
  backdrop-filter: blur(6px);
  padding: 48px;
}
.ngs-lightbox.is-open { display: flex; animation: ngs-lb-fade .2s ease; }
@keyframes ngs-lb-fade { from { opacity: 0; } to { opacity: 1; } }
.ngs-lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
}
.ngs-lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ngs-line);
  background: rgba(19, 27, 46, .8);
  color: var(--ngs-text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.ngs-lightbox-close:hover { border-color: var(--ngs-accent); color: var(--ngs-accent); transform: rotate(90deg); }
.ngs-lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ngs-line);
  background: rgba(19, 27, 46, .8);
  color: var(--ngs-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.ngs-lightbox-nav:hover { border-color: var(--ngs-accent); color: var(--ngs-accent); }
.ngs-lightbox-prev { left: 20px; }
.ngs-lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .ngs-lightbox { padding: 16px; }
  .ngs-lightbox img { max-width: 96vw; }
  .ngs-lightbox-close { top: 10px; right: 10px; }
  .ngs-lightbox-prev { left: 8px; }
  .ngs-lightbox-next { right: 8px; }
}

/* Gecentreerde knoppen onder elkaar aan het einde van een bericht */
.ngs-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  text-align: center;
}

/* ============================================================
   Terug-naar-boven knop
   ============================================================ */
.ngs-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ngs-accent) 45%, transparent);
  background: rgba(19, 27, 46, .9);
  backdrop-filter: blur(6px);
  color: var(--ngs-accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .25s, transform .25s, box-shadow .25s, background .25s;
  pointer-events: none;
}
.ngs-to-top svg { width: 22px; height: 22px; }
.ngs-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ngs-to-top:hover {
  background: var(--ngs-accent);
  color: #06101a;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--ngs-accent) 45%, transparent);
}
@media (max-width: 640px) {
  .ngs-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

/* WordPress kern */
.alignwide { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
