html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.about-grid--stack {
  align-items: stretch;
}

.about-card-sticky {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100vh;
  height: fit-content;
}

.about-scroll-stack-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  isolation: isolate;
}

.scroll-stack-scroller--window {
  position: relative;
  width: 100%;
  overflow: visible;
}

.scroll-stack-scroller--window .scroll-stack-inner {
  padding: 12vh 0 48vh;
  min-height: auto;
}

.scroll-stack-card {
  transform-origin: top center;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--wm-radius-xl);
  border: 1px solid var(--wm-color-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: hidden;
  background: var(--wm-color-surface, rgb(10, 14, 26));
  contain: layout style paint;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.scroll-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-stack-card--landscape {
  aspect-ratio: 3 / 2;
  width: 100%;
}

.scroll-stack-card--portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.scroll-stack-end {
  width: 100%;
  height: 1px;
}

@media (max-width: 768px) {
  .about-grid--stack {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-card-sticky {
    position: static;
    display: block;
    min-height: auto;
  }

  .about-scroll-stack-wrap {
    min-height: 0;
    display: block;
  }

  .scroll-stack-scroller--window .scroll-stack-inner {
    padding: 4vh 0 30vh;
  }

  .scroll-stack-card--portrait {
    aspect-ratio: 3 / 4;
    width: min(68vw, 264px);
    margin-inline: auto;
  }

  .scroll-stack-card--landscape {
    aspect-ratio: 3 / 2;
    width: 100%;
  }

  .scroll-stack-card {
    border-radius: var(--wm-radius-lg);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-stack-card {
    transform: none !important;
    filter: none !important;
  }
}
