.vf-stories {
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 256px 92px;
  box-sizing: border-box;
  color: var(--primary-color);
}

.vf-stories-progress {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: repeat(var(--stories-count, 10), minmax(0, 1fr));
  gap: 12px;
}

.vf-stories-progress__segment {
  position: relative;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: #c6daf0;
}

.vf-stories-progress__fill {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: var(--primary-color);
  transform-origin: left center;
}

.vf-stories-progress__fill {
  transform: scaleX(0);
}

.vf-stories-progress__segment.is-complete .vf-stories-progress__fill {
  transform: scaleX(1);
}

.vf-stories-progress__segment.is-current .vf-stories-progress__fill {
  transform: scaleX(var(--story-progress, 0));
}

.vf-stories__heading {
  width: min(100%, 1100px);
  margin: 0 auto;
  text-align: center;
  font-size: 70px;
  line-height: 0.9;
}

.vf-stories-carousel {
  width: 1404px;
  max-width: 100%;
  margin-top: 52px;
  height: 704px;
  min-height: 704px;
  position: relative;
  perspective: 1200px;
  margin-left: auto;
  margin-right: auto;
  contain: layout paint;
}

.vf-story-card {
  position: absolute;
  top: 0;
  left: calc(50% - 230px);
  width: 460px;
  height: 704px;
  min-width: 0;
  overflow: hidden;
  border-radius: 34px;
  box-sizing: border-box;
  background: #d8e1ee;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 640ms cubic-bezier(0.4, 0, 0.2, 1), opacity 640ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.vf-story-card--active {
  z-index: 4;
  border-radius: 40px;
  box-shadow: 0 50px 82px -54px rgba(30, 68, 135, 0.5);
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.vf-story-card--side {
  z-index: 2;
  opacity: 0.28;
  transform: translate3d(0, 0, -80px) scale(0.652174, 0.653409);
}

.vf-story-card--far {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, -120px) scale(0.652174, 0.653409);
}

.vf-story-card--far-left {
  transform: translate3d(-1010px, 0, -120px) scale(0.652174, 0.653409);
}

.vf-story-card--far-right {
  transform: translate3d(1010px, 0, -120px) scale(0.652174, 0.653409);
}

.vf-story-card--side-left {
  transform: translate3d(-552px, 0, -80px) scale(0.652174, 0.653409);
}

.vf-story-card--side-right {
  transform: translate3d(552px, 0, -80px) scale(0.652174, 0.653409);
}

.vf-story-card.is-story-moving {
  pointer-events: none;
}

.vf-stories-hit-zone {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  touch-action: manipulation;
}

.vf-stories-hit-zone__half {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vf-story-card__media,
.vf-story-card__image {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #d8e1ee;
}

.vf-story-card__freeze-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.vf-story-card--side .vf-story-card__media {
  filter: saturate(0.95);
}

.vf-story-card--side-left .vf-story-card__media,
.vf-story-card--side-left .vf-story-card__image {
  object-position: 48% center;
}

.vf-story-card--side-right .vf-story-card__media,
.vf-story-card--side-right .vf-story-card__image {
  object-position: 52% center;
}

.vf-story-card__author {
  position: absolute;
  top: 20px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.vf-story-card__avatar {
  width: 56px;
  height: 56px;
  max-width: none;
  border: 2px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.45);
}

.vf-story-card__handle {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.vf-stories-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  transform: translateY(-50%);
}

.vf-stories-nav--prev {
  left: calc(50% - 344px);
}

.vf-stories-nav--next {
  right: calc(50% - 344px);
}

.vf-stories-nav img {
  width: 16px;
  height: 16px;
  max-width: none;
}
