.stories {
  display: none;
}
@media (max-width: 1016px) {
.stories--active {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #1B1B29;
  color: #fff;
  z-index: 1000000000;
  display: flex;
  flex-direction: column;
  background-image: url(/local/templates/vetcity/components/bitrix/news.list/stories/img/vetcity_clinic.svg);
  background-repeat: no-repeat;
  background-position: 15px 75px;
  user-select: none;
}

.stories-header {
  margin: 12px 20px 8px 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.stories-header-content {
  position: relative;
  display: grid;
  grid-template-columns: 55px auto;
  gap: 17px;
}
.stories-header-close-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
}
/* pagination >> */
.stories-header__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stories-header__pagination .swiper-pagination-bullet {
  margin: 2px;
  border-radius: 5px;
}

.stories-header__pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 1;
  position: relative;
  width: 100%;
  height: 2px;
  display: inline-block;
  overflow: hidden;
}
.stories-header__pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}
.stories-header__pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  --progress: 0;
  background: linear-gradient(to right, #fff calc(100% * var(--progress)), #ffffff4d calc(100% * var(--progress)) 100%);
  background-repeat: no-repeat;
}
.stories-header__pagination .swiper-pagination-bullet_viewed {
  background: #fff;
}
.stories-btn-close {
  display: none;
}
.stories-control--next.swiper-button-disabled .stories-btn-close {
  display: block;
  height: 100%;
}
.stories-header__pagination .swiper-pagination-bullet:only-child {
  display: inline-block !important;
}
.stories-header__pagination.swiper-pagination-lock {
  display: flex !important;
}
/* << pagination */

.stories-slider {
  height: 100%;
}
.stories-slider__content {
  height: 100%;
  display: flex;
  align-items: flex-end;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: multiply;
  border-top-right-radius: 30px;
  border-top-left-radius: 30px;
}
.stories-content {
  position: relative;
  height: 100%;
}
.stories-slider__img {
  height: 200px;
}
.stories-slider__link {
  text-transform: uppercase;
  font-weight: bold;
}
.stories-control {
  position: absolute;
  width: 100%;
  height: 70%;
  top: 0;
  left: 0;

  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  z-index: 1000000001;

  background-color: #fff;
  opacity: .0;
}

.stories-slider__title {
  font-weight: 600;
  font-size: 22px;
  line-height: 26px;
  max-width: 95%;
}
.stories-slider__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 1);
  max-width: 90%;
  font-weight: 300;
  margin-bottom: 15px;
}
.stories-slider__subtitle ul,
.stories-slider__subtitle ol {
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
}
.stories-slider__link {
  width: max-content;
  color: #00CBF8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stories-slider__link::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  right: 0;
  bottom: 0;
  background-image: url(/local/templates/vetcity/components/bitrix/news.list/stories/img/arrow.svg);
}
.stories-slider__info {
  background: linear-gradient(rgba(11, 11, 16, 0.0), rgba(11, 11, 16, 0.6), rgba(11, 11, 16, 0.8), rgba(11, 11, 16, 1), #1B1B29);
  padding: 30px 20px 70px 20px;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
}

.stories-control--prev,
.stories-control--next {
  position: absolute;
  top: 86px;
  width: 60px;
  height: 60%;
  z-index: 5;
}
.stories-control--prev {
  left: 0;
}
.stories-control--next{
  right: 0;
}
}