.slider { width: 100%; margin: 0 auto; position: relative; padding: 10px 0; .swiper-slide { display: flex; justify-content: center; align-items: center; height: 48vh; bottom: 10px; .slide-image { width: 100%; height: auto; height: 350px; object-fit: cover; object-position: center center; // border-radius: 8px; pointer-events: none; } } .swiper-wrapper:has(.swiper-slide.single) { justify-content: center; .swiper-slide.single { display: flex; justify-content: center; align-items: center; .slide-image { width: auto; height: 100%; object-position: center center; pointer-events: none; border-radius: 0px; } } } } /* стрелки */ /* Кастомные стрелки */ .custom-navigation { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 50%; width: 100%; transform: translateY(-50%); z-index: 10; } .custom-prev, .custom-next { width: 60px; height: 60px; background-color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); cursor: pointer; font-size: 24px; border: none; } .custom-prev { margin-left: -70px; @media (max-width: 768px) { margin-left: 0px; } } .custom-next { margin-right: -70px; @media (max-width: 768px) { margin-right: 0px; } } .slider.news { .swiper-slide { opacity: 0.5; transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; height: 65vh; .slide-image { height: 500px; } @media (max-width: 768px) { opacity: 1; transition: none; height: 48vh; .slide-image { height: 350px; } } } .swiper-slide-active { opacity: 1; } &.no-animation .swiper-slide { transition: none; } .swiper-wrapper:has(.swiper-slide.single) { justify-content: center !important; } .swiper-slide-prev, .swiper-slide-next { opacity: 0.7; transform: scale(0.9); @media (max-width: 768px) { opacity: 1; transform: none; } } }