
.video-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 🔥 ВАЖНО: ограничиваем Swiper мир */
.video-slider-container {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* сам слайдер */
.video-slider-section {
    width: 100%;
    min-width: 0;
}

/* Swiper фикс */
.video-swiper {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.video-slider-section {
    width: 100%;
    position: relative;
    min-width: 0;
}

/* если внутри flex/grid — это критично */
.video-slider-section {
    flex: 1;
    min-width: 0;
}

.video-slider-wrap {
    width: 100%;
    min-width: 0;
}

/* 🔥 главный контейнер Swiper */
.video-swiper {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    display: block;
}

/* страховка от “раздувания” */
.video-swiper .swiper-wrapper {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

/* slide фикс */
.video-swiper .swiper-slide {
    height: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* CARD */
.video-slide-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    height: 100%;
    min-width: 0;
}

/* THUMB */
.video-slide-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.video-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

/* hover zoom */
.video-slide-card:hover .video-slide-thumb img {
    transform: scale(1.04);
}

/* TITLE */
.video-slide-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* NAV */
.video-swiper .swiper-button-prev,
.video-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .video-slide-title {
        font-size: 15px;
    }
}

@media (max-width: 500px) {
    .video-slide-title {
        font-size: 14px;
        line-height: 1.35;
    }
}