body {
  margin: 0;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  font-family: sans-serif;
}

.carousel-container {
  position: relative;
  width: 80vw;
  max-width: 900px;
  height: 60vh;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-item {
  position: absolute;
  width: 95%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 4 / 3;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.8);
  will-change: transform, opacity;
  overflow: hidden;
  display: block;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.carousel-item.active {
  transform: translateX(0) translateZ(200px) scale(1);
  opacity: 1;
  z-index: 3;
}

.carousel-item.left {
  transform: translateX(-600px) scale(0.85); filter: blur(2px);
  opacity: 0.6;
}

.carousel-item.right {
  transform: translateX(600px) scale(0.85); filter: blur(2px);
  opacity: 0.6;
}


button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  margin: 0 10px;
}

.controls {
  margin-top: 20px;
}

button:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* Main Control Buttons (⟨ ⟩ ⏸) */
button,
.control-button,
#playPause,
#prev,
#next {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #007bff;
  background-color: #1a1a1a;
  color: white;
  font-size: 26px;
  font-weight: bold;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.3), 0 0 8px rgba(0, 123, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover,
#playPause:hover,
#prev:hover,
#next:hover {
  background-color: #007bff;
  color: white;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
  transform: scale(1.05);
}

/* Progress Dots (already present, but here's enhanced styling) */
.progress-dots {
  background-color: transparent;
  padding: 10px 20px;
  border-radius: 25px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #aaa;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #fff;
  width: 30px;
  border-radius: 10px;
}
#carousel {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-item {
  transition: transform 1s ease, opacity 1s ease;
}

/* Apply zoom only to the active image */
.carousel-item.active:hover {
  transform: scale(1.1);
  z-index: 2;
}
.carousel-item.active {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); /* gold soft glow */
  border-radius: 12px;
  transform: scale(1.05);
  transition: transform 1s ease, box-shadow 1s ease;
}
.carousel-item.active:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}
