.detail-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 0rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.detail-img {
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 10px;
  box-shadow: 0 4px 15px --var(neon);
  margin: 1.5rem 0;
}
.back-link {
  margin-bottom: 2rem;
  font-weight: bold;
}
.detail-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Carousel container */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 20rem;
  height: 20rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--beige);
  background-color: var(--dark);
  margin: 1rem 2rem 1rem 0;
  display: flex;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Target all slides */
.slide {
  display: none; /* Hide all slides by default */
  width: 100%;
  height: 100%;
}

/* Only show the active slide */
.slide.active {
  display: block;
}

/* Make images fill the container nicely without distorting */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* Universal styling for navigation buttons */
.arrow-btn {
  position: absolute;
  top: 50%;
  background-color: var(--neon);
  background: transparent;
  transform: translateY(-50%);
  border: none;
  color: var(--dark);
  font-size: 18px;
  font-weight: bold;
  padding: 1rem;
  cursor: pointer;
  border-radius: 70%;
  transition: beige 0.2s, transform 0.2s;
  user-select: none;
  background-color: var(--neon);
}

.arrow-btn:hover {
  background-color: var(--rose);
}

/* Position arrows on left and right edges */
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }
