/* ========== Carousel Styles ========== */
.custom-carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 20px auto;
}

.custom-carousel-wrapper {
  display: flex;
  will-change: transform;
}

.custom-carousel-slide {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

/* The small carousel image */
.carousel_item_image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

/* Title below the image */
.carousel_item_title {
  text-align: center;
  margin-bottom: 10px;
}

.carousel_item_title h3 {
  font-size: 18px;
  margin: 0;
}

/* Description styling */
.carousel_item_description {
  text-align: center;
  font-size: 14px;
}

/* Navigation buttons */
.custom-carousel-prev,
.custom-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  opacity: 0.8;
  z-index: 9999;
}

.custom-carousel-prev:hover,
.custom-carousel-next:hover {
  opacity: 1;
}

.custom-carousel-prev {
  left: 10px;
}

.custom-carousel-next {
  right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-carousel-slide {
    flex: 0 0 100%;
  }
}

/* ========== Modal Popup Styles ========== */
.carousel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.carousel-modal {
  background: #fff;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.carousel-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #333;
}

.carousel-modal-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.carousel-modal-title {
  font-size: 24px;
  margin: 0 0 10px;
}

.carousel-modal-description {
  font-size: 16px;
  color: #333;
}
