.vehicle-slider {
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.vehicle-slider__container {
  max-width: 900px;
  margin: 0 auto;
}

.vehicle-slider__main-image {
  width: 100%;
  height: 650px;
  display: block;
  object-fit: contain;
}

.vehicle-slider__main {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
}

.vehicle-slider__carousel {
  display: flex;
  align-items: center;
  margin-top: 20px;
  position: relative;
}

.vehicle-slider__thumbnails {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 8px 0;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.vehicle-slider__thumbnails::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.vehicle-slider__thumbnail {
  flex-shrink: 0;
  width: calc((100% - 32px) / 3);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0.7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.vehicle-slider__thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.vehicle-slider__thumbnail.is-active {
  opacity: 1;
  outline: 3px solid #3B82F6;
  outline-offset: 2px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.vehicle-slider__scroll-button {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.vehicle-slider__scroll-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.vehicle-slider__scroll-button[disabled] {
  opacity: 0.4;
  cursor: default;
}

.vehicle-slider__scroll-button[disabled]:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

#vehicle-slider-left-button {
  left: -16px;
}

#vehicle-slider-right-button {
  right: -16px;
}

.vehicle-slider__icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 991px) {
  .vehicle-slider__container {
    max-width: 100%;
  }

  .vehicle-slider__thumbnail {
    width: calc((100% - 16px) / 2);
  }

  #vehicle-slider-left-button {
    left: -8px;
  }

  #vehicle-slider-right-button {
    right: -8px;
  }
}

@media (max-width: 575px) {
  .vehicle-slider {
    margin-top: 40px;
  }

  .vehicle-slider__thumbnails {
    gap: 12px;
  }

  .vehicle-slider__thumbnail {
    width: calc((100% - 24px) / 3);
  }

  .vehicle-slider__scroll-button {
    display: none;
  }
}
