/* ltx-video-carousels.css
   YouTube video carousel sections — homepage
   ------------------------------------------------------------------ */

.ltx-vc-section {
  padding: 0 0 clamp(120px, 8vw + 40px, 200px);
}

.ltx-vc-section--last {
  padding-bottom: clamp(100px, 10vw + 40px, 280px);
}

.ltx-vc__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header row: title left, nav buttons right */
.ltx-vc__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ltx-vc__heading {
  font-family: 'Miriam Libre', sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 1.28125rem + 1.5625vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.ltx-vc__heading-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ltx-vc__description {
  font-size: clamp(1rem, 0.875rem + 0.556vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Nav — reuse existing carousel button classes from ltx-category-carousel.css */
.ltx-vc__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Viewport: native scroll for trackpad + touch support */
.ltx-vc__viewport {
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.ltx-vc__viewport::-webkit-scrollbar {
  display: none;
}

/* Track */
.ltx-vc__track {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}

/* Cards: 4 per page on desktop */
.ltx-vc__card {
  flex: 0 0 calc((100vw - 3 * 28px) / 4);
  max-width: calc((1600px - 3 * 28px) / 4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-snap-align: start;
}

.ltx-vc__thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.ltx-vc__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ltx-vc__thumb-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}

.ltx-vc__thumb-btn:hover .ltx-vc__thumb {
  transform: scale(1.04);
}

.ltx-vc__thumb-btn:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* Play button overlay */
.ltx-vc__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 50px;
  height: 50px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.ltx-vc__thumb-btn:hover .ltx-vc__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.ltx-vc__play svg {
  width: 100%;
  height: 100%;
}

/* Title */
.ltx-vc__title {
  font-size: clamp(1.25rem, 1.15rem + 0.417vw, 1.4rem);
  font-weight: 300;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Large tablet / small desktop: 3 visible */
@media (min-width: 900px) and (max-width: 1199px) {
  .ltx-vc__nav {
    display: none;
  }

  .ltx-vc__card {
    flex: 0 0 calc((100vw - 2 * 28px) / 3);
    max-width: none;
  }
}

/* Tablet: 2 visible */
@media (min-width: 768px) and (max-width: 899px) {
  .ltx-vc__nav {
    display: none;
  }

  .ltx-vc__card {
    flex: 0 0 calc((100vw - 1 * 28px) / 2);
    max-width: none;
  }
}

/* Mobile: 1 visible */
@media (max-width: 767px) {
  .ltx-vc__inner {
    gap: 20px;
  }

  .ltx-vc__nav {
    display: none;
  }

  .ltx-vc__card {
    flex: 0 0 calc(100vw - 40px);
    max-width: none;
  }
}
