/* =====================================================
   LARRY THUMBNAIL SWITCHER
===================================================== */

.lts-wrapper {
  width: 100%;
  position: relative;
}

/* ---------------- HERO AREA ---------------- */

.lts-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  z-index: 1;
  overflow: visible;
}

/* overlay */
.lts-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* hero content */
.lts-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 44px;
  background: rgba(0,0,0,0.45);
  
  border-radius: 14px;
}

/* ---------------- TEXT ---------------- */

.lts-hero-title {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
}

.lts-hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.9;
}

/* ---------------- BUTTON ---------------- */

.lts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  background: #ffffff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lts-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* ---------------- THUMB BAR ---------------- */

.lts-thumbs {
  position: absolute;
  left: 50%;
  bottom: -42px;
  transform: translateX(-50%);
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 34px;

  background: #e6e6e6;
  border-radius: 14px;

  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
}

/* scrollbar hide */
.lts-thumbs::-webkit-scrollbar {
  display: none;
}
.lts-thumbs {
  scrollbar-width: none;
}

/* ---------------- THUMB ITEM ---------------- */

.lts-thumb {
  position: relative;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
  flex-shrink: 0;
}

.lts-thumb img {
  display: block;
	width: 140px !important;
  max-width: 150px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

/* overlay title */
.lts-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #fff;

  background: var(--lts-thumb-overlay, rgba(0,0,0,0.6));
  opacity: var(--lts-thumb-overlay-opacity, 0.4);

  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.lts-thumb:hover span,
.lts-thumb.active span {
  opacity: 1;
}

/* active scale */
.lts-thumb.active {
  transform: scale(var(--lts-thumb-active-scale, 1.08));
}

/* active border */
.lts-wrapper .lts-thumb::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: var(--lts-thumb-border-width, 2px) solid transparent;
  border-color: var(--lts-thumb-active-border-color, #000);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lts-thumb.active::after {
  opacity: 1;
  animation: lts-border-glow 1.6s linear infinite;
}

@keyframes lts-border-glow {
  0%   { border-color: var(--lts-thumb-active-border-color, #000); }
  50%  { border-color: transparent; }
  100% { border-color: var(--lts-thumb-active-border-color, #000); }
}

/* ---------------- ARROWS (TRUE INSIDE BAR) ---------------- */

.lts-arrow {
  display: none;
  position: absolute;
  top: calc(100% - 42px + 22px); /* bar top + padding */
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 6;
  opacity: 0.9;
}

.lts-has-arrows .lts-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

/* arrows inside bar padding */
.lts-arrow-prev {
  display:none;
}

.lts-arrow-next {
  display:none;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 768px) {

  .lts-hero {
    min-height: 320px;
  }

  .lts-content {
    padding: 26px;
    max-width: calc(100% - 30px);
  }

  .lts-hero-title {
    font-size: 28px;
  }

  .lts-thumbs {
    gap: 18px;
    padding: 16px 20px;
    bottom: -34px;
  }

  .lts-thumb img {
    max-width: 70px;
  }

  .lts-arrow {
    top: calc(100% - 34px + 16px);
  }

  .lts-arrow-prev {
    display: none;
  }

  .lts-arrow-next {
    display:none;
  }
}

