/* Feature image carousels + click-to-zoom lightbox (dark / dusk theme) */

.feature-carousel {
  position: relative;
  width: 100%;
}

.feature-carousel:focus {
  outline: none;
}

.feature-carousel:focus-visible {
  outline: 2px solid var(--teal-bright, #48d1cc);
  outline-offset: 4px;
  border-radius: 18px;
}

.feature-carousel__viewport {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-carousel__viewport::before,
.feature-carousel__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14%, 5.5rem);
  z-index: 2;
  pointer-events: none;
}

.feature-carousel__viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(8, 11, 24, 0.75) 0%,
    rgba(8, 11, 24, 0.25) 55%,
    transparent 100%
  );
}

.feature-carousel__viewport::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(8, 11, 24, 0.75) 0%,
    rgba(8, 11, 24, 0.25) 55%,
    transparent 100%
  );
}

.feature-carousel__track {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.feature-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  min-width: 100%;
  padding: 0.5rem 0.55rem;
  box-sizing: border-box;
}

.feature-carousel__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.feature-carousel__zoom:focus {
  outline: none;
}

.feature-carousel__zoom:focus-visible {
  outline: 2px solid var(--teal-bright, #48d1cc);
  outline-offset: 3px;
  border-radius: 18px;
}

.feature-carousel__zoom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 2%,
    #000 98%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 2%,
    #000 98%,
    transparent 100%
  );
}

.feature-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.72);
  color: #f0f4f8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.feature-carousel__nav:hover {
  background: rgba(26, 188, 156, 0.28);
  border-color: rgba(72, 209, 204, 0.55);
  color: #fff;
}

.feature-carousel__nav:focus {
  outline: none;
}

.feature-carousel__nav:focus-visible {
  outline: 2px solid var(--teal-bright, #48d1cc);
  outline-offset: 2px;
}

.feature-carousel__nav--prev {
  left: 0.65rem;
}

.feature-carousel__nav--next {
  right: 0.65rem;
}

.feature-carousel__nav[hidden] {
  display: none;
}

.feature-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.6rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 11, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.feature-carousel__dots[hidden] {
  display: none;
}

.feature-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.feature-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.feature-carousel__dot.is-active {
  transform: scale(1.2);
  background: var(--teal-bright, #48d1cc);
}

.feature-carousel__dot:focus {
  outline: none;
}

.feature-carousel__dot:focus-visible {
  outline: 2px solid var(--teal-bright, #48d1cc);
  outline-offset: 2px;
}

/* Lightbox */
.feature-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 8, 14, 0.92);
  backdrop-filter: blur(6px);
}

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

.feature-lightbox__dialog {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
}

.feature-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.feature-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.85);
  color: #f0f4f8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.feature-lightbox__close:hover {
  background: rgba(26, 188, 156, 0.35);
}

.feature-lightbox__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(240, 244, 248, 0.75);
}

.feature-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.72);
  color: #f0f4f8;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.feature-lightbox__nav:hover {
  background: rgba(26, 188, 156, 0.28);
  border-color: rgba(72, 209, 204, 0.55);
  color: #fff;
}

.feature-lightbox__nav:focus-visible {
  outline: 2px solid var(--teal-bright, #48d1cc);
  outline-offset: 3px;
}

.feature-lightbox__nav--prev {
  left: -1.25rem;
}

.feature-lightbox__nav--next {
  right: -1.25rem;
}

.feature-lightbox__nav[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .feature-carousel__nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.1rem;
  }

  .feature-carousel__dots {
    bottom: 0.65rem;
  }

  .feature-lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.25rem;
  }

  .feature-lightbox__nav--prev {
    left: -0.65rem;
  }

  .feature-lightbox__nav--next {
    right: -0.65rem;
  }
}
