/* Scroll-driven sticky scale grid (cloned from Kope "Sticky Images" IX2 action a-58).
   Scroll progress through 300svh wrapper drives each cell from 100vw/100vh down to 32.7vw/33.33vh,
   revealing a 3x3 grid. */

.scale-grid-section {
  background-color: var(--base-ananya, #fbfbfb);
}

.scale-grid-section .sticky-wrapper {
  width: 100%;
  height: 300svh;
  position: relative;
  overflow: clip;
}

.scale-grid-section .sticky-images {
  width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.scale-grid-section .scale-grid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  align-self: center;
  position: relative;
  gap: 1rem;
}

.scale-grid-section .scale-grid-images {
  flex: none;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.scale-grid-section .scale-grid-images > img,
.scale-grid-section .scale-grid-images > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
