.hstf-stories-slider-wrap {
  --hstf-nav-size: 46px;
  --hstf-nav-inset: 12px;
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-right: 12%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hstf-stories-swiper {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.hstf-stories-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--hstf-nav-size);
  height: var(--hstf-nav-size);
  margin: 0;
  padding: 0;
  border: 2px solid #14BCBC;
  border-radius: 50%;
  background: #fff;
  color: #14BCBC;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  -webkit-appearance: none;
  appearance: none;
}

.hstf-stories-nav span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.hstf-stories-nav-prev {
  left: var(--hstf-nav-inset);
}

.hstf-stories-nav-prev span {
  transform: rotate(-135deg) translate(-1px, 1px);
}

.hstf-stories-nav-next {
  right: var(--hstf-nav-inset);
}

.hstf-stories-nav-next span {
  transform: rotate(45deg) translate(-1px, 1px);
}

.hstf-stories-nav:hover,
.hstf-stories-nav:focus-visible {
  background: #14BCBC;
  color: #fff;
  border-color: #14BCBC;
  transform: translateY(-50%) scale(1.05);
}

.hstf-stories-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.hstf-story-slide {
  height: auto;
  width: auto;
  max-width: 348px;
}

.hstf-story-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 348px;
  height: 345px;
  border: none;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  min-height: 280px;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  white-space: normal;
}

.hstf-card-image {
  width: 100%;
  height: 345px;
  object-fit: cover;
  display: block;
}

.hstf-card-overlay {
  position: absolute;
  inset: 0;
  padding: 18px 20px 22px;
  background: #14BCBC;
  color: #fff;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 3;
}

.hstf-story-card:hover .hstf-card-overlay,
.hstf-story-card:focus .hstf-card-overlay,
.hstf-story-card:focus-visible .hstf-card-overlay,
.hstf-story-card.is-revealed .hstf-card-overlay {
  opacity: 1;
  transform: scale(1);
}

.hstf-card-overlay::before {
  content: none;
}

.hstf-card-overlay blockquote {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.32;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  color: #f9fafa;
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hstf-card-overlay blockquote::before {
  color: #f9fafa;
  content: "\201C";
  display: block;
  font-family: Times New Roman, Times, serif;
  font-size: 92px;
  font-weight: 900;
  height: .6em;
  line-height: 1;
  margin-bottom: 8px;
}

.hstf-card-overlay .hstf-author {
  font-size: 13px;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-top: 2px;
  white-space: normal;
}

.hstf-card-overlay .hstf-author::before {
  content: "";
  display: block;
  width: 10px;
  height: 2px;
  margin: 0 6px 0 0;
  background: #fff;
}

.hstf-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  z-index: 2;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hstf-play-icon::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

.hstf-story-card:hover .hstf-play-icon,
.hstf-story-card:focus .hstf-play-icon,
.hstf-story-card:focus-visible .hstf-play-icon,
.hstf-story-card.is-revealed .hstf-play-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.hstf-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.hstf-video-modal.is-open {
  display: block;
}

.hstf-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.hstf-video-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 92vw);
  transform: translate(-50%, -50%);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.hstf-video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.hstf-video-frame-wrap iframe,
.hstf-video-frame-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hstf-video-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .hstf-stories-slider-wrap {
    --hstf-nav-size: 40px;
    --hstf-nav-inset: 8px;
    max-width: 100%;
    padding-right: 0;
  }
  .hstf-stories-nav {
    width: var(--hstf-nav-size);
    height: var(--hstf-nav-size);
  }
  .hstf-stories-swiper.hstf-native-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 188, 188, 0.8) rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
  }
  .hstf-stories-swiper.hstf-native-scroll::-webkit-scrollbar {
    height: 8px;
  }
  .hstf-stories-swiper.hstf-native-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
  }
  .hstf-stories-swiper.hstf-native-scroll::-webkit-scrollbar-thumb {
    background: rgba(20, 188, 188, 0.85);
    border-radius: 100px;
  }
  .hstf-native-scroll .swiper-wrapper.hstf-native-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    min-width: 100%;
    transform: none !important;
  }
  .hstf-native-scroll .swiper-slide {
    flex: 0 0 auto;
    width: 320px;
  }
  .hstf-story-slide,
  .hstf-story-card {
    max-width: 320px;
    height: 320px;
  }
  .hstf-card-image {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .hstf-story-slide,
  .hstf-story-card {
    width: 280px;
    max-width: 280px;
    height: 300px;
  }
  .hstf-card-image {
    height: 300px;
  }
  .hstf-card-overlay blockquote {
    font-size: 24px;
  }
}
