.carousel-section {
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.carousel-heading {
  text-align: center;
  color: #212050;
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 1.8rem;
  letter-spacing: 0.04em;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  cursor: pointer;
}

.carousel-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: carouselScroll 18s linear infinite;
  padding: 0.5rem 0.6rem 1rem;
}

.carousel-track.paused {
  animation-play-state: paused;
}

@keyframes carouselScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-slide {
  flex: 0 0 calc((100vw - 4.8rem) / 3);
  max-width: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #cd9e10;
  box-shadow: 0 4px 16px rgba(14, 70, 36, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.carousel-slide:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(14, 70, 36, 0.22);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Lightbox --- */
.carousel-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.carousel-lightbox.active {
  display: flex;
}

.carousel-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  border: 3px solid #cd9e10;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.6rem;
  background: #cd9e10;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  background: #0e4624;
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 80vw;
    max-width: 80vw;
  }

  .carousel-slide img {
    height: 180px;
  }
}