/* lunchroom-gasten 1.0.0 · gastreacties met kleurmasker en spotlight naar ReactBits ChromaGrid (vanilla).
   Kleuren en fonts via --m-*-tokens; spotlightpositie, kracht en verloop zet module.js. */
.msm-lunchroom-gasten {
  --lg-primary: var(--m-primary, #8d4e3b);
  --lg-bg: var(--m-bg, #eee8dc);
  --lg-ink: var(--m-ink, #26312b);
  --lg-x: -9999px;
  --lg-y: -9999px;
  --lg-power: 0;
  --lg-r: 260px;
  --lg-gap: 12px;
  position: relative;
  scroll-margin-top: 116px;
  background: color-mix(in srgb, var(--lg-bg) 50%, #ffffff);
  color: var(--lg-ink);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 4vw, 60px);
  font: 400 15px/1.55 var(--m-font-body, Arial, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.msm-lunchroom-gasten *,
.msm-lunchroom-gasten *::before,
.msm-lunchroom-gasten *::after { box-sizing: border-box; }

.msm-lunchroom-gasten .lg-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: end;
  gap: 20px 48px;
  max-width: 1240px;
  margin: 0 auto 32px;
}
.msm-lunchroom-gasten .lg-eyebrow {
  margin: 0 0 14px;
  font: 600 9px/1.3 var(--m-font-body, Arial, sans-serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.msm-lunchroom-gasten h2 {
  margin: 0;
  font: 400 clamp(46px, 6.4vw, 92px)/0.88 var(--m-font-display, "Times New Roman", serif);
  letter-spacing: -0.05em;
}
.msm-lunchroom-gasten .lg-intro {
  margin: 0;
  max-width: 40ch;
  color: color-mix(in srgb, var(--lg-ink) 78%, transparent);
}
.msm-lunchroom-gasten .lg-foot {
  max-width: 1240px;
  margin: 20px auto 0;
  font-size: 12px;
  color: color-mix(in srgb, var(--lg-ink) 65%, transparent);
}

/* Raster: drie kolommen, schuift terug naar twee en één (bron: auto-fill met minimale kaartbreedte). */
.msm-lunchroom-gasten .lg-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1240px;
  display: grid;
  gap: var(--lg-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(260px, calc((100% - 2 * var(--lg-gap)) / 3))), 1fr));
}
.msm-lunchroom-gasten .lg-grid > li { display: flex; min-width: 0; }

.msm-lunchroom-gasten .lg-card {
  --lg-accent: var(--lg-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 8px 16px;
  border-radius: calc(var(--m-radius, 0px) + 8px);
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--lg-bg) 30%, #ffffff) 100%);
  box-shadow: 0 4px 10px -5px color-mix(in srgb, var(--lg-ink) 25%, transparent);
  color: var(--lg-ink);
  overflow: hidden;
  isolation: isolate;
  outline: none;
  transition: filter 0.25s ease;
}
.msm-lunchroom-gasten .lg-grid > li:nth-child(3n + 2) .lg-card { --lg-accent: color-mix(in srgb, var(--lg-ink) 72%, var(--lg-primary)); }
.msm-lunchroom-gasten .lg-grid > li:nth-child(3n + 3) .lg-card { --lg-accent: color-mix(in srgb, var(--lg-primary) 55%, var(--lg-bg)); }
.msm-lunchroom-gasten .lg-card:hover { filter: brightness(0.985); }
.msm-lunchroom-gasten .lg-card:focus-visible {
  outline: 3px solid var(--lg-primary);
  outline-offset: 3px;
}

/* Lagen uit de bron: wash, mono/kleur, rim en glow. */
.msm-lunchroom-gasten .lg-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 70% at 50% 100%, var(--lg-accent), transparent 72%);
  opacity: 0;
}
.msm-lunchroom-gasten .lg-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 1;
  border-radius: var(--m-radius, 0px);
  overflow: hidden;
}
.msm-lunchroom-gasten .lg-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lg-accent) 36%, var(--lg-bg));
  color: var(--lg-ink);
}
.msm-lunchroom-gasten .lg-art img {
  width: min(160px, calc(100% - 24px));
  height: auto;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.msm-lunchroom-gasten .lg-mono { filter: grayscale(1) brightness(0.88); }
.msm-lunchroom-gasten .lg-color { opacity: 1; }

.msm-lunchroom-gasten .lg-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 4px 10px 0;
}
.msm-lunchroom-gasten .lg-quote p {
  margin: 0;
  font: 400 21px/1.2 var(--m-font-display, "Times New Roman", serif);
  letter-spacing: -0.015em;
}
.msm-lunchroom-gasten .lg-quote p::before { content: "\201C"; }
.msm-lunchroom-gasten .lg-quote p::after { content: "\201D"; }
.msm-lunchroom-gasten figcaption {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--lg-ink) 14%, transparent);
  font-size: 13px;
}
.msm-lunchroom-gasten figcaption b { font-weight: 600; }
.msm-lunchroom-gasten figcaption span:last-child { color: color-mix(in srgb, var(--lg-ink) 62%, transparent); }
.msm-lunchroom-gasten .lg-label {
  flex-basis: 100%;
  font: 600 9px/1.3 var(--m-font-body, Arial, sans-serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lg-primary);
}
.msm-lunchroom-gasten .lg-rim,
.msm-lunchroom-gasten .lg-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}
.msm-lunchroom-gasten .lg-rim { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-ink) 9%, transparent), inset 0 1px 0 #ffffff; }
.msm-lunchroom-gasten .lg-glow {
  box-shadow: inset 0 0 0 1px var(--lg-accent), inset 0 0 16px -8px var(--lg-accent);
  opacity: 0;
}

