/* 🎠 Base Carousel Container */
/* 🎠 Flickity Carousel Base Container */
/* Ensure it fills content width without spilling */
.hfai-flickity-carousel {
  width: 100%;
  margin: 0 0;
  max-width: inherit; /* inherit from parent */
  padding: 0; /* remove default spacing */
}

/* 🎞️ Each Carousel Cell */
.hfai-flickity-carousel .carousel-cell {
  width: 150px;
  margin-right: 10px;
}

/* 🖼️ Thumbnail Image */
.hfai-flickity-carousel .carousel-cell img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

/* 🔍 Hover Zoom */
.hfai-flickity-carousel .carousel-cell img:hover {
  transform: scale(1.04);
}

/* 🧭 Optional: Alignment Row Wrapper */
.hfai-carousel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

/* 🧭 LIGHBOX: Styling Begins Here */
.hfai-lightbox-prev,
.hfai-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  padding: 0 15px;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
}

.hfai-lightbox-prev {
  left: 0;
}

.hfai-lightbox-next {
  right: 0;
}

.hfai-lightbox-prev:hover,
.hfai-lightbox-next:hover {
  color: #ccc;
}

.hfai-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10000;
}

/* 🔓 Shown when active */
.hfai-lightbox-overlay.active {
  display: flex;
}

/* 🖼 Lightbox image */
.hfai-lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

/* 📄 Caption */
.hfai-lightbox-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
}

/* ✖ Close button */
.hfai-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

/* 🔘 Circle Button - Size, Opacity, Padding */
.flickity-button {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.75) !important;  /* Increased opacity */
  box-shadow: none !important;
  padding: 4px !important;
}

/* ➤ Arrow Icon - Slightly Larger */
.flickity-button-icon {
  width: 22px !important;
  height: 22px !important;
}

/* 🎯 Arrow Path - Contrast Color */
.flickity-button .arrow {
  fill: #222 !important;
}