/* file: wp-content/themes/YOUR_THEME/assets/css/style-video-carousel.css      */

:root {
  --nf-video-c1: #d2b8f9;
  --nf-video-c2: #adc2fe;
  --nf-video-c3: #e9fa8e;
  --nf-video-c4: #ff8f77;
  --nf-video-c5: #007b40;
  --nf-video-c6: #650909;
}
/* Marquee track */
.js-video-carousel {
  overflow: hidden;
	height: auto
}
/* The moving flex row */
.js-video-carousel .nf-video-marquee__inner {
  display: flex;
  align-items: flex-start; /* DON'T stretch heights */
  gap: .5rem; /* mobile gap */
}
/* Each slide/card must NOT shrink */
.js-video-carousel .nf-video-slide, .js-video-carousel .nf-video-card, .js-video-carousel > .nf-video-slide {
  flex: 0 0 auto; /* critical: prevents squeezing */
  width: auto;
}
.nf-video {
  padding: 0;
  margin-bottom: 3.5rem;
}
.nf-video-carousel {
  /* Slick will handle layout; this is mostly spacing + height stability */
}
/* Slides/cards should not shrink */
.js-video-carousel .nf-video-slide, .js-video-carousel .nf-video-card, .js-video-carousel > .nf-video-slide {
  flex: 0 0 auto;
  width: auto;
}
.nf-video-slide {
  /* variableWidth works best when slide has a defined width */
  width: 17.5rem; /* mobile card width */
  padding: 0; /* keep clean; gap handled on card */
}
.nf-video-card {
  display: block;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: 0.75rem;
  overflow: hidden;
}
.nf-video-media {
  position: relative;
  display: block;
  width: 100%;
  height: calc(11.225rem + 0.125rem);
  overflow: hidden;
}
.nf-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Caption overlay top-left */
.nf-video-caption {
  position: absolute;
  top: 12px;
  left: 0;
  display: inline-flex; /* ✅ shrink-wrap */
  width: fit-content; /* ✅ only as wide as content */
  max-width: calc(100% - 1rem); /* ✅ avoid overflow on tiny screens */
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0 .825rem .825rem 0;
  background: rgba(255, 255, 255, 0.70);
}
.nf-video-caption__text {
	color: #2E2E2E;
	text-align: center;
	font-feature-settings: 'liga' off;
	font-family: Montserrat;
	font-size: 0.375rem;
	font-style: normal;
	font-weight: 600;
	line-height: 0.43125rem;
	letter-spacing: 0.00375rem;
	text-transform: uppercase;
	white-space: nowrap; /* ✅ keep it tight */
  overflow: hidden;
  text-overflow: ellipsis; /* ✅ safety */
}
/* focus ring */
.nf-video-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* Gap between slides (mobile) */
.nf-video-carousel .slick-list {
  /* Slick doesn't do true gap; we fake it by margins on slides */
}
/* 6 repeating border colors (set these to your palette) */
.nf-video-card--c1 {
  color: var(--nf-video-c1);
}
.nf-video-card--c2 {
  color: var(--nf-video-c2);
}
.nf-video-card--c3 {
  color: var(--nf-video-c3);
}
.nf-video-card--c4 {
  color: var(--nf-video-c4);
}
.nf-video-card--c5 {
  color: var(--nf-video-c5);
}
.nf-video-card--c6 {
  color: var(--nf-video-c6);
}
/* Desktop */
@media (min-width: 768px) {
  .nf-video-card {
    border-width: 5px;
  }
	.js-video-carousel {
		height: calc(29.125rem + 0.625rem); /* border is 5px on desktop) */
	}
  .js-video-carousel .nf-video-marquee__inner {
    gap: 1.5rem;
  }
  .nf-video-media {
    height: 100%;
  }
  .nf-video-slide {
    width: auto;
  }
  .nf-video-caption {
    top: 34px;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-radius: 0 2rem 2rem 0;
  }
  .nf-video-caption__text {
    font-size: 1.125rem;
    line-height: 1.6875rem;
  }
}