/* Met script: kleur alleen binnen de spotlight (radiaal masker met smootherstep-verloop). */
.msm-lunchroom-gasten[data-ready] .lg-wash,
.msm-lunchroom-gasten[data-ready] .lg-color,
.msm-lunchroom-gasten[data-ready] .lg-glow {
  -webkit-mask-image: radial-gradient(circle var(--lg-r) at calc(var(--lg-x) - var(--lg-ox, 0px)) calc(var(--lg-y) - var(--lg-oy, 0px)), var(--lg-stops, #000000 0%, transparent 100%));
  mask-image: radial-gradient(circle var(--lg-r) at calc(var(--lg-x) - var(--lg-ox, 0px)) calc(var(--lg-y) - var(--lg-oy, 0px)), var(--lg-stops, #000000 0%, transparent 100%));
}
.msm-lunchroom-gasten[data-ready] .lg-wash { opacity: calc(0.5 * var(--lg-power) * 0.45); }
.msm-lunchroom-gasten[data-ready] .lg-color { opacity: var(--lg-power); }
.msm-lunchroom-gasten[data-ready] .lg-glow { opacity: var(--lg-power); }

/* Toetsenbord: de kaart met focus licht als geheel op (bron: reveal "card"). De overgang staat
   alleen op de opgelichte staat, zodat de spotlight zelf niet naijlt. */
.msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-wash,
.msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-color,
.msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-glow {
  -webkit-mask-image: none;
  mask-image: none;
  transition: opacity 0.3s ease;
}
.msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-wash { opacity: 0.225; }
.msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-color,
.msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-glow { opacity: 1; }

@media (max-width: 860px) {
  .msm-lunchroom-gasten .lg-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .msm-lunchroom-gasten { scroll-margin-top: 97px; padding: 48px 18px 56px; }
  .msm-lunchroom-gasten .lg-quote p { font-size: 19px; }
}

/* Touch (data-full of hover: none) en rustige variant: alles in kleur, geen spotlight. */
.msm-lunchroom-gasten[data-full] .lg-wash,
.msm-lunchroom-gasten[data-full] .lg-color,
.msm-lunchroom-gasten[data-full] .lg-glow {
  -webkit-mask-image: none;
  mask-image: none;
}
.msm-lunchroom-gasten[data-full] .lg-color { opacity: 1; }
.msm-lunchroom-gasten[data-full] .lg-wash,
.msm-lunchroom-gasten[data-full] .lg-glow { opacity: 0; }
.msm-lunchroom-gasten[data-full] .lg-card.is-lit .lg-glow { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .msm-lunchroom-gasten[data-ready] .lg-wash,
  .msm-lunchroom-gasten[data-ready] .lg-color,
  .msm-lunchroom-gasten[data-ready] .lg-glow {
    -webkit-mask-image: none;
    mask-image: none;
    transition: none;
  }
  .msm-lunchroom-gasten[data-ready] .lg-color { opacity: 1; }
  .msm-lunchroom-gasten[data-ready] .lg-wash,
  .msm-lunchroom-gasten[data-ready] .lg-glow { opacity: 0; }
  .msm-lunchroom-gasten[data-ready] .lg-card.is-lit .lg-glow { opacity: 1; }
  .msm-lunchroom-gasten .lg-card { transition: none; }
}
