.carousel {
  position: relative;
  width: 80%;
  max-width: 1200px;
  height: 420px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 30px;
}

/* container som innehåller alla slides */
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(.4,.25,.3,1);
}

/* enskild slide */
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
  /* object-position: 90% 90%; */
}

/* titel överst */
.carousel-title {
  position: absolute;
  top: 12px;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  z-index: 10;
}

/* Pilar (samma som i galleriet) */
.nf-left, .nf-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 20;
  opacity: 0.9;
}
.nf-left:hover, .nf-right:hover {
  transform: translateY(-50%) scale(1.05);
}
.nf-left img, .nf-right img {
  width: 100%;
  height: auto;
}
.nf-left  { left: 15px;  }
.nf-right { right: 15px; }
.nf-right img {
  display: block;
  transform: scale(0.7) translateX(4px);
}
.nf-left img {
  display: block;
  transform: scale(0.7) translateX(-4px);
}

/* Indikatorer */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 16px;
}
.carousel-indicators .indicator {
  width: 24px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease;
  cursor: pointer;
}
.carousel-indicators .indicator.active {
  background: white;
}

/* Mobil */
@media (max-width: 600px) {
  .carousel { width: 100%; height: 280px; border-radius: 0; margin: 0; padding: 0;}
  .nf-left, .nf-right { display: none; }
}