.story-container h2 {
   padding-bottom: 10px;
}

.story__inner {
   display: flex;
   align-items: center;
}

.story-slider {
   position: relative;
   overflow: hidden;
   max-width: 750px;
   width: 100%;
}

.story-slider__btns {
   display: flex;
   justify-content: space-between;
   gap: 15px;
   width: 100%;

   pointer-events: none;

   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 20;
   padding: 0 15px;
}

.story-slider__btn {
   pointer-events: auto;
   border-radius: 100%;
   background: #fff;
   padding: 10px;
   opacity: .8;
   border: none;
   width: 45px;
   height: 45px;
}

.story-slider__btn svg {
   width: 20px;
   position: relative;
   top: 50%;
   left: 50%;
   transform: translate(-65%, -54%);
}


.story-slider__btn-prev {}

.story-slider__btn-next {}

.story-swiper {
   width: 100%;

}

.swiper-wrapper {}

.story-slide {
   max-width: 180px;
   max-height: 270px;

   cursor: pointer;

   /* Включаем аппаратное ускорение */
   transform: translateZ(0);
   backface-visibility: hidden;
   will-change: transform;
   /* Предотвращаем выделение текста при быстром скролле */
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

.swiper-slide {}

.story-slide__wrapper {
   position: relative;
}

.story-slide__image {
   width: 100%;
   height: 100%;
   max-width: 180px;
   max-height: 270px;
   min-height: 270px;
   object-fit: cover;
   border-radius: 14px;
   position: relative;
}

.story-slide__author {
   font-weight: 400;
   font-size: 13px;

   position: absolute;
   bottom: -10px;
   left: 15px;
   color: #fff;
}



@media(max-width:768px) {
   .css-scroll-snap-container {
      display: flex;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
   }

   .css-scroll-snap-container::-webkit-scrollbar {
      display: none;
   }

   .story-slide {
      flex: 0 0 auto;
      width: 80%;
      margin-right: 10px;
   }
}

/* -------------------------modal-------------------------*/
.story-modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;

   opacity: 0;
   pointer-events: none;
   transition: ease .2s;

   background-color: #000;
   z-index: 99999;

   display: none;
   align-items: center;
}


.progress-bar-container {
   position: absolute;
   top: 15px;
   left: 8px;
   right: 8px;
   height: 4px;
   background: rgba(255, 255, 255, 0.3);
   border-radius: 2px;
   overflow: hidden;
   z-index: 10;

   max-width: 600px;
   margin: 0 auto;
}

.progress-bar {
   height: 100%;
   width: 0%;
   background: white;
   transition: none;
}

.story-modal--visible {
   opacity: 1;
   pointer-events: all;
   display: flex;
}


.story-modal__slider {
   padding: 20px;
   position: relative;
   width: 100% !important;
   height: 100% !important;
}

.story-modal__slider-close {
   position: absolute;
   top: 20px;
   right: 20px;
   width: 40px;
   height: 40px;
   cursor: pointer;
   background-color: transparent;
   border: none;
   z-index: 10;
   background-color: #fff;
   border: 1px solid #fff;
   border-radius: 50%;
   pointer-events: none;

   display: flex;
   align-items: center;
   justify-content: center;
}

@media(max-width:768px){
   .story-modal__slider-close{
      top: 44px;
   }
}

.story-modal__slider-close img{
   width: 38px;
   height: 38px;
}

.story-modal__btns {
   display: flex;
   justify-content: space-between;
   width: 100%;
   max-width: 900px;
   gap: 20px;
   padding: 0 15px;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 51;

   pointer-events: none;
}

.story-slider__btn {}

.story-modal__btn-prev {}

.story-modal__btn-next {}

.story-modal__wrapper {}

.swiper-wrapper {}

.story-modal__slide {
   display: flex !important;
   justify-content: center;
   align-items: center;
   height: unset !important;
}

.swiper-slide:last-child {
   margin: 0 !important;
}

.story-modal__image-wrapper {
   max-height: 900px;
   max-width: 600px;
   width: 100%;
   height: 100%;
   position: relative;

}

.story__modal-pic {
   max-height: 900px;
   max-width: 600px;
   height: 100vh;
   width: 100%;
   object-fit: cover;
   border-radius: 14px;

   pointer-events: none;
}

.story__modal-pic-img {
   object-fit: cover;
   object-position: center center;
}

.story-modal__author {
   font-weight: 400;
   font-size: 20px;

   position: absolute;
   bottom: 30px;
   left: 20px;
   color: #fff;
}

.swiper-button-disabled {
   opacity: 0;
   pointer-events: none;
}

/* -------------------------media-------------------------*/

@media(max-width:760px) {

   .story-modal__btns,
   .story-slider__btns {
      display: none;
   }

   .story__modal-pic {
      max-width: unset;
      border-radius: unset;
   }

   .story-modal__image-wrapper {
      max-width: unset;
   }

   .progress-bar-container {
      max-width: unset;
   }

   .story-modal__slider {
      padding: unset;
   }

   .story__modal-pic {
      min-height: unset;
   }
}