.hero-carousel-lightbox[hidden] {
  display: none;
}

.hero-carousel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(6, 3, 13, 0.9);
}

.hero-carousel-lightbox-inner {
  position: relative;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel-lightbox-inner img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: clamp(12px, 2vw, 20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-carousel-lightbox-close {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-carousel-lightbox-close:hover,
.hero-carousel-lightbox-close:focus {
  background: rgba(255, 60, 120, 0.8);
  transform: translateY(-2px);
}
:root {
  --hero-carousel-radius: 36px;
  --hero-carousel-gap: clamp(0.75rem, 2vw, 1.25rem);
  --hero-carousel-overlay: linear-gradient(180deg, rgba(6, 3, 13, 0.75) 0%, rgba(6, 3, 13, 0.25) 100%);
}

.hero-carousel-section {
  position: relative;
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2rem, 4vw, 3.5rem) calc(50vw - min(680px, 45vw));
  background: radial-gradient(circle at 15% 20%, rgba(255, 60, 120, 0.15), transparent 45%),
              radial-gradient(circle at 85% 10%, rgba(5, 242, 155, 0.15), transparent 40%),
              rgba(6, 3, 13, 0.95);
  color: #fff;
  overflow: visible;
}

.hero-carousel {
  position: relative;
  max-width: min(1400px, 92vw);
  margin: 0 auto;
}

.hero-carousel-track-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--hero-carousel-radius);
  background: rgba(12, 8, 18, 0.45);
  transition: height 0.3s ease;
}

.hero-carousel-track {
  display: flex;
  gap: var(--hero-carousel-gap);
  padding: 0 var(--hero-carousel-gap);
  box-sizing: border-box;
  align-items: stretch;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-carousel-item {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1rem);
  border-radius: var(--hero-carousel-radius);
  overflow: hidden;
  background: rgba(6, 3, 13, 0.4);
  cursor: pointer;
}

.hero-carousel-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 860px);
  object-fit: contain;
  background: transparent;
  display: block;
  transition: transform 0.35s ease;
}

.hero-carousel-item:hover img,
.hero-carousel-item:focus-within img {
  transform: scale(1.03);
}

.hero-carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-carousel-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-carousel-item.is-active::after {
  opacity: 0.6;
}

.hero-carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--hero-carousel-gap);
  pointer-events: none;
}

.hero-carousel-arrow {
  pointer-events: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: rgba(9, 6, 15, 0.6);
  color: #fff;
  font-size: 1.65rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-carousel-arrow:hover {
  transform: translateY(-2px);
  background: rgba(255, 60, 120, 0.85);
  box-shadow: 0 16px 30px rgba(255, 60, 120, 0.3);
}

.hero-carousel-progress {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}

.hero-carousel-progress .progress-dot {
  position: relative;
  width: clamp(38px, 9vw, 62px);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero-carousel-progress .progress-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #ff3c78 0%, #fed049 100%);
  transition: width 0.3s ease;
}

.hero-carousel-progress .progress-dot.is-active::after {
  width: 100%;
}

@media (min-width: 768px) {
  .hero-carousel-item {
    flex: 0 0 calc((100% - var(--hero-carousel-gap)) / 2);
  }
}

@media (min-width: 1200px) {
  .hero-carousel-item {
    flex: 0 0 calc((100% - var(--hero-carousel-gap) * 2) / 3);
  }
}

@media (max-width: 767px) {
  .hero-carousel-section {
    padding: clamp(2rem, 6vw, 3rem) 1.25rem;
  }

  .hero-carousel-controls {
    display: none;
  }

  .hero-carousel-progress {
    bottom: 0.85rem;
  }
}
