.index-intro__stories {
    margin-right: -60px;
}

.modal-stories {
    display: none;
    max-width: 90vw;
    width: 100%;
}

.modal-stories video, .modal-stories img {
    width: 100%;
    display: block;
}

.modal-stories__content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background-color 0.5s, z-index 0.5s;
}

.modal-stories__content.c-slider__item--active {
    filter: brightness(1);
}

.modal-stories__content.c-slider__item--active:before {
    z-index: -1;
    background-color: transparent;
}

.modal-stories__content.swiper-slide-active {
    filter: brightness(1);
    backdrop-filter: blur(17px);
}

.modal-stories__content.swiper-slide-active:before {
    z-index: -1;
    background-color: transparent;
}

.modal-stories__wrapper {
    display: flex;
    flex-direction: column;
}

.modal-stories__content-info {
    background-color: #2B2B2B;
    padding: 15px;
    color: white;
}

.modal-stories__content-video,
.modal-stories__content-img {
    position: relative;
    aspect-ratio: 9/16;
    /*background-color: #2B2B2B;*/

}

.modal-stories__content-video video:focus-visible {
    outline: transparent;
}

.modal-stories__content-inner {
    height: 110px;
    overflow-y: auto;
}

.modal-stories__content-info.without-btn .modal-stories__content-inner {
    height: 165px;
}

.modal-stories__content-inner::-webkit-scrollbar {
    width: 5px;
}

.modal-stories__content-inner::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.3);
}

.modal-stories__content-inner::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 15px;
    border: 1px solid transparent;
}

.modal-stories__content-name {
    font-size: 22px;
    margin-bottom: 10px;
}

.s-stories-modal__carousel-btn.c-button-slider {
    position: absolute;
    top: 50%;
    transform: translateY(calc(50% - 180px));
    z-index: 2;
    backdrop-filter: blur(1px);
}

.modal-stories__content-btn {
    display: block;
    text-align: center;
    padding: 14px;
    margin-top: 10px;
}

.s-stories-modal__carousel-prev.c-button-slider {
    left: 0;
}

.s-stories-modal__carousel-next.c-button-slider {
    right: 1px;
}

@media (min-width: 2000px) {
    .modal-stories {
        max-width: 1920px;
    }
}

@media (max-width: 1480px) {
    .modal-stories {
        max-width: 80vw;
    }
}

@media (max-width: 1199.98px) {
    .index-intro__stories {
        margin-right: 0;
    }
}

@media screen and (max-width: 1280px) {
    .modal-stories {
        max-width: 95vw;
        padding: 30px;
    }
}

@media screen and (max-width: 1024px) {
    .index-intro__stories {
        margin-top: 80px;
        margin-right: -30px;
    }
}

@media screen and (max-width: 768px) {
    .fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
        padding-top: 0;
    }

    .fancybox__backdrop {
        backdrop-filter: blur(17px);
        background-image: linear-gradient(180deg, rgba(43, 43, 43, 0) 0%, rgba(43, 43, 43, 0.75) 100%);
    }

    .modal-stories__content-info {
        background-color: transparent;
    }
    .modal-stories__wrapper {
        width: fit-content;
        margin: 0 auto;
    }
    .modal-stories__content-video, .modal-stories__content-img {
        aspect-ratio: initial;
    }
    .modal-stories video, .modal-stories img {
        width: auto;
        margin: 0 auto;
        display: block;
        aspect-ratio: 9 / 16;
        max-height: calc(100vh - 194px - 66px);
    }
}

@media screen and (max-width: 480px) {
    .modal-stories {
        max-width: 95vw;
        padding: 15px;
    }

    .s-stories-modal__carousel-btn.c-button-slider {
        transform: translateY(calc(50% - 143px));
    }

    .modal-stories__content-name {
        font-size: 20px;
    }

    .modal-stories__content-text {
        font-size: 14px;
    }

    .modal-stories__content-inner {
        height: 70px;
    }

    .modal-stories__content-info.without-btn .modal-stories__content-inner {
        height: 123px;
    }

    .c-video-card .c-button-video {
        width: 42px;
        height: 42px;
    }
}


/****** story-item ******/

.story-item {
    aspect-ratio: 9/16;
    position: relative;
}

.story-item__content-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.story-item {
    max-height: 417px;
    max-width: 235px;
}

@media screen and (max-width: 1680px) {
    .story-item {
        max-height: 525px;
        max-width: 295px;
    }
}

@media screen and (max-width: 1280px) {
    .story-item {
        max-height: 497px;
        max-width: 224px;
    }
}

@media screen and (max-width: 1024px) {
    .story-item {
        max-height: 470px;
        max-width: 264px;
    }
}

.story-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.8) 100%);
    height: 100%;
}

.story-item__content-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: white;
    font-size: 22px;
    z-index: 2;
    text-transform: initial;
}
@media screen and (max-width: 1280px) {
    .story-item__content-name {
        font-size: 18px;
    }
}

@media screen and (max-width: 1024px) {
    .story-item__content-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .story-item__content-name {
        font-size: 18px;
    }
}

.story-item video, .story-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-item__icon-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ccc;
}