/* ===========================================
   CAROUSEL/SLIDESHOW COMPONENT
   Static CSS - keyframes generated per-instance
   =========================================== */

.block-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.block-carousel .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.block-carousel .carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

/* Navigation dots */
.block-carousel .carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.block-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.block-carousel .carousel-dot.active,
.block-carousel .carousel-dot:hover {
  background: #fff;
}

/* Navigation arrows */
.block-carousel .carousel-prev,
.block-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: background 0.3s ease;
}

.block-carousel .carousel-prev:hover,
.block-carousel .carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.block-carousel .carousel-prev { left: 20px; }
.block-carousel .carousel-next { right: 20px; }

/* ===========================================
   EXHIBITION CAROUSEL
   Full-screen slideshow for exhibitions
   Sliding track (right-to-left) animation
   =========================================== */

.exhibition-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(to bottom, #f5f5f5 0%, #a0a0a0 100%);
}

.exhibition-carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.exhibition-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

/* Navigation arrows */
.exhibition-carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 10;
}

.exhibition-carousel-arrow {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibition-carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.exhibition-carousel-arrow svg {
  width: 24px;
  height: 24px;
}

/* Navigation dots - below carousel */
.exhibition-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: transparent;
}

.exhibition-carousel-dot {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.exhibition-carousel-dot:hover {
  background: rgba(0,0,0,0.5);
}

.exhibition-carousel-dot.active {
  background: rgba(0,0,0,0.7);
  transform: scale(1.2);
}

/* Light theme variant - for slides with light images */
.exhibition-carousel-slide--light .exhibition-card-hero-content {
  background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
  color: #1a1a1a;
}

.exhibition-carousel-slide--light .exhibition-card-location {
  background: rgba(0,0,0,0.1);
}

.exhibition-carousel-slide--light .exhibition-card-quote {
  border-top-color: rgba(0,0,0,0.15);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* Responsive */
@media (max-width: 768px) {
  .block-carousel .carousel-prev,
  .block-carousel .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .block-carousel .carousel-dots {
    bottom: 12px;
  }

  .block-carousel .carousel-dot {
    width: 8px;
    height: 8px;
  }

  /* Exhibition carousel mobile - fixed height, label below */
  .exhibition-carousel {
    height: auto;
    overflow: visible;
    background: #fff;  /* White background for mobile layout */
  }

  .exhibition-carousel-slides {
    height: auto;
  }

  .exhibition-carousel-slide {
    height: auto;
  }

  .exhibition-carousel-arrows {
    padding: 0 10px;
    top: 175px; /* Center in 350px image area */
  }

  .exhibition-carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .exhibition-carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .exhibition-carousel-dots {
    bottom: 15px;
  }

  .exhibition-carousel-dot {
    width: 8px;
    height: 8px;
  }
}
