/* ================================
   Renovation Scroll Section
================================ */

.renovation-scroll {
  padding: 140px 8%;
  background: #0d0d0d;
  color: white;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 120px;
}

.renovation-wrapper {
  display: grid;
  grid-template-columns: 42% 50% 8%;
  gap: 60px;
  align-items: start;
}

/* ================================
   Sticky Media
================================ */

.sticky-media {
  position: sticky;
  top: 120px;
  height: 60vh;
  max-height: 65vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .7);
  background: black;
}

.media-progress {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, .65);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  z-index: 20;
}

.steps-column {
  
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: none;
}


.media-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-layer {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.6s ease;
}

.media-layer.active {
  opacity: 1;
}

/* ================================
   Steps Column
================================ */

.steps-column {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.renovation-step {
  min-height: 65vh;
}

.step-num {
  font-size: 4rem;
  opacity: .15;
  font-weight: 700;
}

.mobile-progress {
  display: none;
}

.renovation-step h3 {
  font-size: 2rem;
  margin: 10px 0;
}

/* ================================
   Navigation Dots
================================ */

.step-nav {
  position: sticky;
  top: 220px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-nav button {
  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: rgba(255, 255, 255, .25);
  border: none;
  cursor: pointer;

  transition: all .25s ease;
}

.step-nav button.active {
  background: #ffb000;
  transform: scale(1.3);
}

/* ================================
   Mobile
================================ */

@media(max-width: 900px) {

  .steps-column.dragging,
.steps-column.dragging * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: grabbing;
}

.steps-column img {
  pointer-events: none;
}

  .mobile-media {
    width: auto;
    max-height: 40vh;
    object-fit: scale-down;
    border-radius: 14px;
  }


  .sticky-media {
    display: none;
  }

  .renovation-wrapper {
    grid-template-columns: 1fr;

  }

  .steps-column {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    max-height: 70vh;
    overflow-y: hidden;
  }


  .renovation-step {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;

    padding: 0 6vw 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .step-nav {
    display: none;
  }



  /* hide native scrollbar */
  .steps-column {
    scrollbar-width: none;
    /* Firefox */
  }

  .steps-column::-webkit-scrollbar {
    display: none;
  }

  /* progress bar container */
  .mobile-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .mobile-progress span {
    width: 18px;
    height: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.25);
    transition: background .25s ease, transform .25s ease;
  }

  .mobile-progress span.active {
    background: #ffb000;
    transform: scaleX(1.6);
  }
}