.index-intro__stories {
    margin-right: -60px;
}

.c-slider--stories.swiper {
    /*width: fit-content;*/
}
.c-video-card .c-button-video {
    z-index: 9;
}

@media (max-width: 1100px) {
    .vkvideo {
        width: 560px;
        height: 315px;
    }
}

@media (max-width: 600px) {
    .vkvideo {
        width: 320px;
        height: 180px;
    }
}

.fancybox__content {
    padding: 0;
}

.show-vk-video {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}


.show-vk-video .c-button-video {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@media (any-hover: hover) {
    .s-fluid-gallery .c-slider .c-slider__item .js-show-video:hover .c-button-video {
        border-color: var(--secondary-color);
        background-color: var(--secondary-color);
    }
}

.fancybox__content {
    /*flex-grow:1;*/
    aspect-ratio: 16 / 9;
    max-width: 1000px;
    width: 100%;
    height: auto;
}

.fancybox__container:not(.is-compact) .has-iframe .fancybox__content {
    max-width: 1200px;
    width: 100%;
    height: auto;
}
.fancybox__content:has(.vkvideo--shorts) {
    aspect-ratio: 8 / 16;
    width: auto;
    max-height: 790px;
    height: 100%;
    background-color: black;
}
.vkvideo.vkvideo--shorts {
    aspect-ratio: 8 / 16;
    width: auto;
    max-height: 767px;
    height: 100%;
}

.fancybox__html5video{
    aspect-ratio: 9 / 16;
    width: auto;
    max-height: 767px;
    height: 100%;
}

.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
    padding-bottom: 40px;
}
.fancybox__content:has(.fancybox__html5video) {
    aspect-ratio: 9 / 16 !important;
    width: auto !important;
    max-height: 790px;
    height: 100%;
    background-color: black;
}


@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) {
    .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;
}