/* ===== Video Carousel (scoped) ===== */
.video-carousel-wrap {
  position: relative;
}

.video-carousel-wrap .video-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  outline: none;
  min-height: 650px;
}

.video-carousel-wrap .video-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 220ms ease;
  min-height: 650px;
  min-height: 700px;
  max-height: 600px;
  object-fit: cover;
}

.video-carousel-wrap .video-card:hover img {
  transform: scale(1.03);
}

.video-carousel-wrap .video-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

/* Overlay (bottom gradient + text) */
.video-carousel-wrap .video-card .overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.0));
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 55%;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.video-carousel-wrap .video-card .overlay h2,
.video-carousel-wrap .video-card .overlay h3,
.video-carousel-wrap .video-card .overlay h4,
.video-carousel-wrap .video-card .overlay h5,
.video-carousel-wrap .video-card .overlay h6 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Play button */
.video-carousel-wrap .video-card .play-btn {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.video-carousel-wrap .video-card:hover .play-btn {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.25);
}

.video-carousel-wrap .video-card .play-btn:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 2px;
  opacity: 0.95;
}

/* ===== Modal ===== */
.video-carousel-wrap .video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
}

.video-carousel-wrap .video-modal.is-open {
  display: flex;
}

.video-carousel-wrap .video-modal-inner {
  position: relative;
  width: min(980px, 96vw);
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

/* Close button */
.video-carousel-wrap .video-modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease;
}

.video-carousel-wrap .video-modal .close:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.65);
}

/* Responsive iframe ratio */
.video-carousel-wrap .video-modal-inner iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.video-carousel-wrap .video-modal {
  pointer-events: auto;
}

.video-carousel-wrap .video-modal-inner {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.video-carousel-wrap .video-modal-inner iframe {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.video-carousel-wrap .video-modal .close {
  position: absolute;
  z-index: 10; /* must be above iframe */
}

/* Common arrow style */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

/* Position arrows on left and right */
.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }

/* If aspect-ratio isn't supported */
@supports not (aspect-ratio: 16 / 9) {
  .video-carousel-wrap .video-modal-inner {
    padding-top: 56.25%;
  }
  .video-carousel-wrap .video-modal-inner iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
  }
}

/* Optional: prevent body scroll when modal open (add class via JS if you want) */
/*
body.vc-modal-open { overflow: hidden; }
*/