/* v3.0.2 — unified scroll reveal, preserving existing layout and Bootstrap grid */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-padding-top: 85px; }
  .gls-motion { opacity: 1; transform: none; }
  .gls-motion.gls-motion-pending { opacity: 0; transform: translate3d(0, 22px, 0); }
  .gls-motion.gls-motion-pending.gls-motion-image { transform: translate3d(0, 28px, 0) scale(.982); }
  .gls-motion.gls-motion-active { opacity: 1; transform: none; transition: opacity .72s ease-out, transform .72s cubic-bezier(.22,1,.36,1); transition-delay: var(--gls-delay, 0ms); }
  .books-ads .gls-motion.gls-motion-pending { transform: translate3d(0, 28px, 0); }
  .books-ads .gls-motion.gls-motion-pending.gls-motion-image { transform: translate3d(0, 34px, 0) scale(.98); }
  .books-ads .gls-motion.gls-motion-active { opacity: 1; transform: none; transition-duration: .85s; }
  .books-btn, .btn-primary { transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease; }
  .books-btn:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .gls-motion { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* v3.0.4 — Lenis smooth wheel scroll (desktop only, see gls-smooth-scroll.js) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; } /* avoid double smoothing with CSS smooth */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
