/**
 * Sticky Section — Scroll Storytelling
 *
 * Block style "Sticky" on core/columns.
 * First column stays fixed while the second column scrolls.
 * Perfect for "text left + images right" scroll storytelling.
 *
 * @since 1.9.0
 */

/* ─── Layout ─── */
.is-style-nvf-sticky {
  position: relative;
  align-items: flex-start;
}

.is-style-nvf-sticky > .wp-block-column:first-child {
  position: sticky;
  top: calc(var(--nvf-header-height, 80px) + 2rem);
  align-self: flex-start;
}

/* ─── Typographic polish ─── */
.is-style-nvf-sticky > .wp-block-column:first-child h2,
.is-style-nvf-sticky > .wp-block-column:first-child h3 {
  margin-top: 0;
}

/* ─── Right column spacing ─── */
.is-style-nvf-sticky > .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 4rem);
}

.is-style-nvf-sticky > .wp-block-column:last-child > * + * {
  margin-top: 0; /* gap handles spacing */
}

/* ─── Images in scrolling column ─── */
.is-style-nvf-sticky > .wp-block-column:last-child .wp-block-image img {
  border-radius: var(--nvf-radius, 8px);
}

/* ─── Responsive: stack on mobile ─── */
@media (max-width: 768px) {
  .is-style-nvf-sticky > .wp-block-column:first-child {
    position: static;
  }
}
