/* Nexora Timeline Video Force Fix V2 */

html[data-nx-video-fix="v2"] body.nx-timeline-video-v2 {
  --nx-video-v2-height: calc(100dvh - 170px);
}

body.nx-timeline-video-v2 [data-nx-video-stage-v2="true"] {
  position: relative !important;
  width: 100% !important;
  height: var(--nx-video-v2-height) !important;
  min-height: 520px !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #000 !important;
  isolation: isolate !important;
}

body.nx-timeline-video-v2 video[data-nx-video-media-v2="true"] {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;
  object-position: center center !important;

  transform: none !important;
  scale: 1 !important;
  translate: none !important;
  border-radius: inherit !important;
  background: #000 !important;
  z-index: 1 !important;
}

body.nx-timeline-video-v2 [data-nx-video-stage-v2="true"] > :not(video) {
  position: relative;
  z-index: 3;
}

body.nx-timeline-video-v2 [data-nx-video-card-v2="true"] {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  scroll-margin-top: 90px;
  scroll-snap-align: start;
}

body.nx-timeline-video-v2 [data-nx-video-scroll-v2="true"] {
  scroll-snap-type: y proximity;
  overscroll-behavior-y: contain;
}

.nx-video-v2-fullscreen {
  position: absolute !important;
  z-index: 99 !important;
  top: 14px !important;
  right: 14px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, .62) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(10px);
  cursor: pointer !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.nx-video-v2-fullscreen:hover {
  background: rgba(0, 0, 0, .86) !important;
}

[data-nx-video-stage-v2="true"]:fullscreen,
[data-nx-video-stage-v2="true"]:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  background: #000 !important;
}

[data-nx-video-stage-v2="true"]:fullscreen video,
[data-nx-video-stage-v2="true"]:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  html[data-nx-video-fix="v2"] body.nx-timeline-video-v2 {
    --nx-video-v2-height: calc(100dvh - 126px);
  }

  body.nx-timeline-video-v2 [data-nx-video-stage-v2="true"] {
    min-height: 460px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 600px) {
  html[data-nx-video-fix="v2"] body.nx-timeline-video-v2 {
    --nx-video-v2-height: calc(100dvh - 86px);
  }

  body.nx-timeline-video-v2 [data-nx-video-stage-v2="true"] {
    width: 100vw !important;
    min-height: 520px !important;
    margin-left: calc(50% - 50vw) !important;
    border-radius: 0 !important;
  }

  .nx-video-v2-fullscreen {
    top: 10px !important;
    right: 10px !important;
  }
}
