/* ================= BASE ================= */
.dropzone_video_player {
  position:relatve;
  z-index: 10
}
.video-cms-engine {
  width: 100%;
  position: relative;
}

.video-search {
  max-width: 200px;
  background-color: #ffffff !important;
  margin: 20px 0 !important;
  display: block;
  float: right;
  clear:both;
  color: #333333;
  border-radius: 6px;
}

.video-search-wrap,
.selected_cats {
  position: relative;
  display: inline-block;
  width: auto;
  float: right;
}
.selected_cats {
  float:left;
}

.video-search {
  width: 100%;
  padding-right: 40px;
}

.video-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  border: 0;
  background: none;
  cursor: pointer;

  font-size: 20px;
  line-height: 1;

  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.video-search-clear.is-visible {
  opacity: 1;
  visibility: visible;
}

.video-track {
  clear:both;
}

.video-track.grid:empty {
  min-height: 200px;
}
@media all and (max-width: 480px) {
  .video-search-wrap,
  .selected_cats {
    display: block;
    float: none;
    clear: both;
    text-align:right;
  }
}
/* =========================
   CARD ENTER STATE
========================= */
.video-card.card-enter {
  opacity: 0.5;
  transform: translateY(-4px) scale(1);
  transition:
    opacity 0.135s ease,
    transform 0.2135s ease;
  will-change: opacity, transform;
}

/* =========================
   CARD VISIBLE
========================= */
.video-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================= GRID ================= */
.video-track.grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

/* 🔥 CRITICAL FIX */
.video-track.grid .video-card {
  width: 100%;
  min-width: 0;
}

/* ensure media doesn't force collapse */
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-thumb img {
  width: 100%;
  object-fit: cover;
}

/* safety reset for HubSpot preview weirdness */
.video-card {
  box-sizing: border-box;
}

.video-pagination {
  width: calc(100% - 40px);
  display: block;
  padding: 20px;
}

.video-pagination .prev,
.video-pagination .next {
  float: left;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  margin-right: 20px;
}

.video-pagination .prev:hover,
.video-pagination .next:hover {
  opacity: 0.6;
}

.video-pagination .pages {
  float: right;
  font-size: 16px;
  font-weight: 400;
}

/* ================= CARD ================= */
.video-card {
  cursor: pointer;
  display: block;
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
  display:flex;
  border-radius: 12px;
}

.video-thumb iframe,
.video-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}

.video-track.single {
  display: block !important;
}

.video-track.single .video-card {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
}

.video-embed {
  width: 100%;
  height: 100%;
}

/* ================= PLAY BUTTON ================= */
.play-button {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10,10,10,0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-button::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 24px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-radius: 5px;
}
/* ================= CAROUSEL BASE ================= */
.carousel-wrapper {
  position: relative;
  padding: 0 40px;
  box-sizing: border-box;
  overflow: hidden;
/*   -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  ); */
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0px;
  background: linear-gradient(to right, #fff, transparent);
}

.carousel-wrapper::after {
  right: 0px;
  background: linear-gradient(to left, #fff, transparent);
}

.carousel-wrapper .video-track,
.video-track.carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  position: relative;
/*  overflow-x: hidden;
 /* scroll-snap-type: x mandatory;
  scrollbar-width: none; 
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; */
  padding: 10px 0 10px;
  will-change: transform;
}


.carousel-wrapper .video-track::-webkit-scrollbar,
.video-track.carousel::-webkit-scrollbar {
  display: none;
}

/* each card snaps cleanly */
.video-track.carousel .video-card {
/*  scroll-snap-align: start;
  min-width: min-content;
  width: auto !important; */
  flex: 0 0 calc((100% - 40px) / 3); 
}

@media (max-width: 768px) {
  .video-track.carousel .video-card {
    flex: 0 0 100%;
  }
}

.video-track.carousel {
  display: flex;
  transition: transform 0.5s ease, opacity 0.25s ease;
  will-change: transform;
  overflow-x: visible;
}

.video-card {
  flex: 0 0 calc(100% / 3); /* adjust if needed */
}

/* navigation buttons MUST NOT float under */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50000;
  font-size: 40px;
  line-height: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0);
  color: #515151;
  cursor: pointer;
    isolation: isolate;
}

.carousel-prev:hover,
.carousel-next:hover {
  opacity: 0.6;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.video-track.carousel {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
  will-change: transform;
}
.carousel-prev,
.carousel-next {
  pointer-events: auto;
}

.carousel-wrapper {
  isolation: isolate;
}

.video-track.carousel .video-card {
  flex: 0 0 100%;
  flex: 0 0 calc(100% / var(--visible, 3));
}

.video-card {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* LEFT */
.carousel-prev::after {
  content: "\f053";
  font-family: fontawesome, "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 25px;
  left: 0;
  display: block;
  position: absolute;
}

/* RIGHT */
.carousel-next::after {
  content: "\f054";
  font-family: fontawesome, "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 25px;
  right : 0;
  display: block;
  position: absolute;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  max-height: 60px; /* forces 2 rows max visually */
  overflow: hidden;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  padding: 0 20px;
}

[data-navigation="arrows"] .carousel-dots {
  display: none !important;
}

[data-navigation="none"] .carousel-dots,
[data-navigation="none"] .carousel-prev,
[data-navigation="none"] .carousel-next, {
  display: none !important;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0.5px solid #dddddd;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
}

.carousel-dot.active {
  background: rgba(150,150,150,0.8);
}
/* ================= MODAL ================= */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000001;
}

.video-modal.is-active {
  display: flex;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: black;
}

.video-modal-content .content {
    margin-top: -20px;
    padding-top: 30px !important;
    border-radius: 12px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
}

.video-modal-content .content h4.title {
    padding: 5px 0 !important;
    margin: 5px 0 !important;
}

.video-modal-inner {
  width: 90vw;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  position: relative;
  background: transparent;
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);

  border-radius: 12px;
}

.video-modal-content .video-embed {

  border-radius: 12px;
}

.video-modal-content,
.video-modal-content iframe,
.video-modal-content video {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* CLOSE */
.video-modal-close {
  position: absolute;
  top: -45px;
  right: -35px;
  z-index: 20000;
  color: white !important;
  bordeer-radius: 0 !important;
  padding: 3px 6px !important;
  border: none !important;
  font-size: 28px !important;
  background-color: transparent !important;
}
