.dod-container.--type_stories {
  margin-bottom: 60px;
}

.stories-widget {
  width: 100%;
}

.stories-widget *,
.stories-widget *::before,
.stories-widget *::after {
  box-sizing: border-box;
}

body.is-locked {
  overflow: hidden;
}

.stories-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.stories-slider::-webkit-scrollbar {
  height: 4px;
}

.stories-slider::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.stories-slider::-webkit-scrollbar-track {
  border-radius: 999px;
  background: transparent;
}

.stories-slider::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  background-clip: content-box;
}

.stories-slider.is-scrolling {
  scrollbar-width: thin;
  scrollbar-color: rgba(54, 81, 175, 0.45) rgba(54, 81, 175, 0.08);
}

.stories-slider.is-scrolling::-webkit-scrollbar-track {
  background: rgba(54, 81, 175, 0.08);
}

.stories-slider.is-scrolling::-webkit-scrollbar-thumb {
  background: linear-gradient(270deg, rgba(76, 131, 192, 0.58) 0%, rgba(54, 81, 175, 0.58) 100%);
  background-clip: content-box;
}

.stories-slider.is-scrolling::-webkit-scrollbar-thumb:hover,
.stories-slider.is-dragging::-webkit-scrollbar-thumb {
  background: linear-gradient(270deg, rgba(76, 131, 192, 0.72) 0%, rgba(54, 81, 175, 0.72) 100%);
  background-clip: content-box;
}

.stories-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.story-card {
  position: relative;
  flex: 0 0 303px;
  height: 320px;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
  color: #fff;
  scroll-snap-align: start;
  padding: 0;
  text-align: left;
}
@media (min-width: 1141px) and (max-width: 1430px) {

}

@media (min-width: 960px) and (max-width: 1140px) {
  .story-card {
    flex: 0 0 235px;
    height: 290px;
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .story-card {
    flex-basis: 220px;
    height: 270px;
  }
}

@media (max-width: 640px) {
  .story-card {
    flex: 0 0 221px;
    height: 250px;
  }
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.05),
          rgba(0, 0, 0, 0.75)
  );
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.story-card:hover img {
  transform: scale(1.05);
}

.story-card__play {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  font-size: 0;
}

.story-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 15px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-30%, -51%);
}

.stories-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 20px;
}

.stories-modal.is-open {
  display: flex;
}

.stories-modal__dialog {
  position: relative;
  width: min(430px, 100%);
  height: min(760px, calc(100vh - 40px));
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.stories-progress {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
}

.stories-progress__item {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.stories-progress__item.is-loading {
  animation: stories-progress-pulse 0.9s ease-in-out infinite;
}

.stories-progress__fill {
  width: 0%;
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.stories-header {
  position: absolute;
  z-index: 5;
  top: 26px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.stories-close {
  position: fixed;
  z-index: 1002;
  top: 20px;
  right: 20px;
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.stories-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.stories-player::before,
.stories-player::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stories-player::before {
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.stories-player::after {
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stories-spin 0.8s linear infinite;
}

.stories-player.is-loading::before,
.stories-player.is-loading::after {
  opacity: 1;
}

.stories-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

@keyframes stories-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stories-progress-pulse {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.28);
  }

  50% {
    background: rgba(255, 255, 255, 0.72);
  }
}

.stories-nav-zone {
  display: none;
}

.stories-nav-zone--prev {
  left: 0;
}

.stories-nav-zone--next {
  right: 0;
}

.stories-arrow {
  position: fixed;
  z-index: 1001;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.stories-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.stories-arrow--prev {
  left: max(20px, calc(50% - 320px));
}

.stories-arrow--next {
  right: max(20px, calc(50% - 320px));
}

@media (max-width: 640px) {
  .story-card {
    /*flex-basis: 170px;*/
    /*height: 255px;*/
  }

  .stories-modal {
    align-items: flex-start;
    padding: 48px 0 0;
  }

  .stories-modal__dialog {
    width: 100%;
    height: calc(100vh - 48px);
    border-radius: 0;
  }

  .stories-close {
    top: 7px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.14);
  }

  .stories-progress {
    top: 10px;
  }

  .stories-header {
    top: 24px;
  }

  .stories-nav-zone {
    position: absolute;
    z-index: 4;
    top: 70px;
    bottom: 0;
    display: block;
    width: 24%;
    border: 0;
    background: transparent;
    touch-action: none;
  }

  .stories-arrow {
    display: none;
  }
}
