.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: 3rem;
  width: max-content;
  animation: carouselScroll 20s linear infinite;
  padding: 1rem 1rem 1.5rem;
}

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

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

  100% {
    transform: translateX(-50%);
  }
}

.carousel-slide {
  flex: 0 0 calc(50% - 1rem);
  max-width: 280px;
  max-height: 320px;
  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: fill;
  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 query removed to force 2 items always */

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    max-width: 200px;
    max-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #cd9e10;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    background: #fff;
  }
}

@media (max-width: 375px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    max-width: 150px;
    max-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #cd9e10;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    background: #fff;
  }
}

@media (max-width: 425px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    max-width: 180px;
    max-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #cd9e10;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    background: #fff;
  }
}

@media (max-width: 320px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    max-width: 140px;
    max-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #cd9e10;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    background: #fff;
  }
}

@media (max-width: 360px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    max-width: 160px;
    max-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #cd9e10;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    background: #fff;
  }
}