/* Both versions use the same material for the surrounding gallery panel. */
html:is([data-home-example-style="carrousel"], [data-home-example-style="plaats"]) {
  --gallery-lift: 7px 10px 24px -14px #41526f70, -5px -5px 16px -8px #fff,
    inset 1px 1px 2px #ffffffe8;
}
html:is([data-home-example-style="carrousel"], [data-home-example-style="plaats"])[data-nexin-theme="dark"] {
  --gallery-lift: 7px 10px 24px -12px #08090cbc, -5px -5px 16px -8px #e4e9f323,
    inset 1px 1px 2px #eef2fa21;
}
@media (forced-colors: none) {
  html:is([data-home-example-style="carrousel"], [data-home-example-style="plaats"])[data-complete-review] #voorbeelden .nx-frame-examples {
    box-shadow: var(--gallery-lift);
  }
}
html[data-home-example-style="plaats"][data-gallery-inline-open] {
  overflow-anchor: none;
  scroll-padding-block-start: calc(var(--nx-fixed-header, 65px) + 16px);
}

/* Fill the existing carousel faces and leave the geometry and animation layers intact. */
html[data-home-example-style="carrousel"] .side-card-frame .glimpse {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  transform: none;
}
html[data-home-example-style="carrousel"] .glimpse .example-thumbnail {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
html[data-home-example-style="carrousel"] .glimpse .thumb-drawing {
  font-size: clamp(.39px, .75cqi, 2.45px);
}

html[data-home-example-style="plaats"] dialog.nx-example-popup[data-gallery-local][open] {
  position: fixed;
  inset: var(--example-local-top, 10px) auto auto var(--example-local-left, 10px);
  max-height: var(--example-local-height, calc(100dvh - 20px)) !important;
  margin: 0;
  border-radius: 23px;
  box-shadow: 0 16px 54px -20px #111b3c70;
  animation: gallery-example-open 310ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-home-example-style="plaats"][data-nexin-theme="dark"] dialog.nx-example-popup[data-gallery-local][open] {
  box-shadow: 0 16px 54px -16px #080b14d6;
}
html[data-home-example-style="plaats"] dialog.nx-example-popup[data-gallery-local]::backdrop {
  background: #10162324;
}
html[data-home-example-style="plaats"][data-nexin-theme="dark"] dialog.nx-example-popup[data-gallery-local]::backdrop {
  background: #080b1447;
}
html[data-home-example-style="plaats"] dialog.nx-example-popup[data-gallery-local] > #detail {
  max-height: calc(var(--example-local-height, 100dvh - 20px) - 2px) !important;
  scrollbar-color: #69798f transparent;
}
@media (min-width: 801px) {
  html[data-home-example-style="plaats"] dialog.nx-example-popup[data-gallery-local] #detail .detail-stage {
    max-height: min(390px, max(160px, calc(var(--example-local-height, 620px) - 160px)));
  }
}
@keyframes gallery-example-open {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
html[data-home-example-style="plaats"][data-nexin-motion="paused"] dialog.nx-example-popup[data-gallery-local][open] {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-home-example-style="plaats"] dialog.nx-example-popup[data-gallery-local][open] { animation: none; }
}
