/* Force light mode only */
:root {
  color-scheme: only light !important;
}

/* Custom transition animations for carousel slides */

/* Prevent text selection and improve touch handling on mobile */
#carousel {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y pinch-zoom;
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.slide.entering {
  transform: translateX(20px);
}

.slide.leaving {
  transform: translateX(-20px);
}

/* Carousel navigation buttons - now positioned below, no overlap issues */
#prevButton,
#nextButton {
  /* Ensure buttons are always clickable on mobile */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  /* Minimum tap target size for mobile */
  min-width: 44px;
  min-height: 44px;
  /* Flex shrink to prevent squishing */
  flex-shrink: 0;
}

/* Smooth button hover effects - but not for carousel navigation */
button:not(#prevButton):not(#nextButton):not(.dot) {
  transition: all 0.2s ease;
}

/* Ensure images are loaded smoothly */
img {
  transition: opacity 0.2s ease;
}
