/* Botanical Wisdom — demo of V10 "het venster" (the window), 2026-11-28. Local demo only, not their site.
   Idea seen on mattsleeps.com: the photo is pinned to the screen BEHIND the page, and one block of the page is
   see-through, so you look through it like a window while the page slides past. Nothing moves by itself.
   How: the block gets clip-path: inset(0) — that clips even a pinned (position: fixed) child, also on iPhones —
   and the photo inside it is position: fixed, the full screen height. demo-venster.js only sets which block. */

:root { --bww-olijf-donker: rgba(74, 80, 60, .74); }

.bww-win { position: relative; clip-path: inset(0); overflow: hidden; }
.bww-win > .bww-layer {
  position: fixed; top: 0; left: var(--bww-x, 0px); width: var(--bww-w, 100vw);
  height: 100vh; height: 100lvh;            /* lvh: the tallest phone screen, so no gap when the address bar hides */
  z-index: 0; pointer-events: none;
}
.bww-win > .bww-layer img {
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; display: block; border-radius: 0 !important; margin: 0 !important;
}
/* their fade-up slides blocks 24 px while they appear — a pinned photo inside would ride along, so: fade only */
html[data-bww] .bwd-reveal:has(.bww-win), html[data-bww] .bww-win.bwd-reveal { transform: none !important; }

/* 1 · Bosportret — the wide forest portrait becomes a full-width window */
.bww-bos { height: 82vh !important; min-height: 420px; border-radius: 0; }
.bww-bos > .bww-layer img { object-position: 45% 38%; }

/* 2 · Over Odilia — the rosemary photo becomes a window in its own column */
.bww-odilia { aspect-ratio: 4 / 5; border-radius: 6px; clip-path: inset(0 round 6px); }
.bww-odilia > .bww-layer img { object-position: 52% 45%; }

/* 3 · Slotbeeld — the closing band gets a photo behind it, under a soft olive veil */
.bw-slot-cta.bww-slot { min-height: 72vh; display: flex; align-items: center; justify-content: center; background: transparent !important; }
.bww-slot > .bww-layer::after { content: ''; position: absolute; inset: 0; background: var(--bww-olijf-donker); }
.bww-slot > .bww-layer img { object-position: 50% 55%; }
.bww-slot > .bw-slot-cta-in { position: relative; z-index: 1; }

/* ── the demo tabs (not part of the idea) ── */
.bww-tabs {
  position: fixed; left: 12px; bottom: 12px; z-index: 99999; display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  max-width: calc(100vw - 24px); padding: 6px 8px; border-radius: 10px;
  background: rgba(37, 41, 34, .92); color: #f8f3ef; font: 600 12px/1.2 system-ui, sans-serif; box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.bww-tabs b { font-weight: 600; opacity: .7; margin-right: 2px; }
.bww-tabs a { color: #f8f3ef; text-decoration: none; padding: 5px 8px; border-radius: 6px; }
.bww-tabs a:hover { background: rgba(248, 243, 239, .14); }
.bww-tabs a[aria-current] { background: #f8f3ef; color: #2b2f27; }
@media (max-width: 700px) { .bww-tabs { left: 6px; bottom: 84px; flex-wrap: nowrap; font-size: 12px; } .bww-tabs a { padding: 4px 7px; } }   /* above their cart button */
