/* cycle™ — Bento gallery (scroll-scrub expand).
   Pinned bento grid; GSAP Flip + ScrollTrigger scrub-zoom tiles from a compact
   bento into an expanded layout. Column count + spans adapt to photo count and
   viewport (min 1 → max 8). Degrades to a static bento without GSAP. */
.bento-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.bento {
  --cols: 4;
  --rh: 15.5vh;
  display: grid;
  grid-auto-flow: dense;
  gap: 10px;
  width: 100%;
  max-width: 1500px;
  padding: 0 clamp(16px, 4vw, 48px);
  box-sizing: border-box;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--rh);
  justify-content: center;
  align-content: center;
}
/* expanded (scrub) state — captured by Flip, never shown statically */
.bento.is-final {
  --rh: 46vh;
  grid-template-columns: repeat(var(--cols), 62vw);
  max-width: none;
  padding: 0;
}
.bento__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--gloss-edge-dark), 0 10px 40px rgba(0,0,0,0.5);
  will-change: transform;
}
.bento__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.08);
  -webkit-user-drag: none; user-select: none;
}
.bento__item .bn {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; mix-blend-mode: difference;
}
.bento__item.is-hero { border-color: rgba(255,255,255,0.28); box-shadow: var(--gloss-edge-dark), 0 16px 60px rgba(0,0,0,0.6); }
.bento__item.is-hero .bn::before { content: "Feature · "; color: #fff; }
