/* =========================================================
   ABOUT SECTION — VIDEO SLIDER
   Replaces the old big collage image in .about-three__image
   ========================================================= */

/* --- Reset the theme's old image-container sizing so it
   doesn't force a tall min-height / fixed height on the
   much shorter video slider (this fixes the big blank gap) --- */
.about-three.section-space .col-xl-6 .about-three__image,
.about-three.section-space .col-xl-6 .about-three__image__box {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
}

.about-three.section-space .row.gutter-y-50 {
  align-items: flex-start !important;
}

/* --- Slider wrapper --- */
.video-slider {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Phone-style frame --- */
.video-slider__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(212, 175, 55, 0.06),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.4s ease;
}

.video-slider__frame:hover {
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 8px rgba(212, 175, 55, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
}

/* --- Player host + iframe --- */
.video-slider__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-slider__player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh;   /* helps fill a 9:16 frame edge-to-edge */
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none; /* prevents YouTube's own click UI from intercepting taps */
}

/* --- Subtle top/bottom vignette for polish --- */
.video-slider__glow {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 20%,
    transparent 75%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* --- Sound toggle button --- */
.video-slider__mute {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.video-slider__mute:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.06);
}

/* Gentle pulse to invite a tap when still muted */
.video-slider__mute.is-muted {
  animation: video-slider-pulse 2s ease-in-out infinite;
}

@keyframes video-slider-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

/* --- Prev / Next arrows --- */
.video-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.video-slider__arrow:hover {
  background: rgba(212, 175, 55, 0.18);
}

.video-slider__arrow--prev { left: -18px; }
.video-slider__arrow--next { right: -18px; }

/* --- Dots --- */
.video-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.video-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.video-slider__dot.active {
  background: #d4af37;
  width: 24px;
  border-radius: 5px;
}

/* --- Mobile --- */
@media (max-width: 991px) {
  .video-slider { max-width: 300px; }
  .video-slider__arrow--prev { left: -10px; }
  .video-slider__arrow--next { right: -10px; }
}
