.stories .f-html {
  --f-html-padding: 1rem;
  --f-html-bg: v.$bg-secondary;
}

.stories__inner {
  position: relative;
  padding-bottom: 5.6rem;
}

.stories__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.stories__title {
  max-width: 61rem;
}

.stories__nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.stories__nav-btn {
  cursor: pointer;
  border-radius: 100%;
  width: 4.4rem;
  height: 4.4rem;
  background-color: #F5F5F5;
  color: #080E15;
}

.stories__nav-btn svg {
  width: 2rem;
  height: 2rem;
}

.stories__nav-btn:hover {
  background-color: #0D253F;
  color: #ffffff;
}

.stories__slider {
  position: relative;
  overflow: hidden;
  width: calc(100% + 3.2rem);
  margin: 2.4rem 0 0 -1.6rem;
  padding: 0 1.6rem;
}

.stories__list {
  align-items: center;
  min-height: 51rem;
}

.stories__item {
  width: 32.8rem;
  height: 29.3rem;
  transition: width 0.3s ease, height 0.3s ease;
}

.stories__item.swiper-slide-active {
  width: 36.1rem;
  height: 51rem;
}

.stories__item.swiper-slide-active .stories__item-content {
  opacity: 1;
  visibility: visible;
}

.stories__item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
}

.stories__item-video,
.stories__item-embed {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.stories__item-video video,
.stories__item-video img,
.stories__item-embed video,
.stories__item-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stories__item-placeholder {
  width: 100%;
  height: 100%;
  background-color: #F5F5F5;
}

.stories__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 100%;
  z-index: 2;
  transition: transform 0.3s ease;
}

.stories__play-btn svg {
  width: 100%;
  height: 100%;
}

.stories__item-embed:hover .stories__play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.stories__item-content {
  position: absolute;
  bottom: 1.6rem;
  left: 1rem;
  right: 1rem;
  width: calc(100% - 2rem);
  padding: 1.6rem;
  color: #ffffff;
  background-color: rgba(13, 37, 63, 0.2);
  border-radius: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stories__item-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}

.stories__item-rating {
  display: flex;
  gap: 0.4rem;
}

.fancybox__container {
  --f-html-padding: 1.6rem;
  --f-html-bg: v.$bg-secondary;
}

.fancybox__container .f-htmlBlock {
  max-width: 900px !important;
  max-height: 85vh !important;
  border-radius: 1.2rem;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  .stories__inner {
    padding-bottom: 0;
  }

  .stories__nav {
    gap: 0.8rem;
    position: static;
    transform: none;
  }

  .stories__nav-btn {
    width: 5.2rem;
    height: 5.2rem;
  }

  .stories__item.swiper-slide-active {
    width: 39.8rem;
  }

  .stories__item-title {
    font-size: 1.6rem;
  }
}

@media only screen and (min-width: 1024px) {
  .stories__slider {
    width: calc(100% + 8rem);
    margin: 3.2rem 0 0 -4rem;
    padding: 0 4rem;
  }
}