/* ✅ Slider height override */
.slider, 
.slick-slider, 
.swiper-container {
    max-height: 200px !important;   /* Change 400px to your desired height */
    overflow: hidden !important;
}

/* ✅ Slider images */
.slider img, 
.slick-slide img, 
.swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ✅ Caption styling with fade-in */
.slider .slide-caption, 
.slick-slide .caption, 
.swiper-slide .caption {
    font-size: 2rem !important;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    opacity: 0;
    animation: fadeInCaption 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* ✅ Tablet screens */
@media (max-width: 1024px) {
    .slider, 
    .slick-slider, 
    .swiper-container {
        max-height: 300px !important;
    }
    .slider .slide-caption, 
    .slick-slide .caption, 
    .swiper-slide .caption {
        font-size: 1.6rem !important;
        padding: 8px 16px;
        animation-delay: 0.4s;
    }
}

/* ✅ Mobile screens */
@media (max-width: 768px) {
    .slider, 
    .slick-slider, 
    .swiper-container {
        max-height: 220px !important;
    }
    .slider .slide-caption, 
    .slick-slide .caption, 
    .swiper-slide .caption {
        font-size: 1.2rem !important;
        padding: 6px 12px;
        animation-delay: 0.3s;
    }
}

/* ✅ Keyframes for fade-in */
@keyframes fadeInCaption {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}