.stack-overlay {
  width: 100%;
}

/* MEDIA CONTAINER */
.stack-overlay__media {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: url('your-image.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.stack-overlay__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* DARK OVERLAY */
.stack-overlay__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.2)
  );
  z-index: 1;
}

/* HEADLINE */
.stack-overlay__headline {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  font-weight: 600;
}

/* STEP CONTAINER */
.stack-overlay__steps {
  position: relative;
  z-index: 2;
  min-height: 120px;
  display: flex;
  align-items: center;
  width: 100%;
  transition: transform 0.4s ease;
}

/* EACH STEP */
.stack-overlay__step {
  position: absolute;
  inset: 0;
  flex: center;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: rgba(255, 255, 255, 0.95);
}

/* ACTIVE STEP */
.stack-overlay__step.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* FINAL EMPHASIS */
.stack-overlay__step--strong {
  font-size: 1.4rem;
  font-weight: 600;
}

/* NAVIGATION */
.stack-overlay__nav {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.stack-overlay__nav button {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px)
  border: none;
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

@media (min-width: 768px) {

  .stack-overlay__media {
    height: 360px;
    padding: 24px;
  }

  .stack-overlay__headline {
    font-size: 2.0rem;
  }

  .stack-overlay__step {
    font-size: 1.4rem;
    max-width: 100%;
  }
  .stack-overlay__steps {
    min-height: 140px;
  }

  .stack-overlay__step--strong {
    font-size: 1.7rem;
  }
}

}