.rutube-video-gallery .swiper-cartoon {
    position: relative;
    height: auto;
}

.rutube-video-gallery_has_navigation .swiper-cartoon {
    padding: 0 0 60px;
}

.rutube-video-gallery .swiper-cartoon .swiper-slide a::after {
    content: '';
    width: 50px;
    height: 25px;
    position: absolute;
    background: url('/images/youtube_play_button.svg') no-repeat 50% 50%;
    top: 75px;
    margin-left: 125px;
    opacity: .7;
}

/* Контейнер для картинки с сохранением пропорций */
.rutube-video-gallery .swiper-slide__video {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 9/16 = 56.25% - пропорция 16:9 */
    overflow: hidden;
}

.rutube-video-gallery .swiper-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопки навигации */
.rutube-video-gallery .swiper-custom-button-prev,
.rutube-video-gallery .swiper-custom-button-next {
    position: absolute;
    bottom: 10px;
    width: calc(var(--swiper-navigation-size) / 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(-1 * var(--swiper-navigation-size) / 2);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a01602;
    line-height: var(--swiper-navigation-size);
}

.rutube-video-gallery .swiper-custom-button-prev.swiper-custom-button-disabled,
.rutube-video-gallery .swiper-custom-button-next.swiper-custom-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.rutube-video-gallery .swiper-custom-button-prev:after,
.rutube-video-gallery .swiper-custom-button-next:after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    text-transform: none;
    font-variant: initial;
}

.rutube-video-gallery .swiper-custom-button-prev {
    left: 10px;
    right: auto;
}

.rutube-video-gallery .swiper-custom-button-prev:after {
    content: 'prev';
}

.rutube-video-gallery .swiper-custom-button-next {
    right: 10px;
    left: auto;
    text-align: right;
}

.rutube-video-gallery .swiper-custom-button-next:after {
    content: 'next';
}

/* Пагинация */
.rutube-video-gallery .swiper-custom-pagination {
    position: absolute;
    text-align: center;
    transition: 300ms opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.rutube-video-gallery .swiper-custom-pagination.swiper-custom-pagination-hidden {
    opacity: 0;
}

.rutube-video-gallery .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 100%;
    background: #a01602 !important;
    opacity: 0.2;
}

.rutube-video-gallery .swiper-pagination-bullet-active {
    opacity: 1;
    background: #a01602 !important;
}

.rutube-video-gallery .swiper-custom-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
}

.rutube-video-gallery .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 4px;
}

.rutube-video-gallery .swiper-cartoon .swiper-slide a::after {
    content: '';
    width: 50px;
    height: 25px;
    position: absolute;
    background: url(/images/youtube_play_button.svg) no-repeat 50% 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0;
    z-index: 2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .rutube-video-gallery .swiper-cartoon .swiper-slide a::after {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 450px) {
    .rutube-video-gallery .swiper-custom-button-prev,
    .rutube-video-gallery .swiper-custom-button-next {
        bottom: 0px;
    }
}

.rutube-video-gallery .swiper-custom-button-prev,
.rutube-video-gallery .swiper-custom-button-next,
.rutube-video-gallery .swiper-custom-pagination {
    display: none;
}

.rutube-video-gallery_has_navigation .swiper-custom-button-prev,
.rutube-video-gallery_has_navigation .swiper-custom-button-next,
.rutube-video-gallery_has_navigation .swiper-custom-pagination {
    display: block;
}