/* Additional Styles for UX Slider Advanced */

/* Style: Shadow Hover */
.slider-style-shadow-hover .flickity-slider > * {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.slider-style-shadow-hover .flickity-slider > *:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}
.slider-style-shadow-hover .col-inner {
  transition: inherit;
  box-shadow: inherit;
  transform: inherit;
} /* Inherit if present, or let the parent cell handle it */

/* Style: Overlay */
.slider-style-overlay .col-inner,
.slider-style-overlay .flickity-slider > * {
  position: relative;
  overflow: hidden;
}
.slider-style-overlay .ux-image::after,
.slider-style-overlay .img-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  display: block;
  pointer-events: none;
}
.slider-style-overlay:hover .ux-image::after,
.slider-style-overlay:hover .img-inner::after {
  background: rgba(0, 0, 0, 0.1);
}

/* Style: Zoom In */
.slider-style-zoom-in .flickity-slider > * {
  overflow: hidden;
}
.slider-style-zoom-in img {
  transition: transform 0.6s ease;
}
.slider-style-zoom-in .flickity-slider > *:hover img {
  transform: scale(1.1);
}

/* Style: Grayscale */
.slider-style-grayscale img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.slider-style-grayscale:hover img,
.slider-style-grayscale .flickity-slider > *:hover img {
  filter: grayscale(0%);
}

/* Style: Bottom Progress */
.slider-style-bottom-progress {
  padding-bottom: 60px; /* Space for progress bar */
}
.slider-style-bottom-progress .flickity-prev-next-button.previous {
  display: none; /* Hide previous button if desired, or position it elsewhere */
}
.slider-style-bottom-progress .flickity-prev-next-button.next {
  right: 20px;
  bottom: 0;
  top: auto;
  transform: none;
  background: #fff;
  width: 40px;
  height: 40px;
}
.slider-style-bottom-progress .flickity-prev-next-button.previous {
  left: auto;
  right: 70px; /* Position next to 'next' button */
  bottom: 0;
  top: auto;
  transform: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  display: block; /* Show if needed */
}
/* Adjust standard buttons if they are usually hidden or styled differently */
.slider-style-bottom-progress .flickity-page-dots {
  display: none;
}

/* Progress Bar Container */
.ux-slider-progress-bar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 140px; /* Space for buttons */
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}
.ux-slider-progress-fill {
  height: 100%;
  background: #44c67f; /* Green color from image */
  width: 0;
  transition: width 0.1s linear;
}

/* Slide Number */
.ux-slider-slide-number {
  position: absolute;
  bottom: 30px;
  left: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

/* Style: Raised Focus (Scale Effect) */
.slider-style-raised-focus .flickity-slider > * {
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(0.6);
  opacity: 0.9;
  z-index: 1;
}

/* Tiered Scales */
.slider-style-raised-focus .flickity-slider > *.is-prev-2,
.slider-style-raised-focus .flickity-slider > *.is-next-2 {
  transform: scale(0.6);
  z-index: 2;
}

.slider-style-raised-focus .flickity-slider > *.is-prev-1,
.slider-style-raised-focus .flickity-slider > *.is-next-1 {
  transform: scale(0.8);
  z-index: 5;
}

.slider-style-raised-focus .flickity-slider > *.is-center-slide {
  transform: scale(1) translateY(-10px);
  opacity: 1;
  z-index: 10;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

.slider-style-raised-focus .flickity-viewport {
  overflow: visible;
  padding-top: 20px;
  margin-top: -20px;
}

/* Ticker Smoothing */
.ux-slider-advanced.has-ticker .flickity-slider {
  transition: none !important; /* Ensure no CSS transition conflicts with JS animation */
}
