/* TB Car – Light gallery styling for single-auto-uno */
.tbcar-lightgallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tbcar-lightgallery .splide__track {
  border-radius: 1rem;
  overflow: hidden;
  background-color: #f8fafc;
}

.tbcar-lightgallery .tbcar-main__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tbcar-lightgallery .tbcar-gallery__link {
  display: block;
  height: 100%;
}

.tbcar-lightgallery .splide__slide {
  position: relative;
}

.tbcar-lightgallery .tbcar-main__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 10px, #f8fafc 10px, #f8fafc 20px);
}

.tbcar-lightgallery .tbcar-splide-main .splide__arrow {
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.tbcar-lightgallery .tbcar-splide-main .splide__arrow:hover {
  background: rgba(15, 23, 42, 0.8);
}

.tbcar-lightgallery .tbcar-splide-main .splide__pagination {
  bottom: 0.75rem;
}

.tbcar-lightgallery .tbcar-splide-main .splide__pagination__page.is-active {
  background: #0f172a;
  transform: scale(1.1);
}

.tbcar-lightgallery .tbcar-splide-thumbs .splide__slide {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tbcar-lightgallery .tbcar-splide-thumbs .splide__slide.is-active,
.tbcar-lightgallery .tbcar-splide-thumbs .splide__slide:focus-visible {
  border-color: #ee3334;
  /* box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25); */ /* shadow box on car thumbs*/
}

.tbcar-lightgallery .tbcar-splide-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tbcar-lightgallery .tbcar-splide-thumbs .splide__arrow {
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

/* Custom add to change arrows slide colors */
.tbcar-lightgallery .tbcar-splide-thumbs .splide__arrow svg {
 fill:#ee3334;
}

.tbcar-lightgallery .splide__arrow svg {
  /* fill:#ee3334; */
}

.tbcar-lightgallery .tbcar-splide-thumbs .splide__arrow:hover {
  background: #fff;
}

.tbcar-pswp-thumbs {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 30;
  pointer-events: none;
}

.tbcar-pswp-thumbs__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 9999px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.tbcar-pswp-thumbs__viewport {
  overflow: hidden;
  max-width: min(960px, calc(100vw - 8rem));
}

.tbcar-pswp-thumbs__track {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.1rem;
  will-change: transform;
}

.tbcar-pswp-thumb {
  width: 76px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.tbcar-pswp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tbcar-pswp-thumb:hover {
  transform: translateY(-2px);
}

.tbcar-pswp-thumb.is-active {
  border-color: #ee3334;
  box-shadow: 0 0 0 3px rgba(238, 51, 52, 0.3);
}

.tbcar-pswp-thumbs__arrow {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255);
  color: #ee3334;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.tbcar-pswp-thumbs__arrow span {
	font-size: 1.5rem;
	font-weight: 700;
  padding-bottom: 5px;
}

.tbcar-pswp-thumbs__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.tbcar-pswp-thumbs__arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .tbcar-pswp-thumb {
    width: 64px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .tbcar-lightgallery {
    gap: 0.5rem;
  }

  .tbcar-lightgallery .splide__arrow {
    width: 2.25rem;
    height: 2.25rem;
  }
}
