/**
 * About2 Section — Sticky Top Nav + Scrolling Left + Switching Right Image
 * Conectivo
 */

.about2 ul,
.about2 li {
  list-style: none;
  text-decoration: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

/* ── Top sticky nav ─────────────────────────────────────────────────────── */
.about2__top {
  position: sticky;
  top: var(--header-height, 80px);
  z-index: 10;
}

/* ── Right column — sticky below header ─────────────────────────────────── */
/*
 * No height on the column — the image defines it.
 * align-self: flex-start stops the column stretching to full left-col height,
 * which would make it scroll out of its own sticky range.
 */
.about2__right {
  position: sticky;
  top: var(--header-height, 80px);
  align-self: flex-start;           /* don't stretch to left col height */
  height: calc(100vh - var(--header-height, 80px));
  display: flex;
  align-items: center;              /* centre image to the viewport, not the element */
}

/* ── Image panel (right col) ────────────────────────────────────────────── */
.about2-images {
  display: grid;
  width: 100%;
  /* no explicit height — image determines its own size, column centres it */
}

.about2-images__item {
  grid-area: 1 / 1; /* all items occupy the same cell */
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.about2-images__item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about2-images__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Nav item active state ──────────────────────────────────────────────── */
.about2__nav-item {
  cursor: pointer;
}

.about2__nav-item.about2__top-el-active {
  background-color: var(--color-orange, #F47A27) !important;
  color: #fff !important;
}
