/* Bike photo gallery — fade slider */
.bike-gallery {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.bike-gallery__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1520 0%, #2e1f4a 100%);
  box-shadow:
    0 24px 60px rgba(15, 10, 25, 0.35),
    0 0 0 1px rgba(196, 181, 253, 0.18);
}

.bike-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.85s ease;
  will-change: opacity;
}

.bike-gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.bike-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 10, 25, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bike-gallery__nav:hover {
  background: rgba(91, 33, 182, 0.75);
  border-color: rgba(196, 181, 253, 0.8);
}

.bike-gallery__nav:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

.bike-gallery__nav--prev {
  left: 12px;
}

.bike-gallery__nav--next {
  right: 12px;
}

.bike-gallery__nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bike-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.bike-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(124, 58, 237, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bike-gallery__dot.is-active {
  background: #7c3aed;
  transform: scale(1.15);
}

.bike-gallery--on-dark .bike-gallery__dot {
  background: rgba(255, 255, 255, 0.28);
}

.bike-gallery--on-dark .bike-gallery__dot.is-active {
  background: #e9d5ff;
}

@media (max-width: 900px) {
  .bike-gallery {
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bike-gallery__slide {
    transition: none;
  }
}
