.owl-carousel {
  white-space: nowrap;
  overflow: hidden;
}
.owl-carousel .owl-stage {
  display: flex !important;
  margin-left: auto;
  margin-right: auto;
}
video,
.elementor video {
  border-radius: 16px;
  width: auto !important;
  max-width: none !important;
  height: 100%; /* Set video height to 100% */
  object-fit: cover; /* Make sure video covers the area without distorting */
  cursor: pointer;
  aspect-ratio: 9 / 16; /* Maintain 16:9 aspect ratio */
}

.carousel-item {
  margin: 0 10px; /* Adjust spacing between items */
  position: relative;
  transition: transform 0.3s ease; /* Smooth transition for scaling */
  display: flex; /* Add this to allow video to adjust */
  justify-content: center; /* Center video horizontally */
  align-items: center; /* Center video vertically */
  aspect-ratio: 9 / 16; /* Maintain 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* transition: opacity 0.3s ease-in-out; */
}

/* .video-playing .overlay {
        opacity: 0;
    } */
.overlay-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border-top: 1px solid #192440;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  height: 100%;
  gap: 10px;
  padding: 20px;
}

.overlay-inner img {
  margin-bottom: 5px;
  width: auto;
  max-width: 105px;
}

.overlay-inner p {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  white-space: normal;
}

.overlay-inner span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.overlay-inner span.small {
  font-size: 12px;
}

.carousel-item:hover .overlay {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.owl-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 1140px;
  display: flex;
  justify-content: space-between;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.owl-dots {
  display: none;
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .owl-nav {
    max-width: 830px;
  }
}
@media (max-width: 1024px) {
  .owl-nav {
    display: none;
  }
}

.owl-nav button {
  background-color: rgba(255, 255, 255, 1) !important;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 15px;
  cursor: pointer;
  font-size: 18px;
  pointer-events: fill;
  width: 50px;
  height: 50px;
}

.owl-nav button:hover,
.owl-nav button:focus {
  background-color: rgba(255, 255, 255, 0.6) !important;
}

.owl-nav button:focus-visible {
  border: none;
}
.owl-nav button span {
  display: none;
}
.owl-prev,
.owl-next {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 50px;
}
.owl-prev {
  background-image: url("../images/arrow-left.svg") !important;
  margin-left: 20px;
}
.owl-next {
  background-image: url("../images/arrow-right.svg") !important;
  margin-right: 20px;
}
.owl-prev.disabled,
.owl-next.disabled {
  opacity: 0;
}
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 6px solid rgba(0, 0, 0, 0.1);
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1000;
  display: none; /* Initially hidden */
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

video::-moz-media-controls-fullscreen-button {
  display: none !important;
}

video::-ms-media-controls-fullscreen-button {
  display: none !important;
}
@supports (-webkit-touch-callout: none) {
  .owl-carousel video {
    transform: translateZ(0);
    will-change: opacity, transform;
  }
}
.play-icon {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translate(-50%, -3%);
  background: url("../images/play-story-icon.svg") no-repeat;
  background-size: contain;
  width: 142px;
  height: 54px;
  cursor: pointer;
  z-index: 100;
  display: none;
}