/* Scrollytelling layout for blog single posts */
.vx-single-blog--scrolly {
  background: var(--background); /* #111a22;*/
  color: #fff;
}

.vx-single-blog--scrolly .vx-scrolly-root {
  position: relative;
  background: #111a22;
}

.vx-single-blog--scrolly .vx-scrolly-scene {
  position: relative;
  height: 200vh;
  z-index: 1;
}

.vx-single-blog--scrolly .vx-scrolly-scene + .vx-scrolly-scene {
  margin-top: -100vh;
}

.vx-single-blog--scrolly .vx-scrolly-scene.is-active {
  z-index: 3;
}

.vx-single-blog--scrolly .vx-scrolly-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  contain: layout paint style;
  transform: translateZ(0);
}

.vx-single-blog--scrolly .vx-scrolly-scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.vx-single-blog--scrolly .vx-scrolly-scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.08) 42%,
    rgba(0, 0, 0, 0.2) 100%
  );
  opacity: 0;
  will-change: opacity;
  backface-visibility: hidden;
}

.vx-single-blog--scrolly .vx-scrolly-scene-content-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100% - 2.5rem));
  transform: translate(-50%, -50%);
  z-index: 2;
}

.vx-single-blog--scrolly .vx-scrolly-scene-content {
  opacity: 0;
  transform: translate3d(0, 120px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: paint;
}

.vx-single-blog--scrolly .vx-scrolly-scene:first-child .vx-scrolly-scene-bg {
  opacity: 1;
  transform: scale(1.02);
}

.vx-single-blog--scrolly .vx-scrolly-scene:first-child .vx-scrolly-scene-content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.vx-single-blog--scrolly .vx-scrolly-scene:first-child .vx-scrolly-scene-shade {
  opacity: 0.07;
}

.vx-single-blog--scrolly .vx-scrolly-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(230, 126, 71, 0.94);
}

.vx-single-blog--scrolly .vx-scrolly-title {
  margin: 1rem 0 1rem;
  font-family: "Noto Serif", "Roboto Slab", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.8vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.vx-single-blog--scrolly .vx-scrolly-excerpt {
  margin: 0 0 1.1rem;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.vx-single-blog--scrolly .vx-scrolly-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.vx-single-blog--scrolly .vx-scrolly-text {
  margin-top: 1.5rem;
  max-width: 840px;
  font-family: "Noto Serif", "Roboto Slab", Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.2vw, 2.05rem);
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.vx-single-blog--scrolly .vx-scrolly-text p {
  display: inline;
  margin: 0;
  padding: 0.06em 0.18em;
  background: rgba(0, 0, 0, 0.22);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.vx-single-blog--scrolly .bg-gradient-to-br.from-secondary\/20.to-muted\/20 {
  background: linear-gradient(160deg, rgba(244, 246, 249, 0.92), rgba(236, 242, 247, 0.82));
}

@media (max-width: 768px) {
  .vx-single-blog--scrolly .vx-scrolly-scene {
    height: 180vh;
  }

  .vx-single-blog--scrolly .vx-scrolly-scene + .vx-scrolly-scene {
    margin-top: -100vh;
  }

  .vx-single-blog--scrolly .vx-scrolly-scene-content-wrap {
    width: calc(100% - 1.5rem);
  }

  .vx-single-blog--scrolly .vx-scrolly-text {
    font-size: clamp(1.08rem, 4.6vw, 1.45rem);
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vx-single-blog--scrolly .vx-scrolly-scene-content {
    opacity: 1 !important;
    transform: none !important;
  }
}
