body.popup-open {
  position: fixed;
  width: 100%;
}

html.popup-open,
body.popup-open {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

.popup_videoTimeLine_tooltip {
	position: absolute;
	top: 40px;
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 10px;
	opacity: 0;
	padding: 5px;
}

.popup_videoTimeLine_thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  pointer-events: all;
}

.popup_videoTimeLine:hover .popup_videoTimeLine_thumb {
	height: 10px;
	width: 10px;
}

.casy_vids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.casy_vids_item {
  aspect-ratio: 9 / 14;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  max-height: 100vh;
}

.popup_overlay {
  display: none;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .casy_vids_item {
    max-height: 800px;
  }
  .popup_content {
    max-width: 95%;
    height: 800px;
  }
  .volume_slider_wrapper {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .casy_vids_item {
    max-height: 600px;
  }
  .popup_content {
    max-width: 95%;
    height: 600px;
  }
	
	.popup_nav {
		display: none;
	}
	
  .casy_vids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 5px;
  }
	
  .casy_vids_item {
    border-radius: 8px;
  }
}

.popup_nav {
	z-index: 1;
	position: fixed;
	right: 20px;
	padding: 0 !important;
	height: 40px !important;
	width: 40px !important;
	border-radius: 8px !important;
}

.popup_nav i {
	font-size: 24px;
}

.popup_nav--down {
	margin-top: 50px;
}

.popup_nav--up {
	margin-bottom: 50px;
}

.casy_vids_item_video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casy_vids_item_desc {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: linear-gradient(to top, black, rgba(0, 0, 0, 0));
  color: white;
}

.popup_overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);
  user-select: none;
}

.popup_background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 105vh;
  object-fit: cover;
  filter: blur(20px) brightness(0.4);
  z-index: 1;
  pointer-events: none;
}

.popup_content {
  position: relative;
  max-width: 90%;
  width: 460px;
  height: 800px;
  max-height: 85vh;
  aspect-ratio: 9 / 14;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.popup_content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  display: block;
}

.popup_close,
.popup_pause,
.popup_pause_toggle,
.popup_sound_toggle {
  position: absolute;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: white !important;
  font-size: 24px !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2) !important;
  z-index: 3 !important;
}

.popup_close {
  top: 60px;
  right: 10px;
}

.popup_pause {
  top: 60px;
  left: 10px;
}

.popup_pause svg {
  height: 18px;
  width: 18px;
}

.popup_pause_toggle {
  top: 20px;
  left: 10px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.15);
}

.popup_sound_toggle {
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
}

.volume_slider_wrapper {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: flex;
  align-items: flex-end;
  height: 80px;
  width: 100%;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.popup_sound_toggle:hover .volume_slider_wrapper {
  opacity: 1;
  pointer-events: auto;
}

.volume_slider {
  position: relative;
  margin: auto;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.volume_fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 2px;
}

.volume_thumb {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  display: none;
}

.volume_slider:hover .volume_thumb {
  display: block;
}
.popup_videoTimeLine {
  position: absolute;
  top: 30px;
  z-index: 1;
  width: 90%;
  left: 50%;
  transform: translatex(-50%);
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  touch-action: none;
}

.popup_videoTimeLine_complited {
  position: absolute;
  height: 100%;
  background: white;
  width: 0%;
  border-radius: 3px;
  transition: width 0.2s linear;
}