/* Wrapper - must hide overflow */
.carousel-wrap.e-con {
  overflow: hidden !important;
}

/* Container - the scrollable area */
.carousel-container.e-con {
  overflow-x: scroll !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hidden by default on mobile */
  -ms-overflow-style: none;
  cursor: grab;
  gap: 20px !important;
}

.carousel-container.e-con::-webkit-scrollbar {
  display: none; /* Hidden by default on mobile */
}

/* Carousel items - fixed width, no shrink */
.carousel-container.e-con > .carousel-item.e-con-full {
  flex: 0 0 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  width: 280px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  scroll-snap-align: start;
}

/* Desktop - 4 items visible */
@media screen and (min-width: 1200px) {
  .carousel-container.e-con {
    /* SHOW SCROLLBAR ON DESKTOP */
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
    
    /* REMOVE GRAB CURSOR */
    cursor: default !important;
  }

  /* Webkit scrollbar styling for desktop */
  .carousel-container.e-con::-webkit-scrollbar {
    display: block !important;
    height: 10px; /* Needs height to be clickable */
  }

  .carousel-container.e-con::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
  }

  .carousel-container.e-con::-webkit-scrollbar-track {
    background-color: #f1f1f1;
  }

  /* Desktop Item Sizing */
  .carousel-container.e-con > .carousel-item.e-con-full {
    flex: 0 0 calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    width: calc(25% - 15px) !important;
  }
}

/* Tablet - 3 items visible */
@media screen and (min-width: 769px) and (max-width: 1199px) {
  .carousel-container.e-con > .carousel-item.e-con-full {
    flex: 0 0 calc(33.333% - 14px) !important;
    min-width: calc(33.333% - 14px) !important;
    max-width: calc(33.333% - 14px) !important;
    width: calc(33.333% - 14px) !important;
  }
}

/* Mobile landscape - 2 items visible */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .carousel-container.e-con > .carousel-item.e-con-full {
    flex: 0 0 calc(50% - 10px) !important;
    min-width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
  }
}

/* Mobile portrait - 1 item visible */
@media screen and (max-width: 480px) {
  .carousel-container.e-con > .carousel-item.e-con-full {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Navigation Buttons */
.carousel-prev,
.carousel-next {
  cursor: pointer;
  user-select: none;
}