/* ===== Echtreizen Scroll Story ===== */

.er-story { position: relative; }

.er-story__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Desktop split */
@media (min-width: 1024px){
  .er-story__grid{
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 34px;
  }
}

/* Sticky media column */
.er-story__media{
  position: relative;
}

@media (min-width: 1024px){
  .er-story__media{
    position: sticky;
    top: 110px; /* pas aan afhankelijk van je header */
    height: fit-content;
  }
}

/* Media frame */
.er-story__frame{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  min-height: 320px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
}

@media (min-width: 1024px){
  .er-story__frame{ min-height: 460px; }
}

/* Images stack */
.er-story__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .5s ease;
  pointer-events: none;
}

.er-story__img.is-active{
  opacity: 1;
  transform: scale(1);
}

/* Steps */
.er-story__steps{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.er-story__step{
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.er-story__step h3{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.er-story__step p{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}

/* Active step highlight */
.er-story__step.is-active{
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.er-story { outline: 18px solid red !important; }
