﻿

/* Darken the image if there is text*/
/*#headerSlider .swiper-slide:has(.swiperContentWrapper)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}*/


#headerSlider .swiper-slide img
{
    width: 100%;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

#headerSlider .swiper-slide img
{
    object-fit: cover;
    max-height: 450px;
}

#headerSlider .swiper-button-next,
#headerSlider .swiper-button-prev {
    color: #B32317 !important;
}


#headerSlider .swiperContentWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1230px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Ensure a vertical layout */
    justify-content:center;
    align-items: center;
    text-align: left; 
}

#headerSlider .swiperContent {
    align-self: start;
    padding: 0 25px 0 25px;
    max-width: 1230px;
}


#headerSlider .swiperContent p:last-child {
    padding: 0;
}


#headerSlider .swiperContent h1 {
    color: #fff;
    text-shadow: 5px 5px 6px rgba(0, 0, 0, 1);
    font-size: 70px;
}

#headerSlider .swiperContent h2 {
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-size: 30px;
    text-shadow: 5px 5px 6px rgba(0, 0, 0, 1);
    text-transform: none;
    font-weight: 700;
    transform: rotate(-3deg);
}

#headerSlider .swiperContent h3 {
    color: #B32317;
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    text-transform: none;
    font-weight: 500;
    display: inline-block;
    line-height: 1.5;   
}

#headerSlider .swiperContent h3 a {
    border-radius: 20px;
    padding: 20px 20px 25px 20px;
    background-color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    display: block;
}

#headerSlider .swiperContent h3 a:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

#headerSlider .swiperContent a {
    color: #B32317;
    text-decoration: none;
}

#headerSlider .swiperContent a:hover {
    color: #404040;
    text-decoration: none;
}



@media screen and (max-width: 1280px) {

    #headerSlider .swiperContent h1 {
        font-size: 60px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 25px;
    }

    #headerSlider .swiperContent h3 {
        font-size: 18px;
        padding: 15px 15px 20px 15px;
    }
}

@media screen and (max-width: 1024px) {


    #headerSlider .swiperContent h1 {
        font-size: 50px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 25px;
    }
}


@media screen and (max-width: 1023.9px) {

    #headerSlider .swiper-slide img {
        min-height: 350px;
        object-fit: cover
    }
}

@media screen and (max-width: 850px) {

    #headerSlider .swiperContent h1 {
        font-size: 45px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 22px;
    }

    #headerSlider .swiperContent h3 {
        display: none;
    }
}

@media screen and (max-width: 767.9px) {

    #headerSlider .swiper-slide img {
        min-height: 250px;
    }


}

@media screen and (max-width: 500px) {

    #headerSlider .swiperContent h1 {
        font-size: 30px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 18px;
    }
}

@media screen and (max-width: 450px) {
    #headerSlider .swiper-button-next,
    #headerSlider .swiper-button-prev {
        display: none;
    }
}

