.carousel {
  background: #ffffff;
  margin-bottom: 64px;
  display: block;
  min-height: 300px;
  position: relative;
  z-index: 1;
}

.carousel-cell {
  margin-right: 20px;
  height: 300px;
  /* center images in cells with flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Allow video to be visible */
.carousel-cell:has(.carousel-video-wrapper) {
  overflow: visible;
}

/* Title caption overlay at the bottom of each slide */
.carousel-cell-caption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: -moz-max-content;
  width: max-content;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 5px 14px;
  border-radius: 20px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.carousel-cell img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  opacity: 1;
  transition: opacity 0.4s;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Lazy load: fade in when loaded */
.carousel-cell img.flickity-lazyloaded {
  opacity: 1 !important;
}

.carousel-cell img.flickity-lazyloading {
  opacity: 0.3 !important;
}

.flickity-page-dots {
  position: relative !important;
  bottom: auto !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  row-gap: 6px !important;
}

ul.flickity-page-dots,
ol.flickity-page-dots {
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

/* Ensure all carousel images have consistent styling */
.carousel img,
.carousel .carousel-cell img,
.carousel .carousel-cell-image {
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.carousel ~ .flickity-page-dots .dot,
.flickity-page-dots .dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 5px !important;
  margin: 0 5px !important;
}

.carousel ~ .flickity-page-dots .dot.is-selected,
.flickity-page-dots .dot.is-selected {
  width: 20px !important;
  height: 10px !important;
  border-radius: 5px !important;
}

/* .is-fullscreen added to carousel when fullscreen
   size cells to full height when fullscreen */
.carousel.is-fullscreen .carousel-cell {
  height: 100%;
}

.carousel.is-fullscreen {
  z-index: 10000 !important;
  position: fixed !important;
}
.carousel.is-fullscreen .flickity-page-dots {
  position: absolute !important;
  bottom: 12px !important;
  margin-top: 0 !important;
}

/* Ensure images in fullscreen are properly sized */
.carousel.is-fullscreen .carousel-cell img {
  height: 100% !important;
  width: 100% !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  cursor: zoom-in;
}

/* Video wrapper in carousel */
.carousel-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  overflow: visible;
}

.carousel-video-wrapper .video-poster {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  display: block !important;
  position: relative;
  z-index: 1;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
}

/* Play button overlay */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
  z-index: 10;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.video-play-button svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Video iframe */
.carousel-video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 5;
}

/* Hide poster and button when video is playing */
.carousel-video-wrapper.playing .video-poster {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.carousel-video-wrapper.playing .video-play-button {
  display: none;
}

/* Fullscreen video styles */
.carousel.is-fullscreen .carousel-video-wrapper .video-poster {
  -o-object-fit: contain !important;
     object-fit: contain !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
}

/* Touch gesture support for fullscreen */
.carousel.is-fullscreen {
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  will-change: transform, opacity;
}

/* Smooth transitions for gesture animations */
.carousel.is-fullscreen.transitioning {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
  .carousel-cell {
    height: 400px;
  }
}/*# sourceMappingURL=myFlickity.css.map */