.Phase-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #cec8b3;
  height: 100vh;
  padding: 2rem;
}
.phase-card {
  color: #221b2d;
  padding: 4vw;
}
.Phase-title {
  font-size: 12vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-style: italic;
  text-align: center;
}
.adviceFromOthers {
  font-size: 4vw;
  letter-spacing: 0.05rem;
  text-align: center;
}

.directionFromOthers {
  font-size: 4vw;
  margin-top: 1rem;
  letter-spacing: 0.05rem;
  text-align: center;
  transform: rotate(90deg);
}

.volume-name-container {
  z-index: 4;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
}

.volume-name {
  text-decoration: none;
  color: #cec8b3;
  background: #55191c;
  margin-top: 2rem;
  padding: 1rem;
  padding-left: 1.15rem;
}

@media (min-width: 1025px) {
  .Phase-title-wrap {
    height: 140vh;
    width: 100%;
  }
  .phase-card {
    width: 30%;
  }

  .Phase-title {
    font-size: 3vw;
  }
  .Phase-title span {
    font-size: 1vw;
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .Phase-title-wrap {
    height: 100%;
  }
  .Phase-title {
    font-size: 12vw;
  }
}
section.carousel-phase {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
}

.phase2-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .volume-name-container {
    font-size: 1.75rem;
  }
  .section.carousel-phase {
    height: 130vh;
  }
}
@media (max-width: 640px) {
  .phase-card {
    width: 100%;
  }
  .volume-name-container {
    font-size: 1.25rem;
  }
}

@media (max-height: 740px) and (max-width: 500px) {
  .phase-card {
    height: 40%;
  }
}

/* INITIAL POSITION: height will be overwritten by auto sizing */
.carousel-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 80%; /* will be updated to overlay window width */
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  height: 40vh; /* fallback initial height */
  padding-top: 20vw;
  margin-top: 4vw;
  cursor: grab;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.list {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.27, 1);
  will-change: transform;
}

.item {
  min-width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: relative;
}

.item a {
  display: block;
  width: 100%;
  height: 100%;
}

.item img {
  width: 100%;
  height: 120%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.info-wrap {
  position: absolute;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 1200px;
  pointer-events: auto;
}
@media (min-width: 640px) {
  .info-wrap {
    width: 60%;
  }
  .info .detail {
    font-size: 1.2rem;
  }
  .carousel-container {
    padding-top: 8vw;
  }
}

@media (min-width: 1023px) and (max-height: 1024px) {
  .carousel-container {
    padding-top: 8vw;
  }
  .info-wrap {
    width: 18%;
    height: 90%;
    left: 12%;
    top: 0%;
    justify-content: space-between;
  }
  .info.info-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    height: 100%;
  }
  .volume-name-container {
    font-size: 2.25rem;
    padding: 0.75rem 1.25rem;
  }
  section.carousel-phase {
    height: 100vh;
  }
  .info-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
@media (min-width: 1366px) {
  .info-wrap {
    width: 18%;
    height: 60%;
    left: 15%;
  }
  section .carousel-phase {
    height: 85vh;
  }
  .carousel-container {
    margin-top: -1vw;
  }
}
.info {
  background: #55191c;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info .name {
  font-weight: 800;
  font-size: 2rem;
}

.info .details {
  font-size: 1rem;
  opacity: 0.8;
  letter-spacing: 0.1rem;
}

.view-details {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 1px;
  background: #ffffff;
  color: #221b2d;
  width: 100%;
}

/* Info-top split: left (text) + right (wheel) */
.info-top {
  display: flex;
  gap: 1rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.info-left {
  flex: 1;
  color: #cec8b3;
}

/* wheel container: white circular background, fixed dots around it, inner ring rotates */
.wheel {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #cec8b3;
  position: relative;
  display: inline-block;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.wheel-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
  transform-origin: 50% 50%;
  transition: transform 320ms cubic-bezier(0.22, 0.9, 0.27, 1);
  pointer-events: none;
}

.wheel-dot {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #55191c;
  transform: translate(-50%, -50%);
  transition:
    background 150ms ease,
    transform 150ms ease;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}
.wheel-dot.active {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.15);
}

/* center indicator (optional) */
.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border-radius: 50%;
  background: #55191c;
  z-index: 9;
}

.wheel:active {
  cursor: grabbing;
}
