/* Контейнер с эффектом затухания справа */
.custom-swiper-news {
    padding: 10px 0;
    overflow: hidden;
    position: relative; /* Важно для позиционирования псевдоэлемента */
}

/* ГРАДИЕНТНОЕ ЗАТУХАНИЕ справа */
.custom-swiper-news::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px; /* БЫЛО 120px — сделали уже */
    background: linear-gradient(to right, rgba(255,255,255,0) 50%, rgba(255,255,255,0.7) 100%); /* Более плавное и прозрачное */
    pointer-events: none;
    z-index: 10;
}

/* По умолчанию (для мобильных): слайд занимает 88% экрана */
.custom-swiper-news .swiper-slide {
    width: 88%; /* Чуть больше, чем было (было 85%) */
    height: auto;
    transition: transform 0.3s ease;
}

/* Для планшетов: увеличиваем до 320px */
@media (min-width: 768px) {
    .custom-swiper-news .swiper-slide {
        width: 320px; /* Было 280px */
    }
}

/* Для десктопов: увеличиваем до 350px */
@media (min-width: 1200px) {
    .custom-swiper-news .swiper-slide {
        width: 350px; /* Было 300px */
    }
}

/* Изображение внутри слайда */
.custom-swiper-news .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Убираем стрелки и точки */
.custom-swiper-news .swiper-button-next,
.custom-swiper-news .swiper-button-prev,
.custom-swiper-news .swiper-pagination {
    display: none !important;
}
