﻿

/* 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
{
    /* Part below needed if portrait images should be cut above and below. Without this the image is only cut below*/
    /*object-fit: cover;
    max-height: 100%;
    aspect-ratio: 2560/550;*/
}

#headerSlider .swiper-button-next, .swiper-button-prev {
    color: #fff !important;
}



#headerSlider .swiperContentWrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    text-align: left;
    background-color: rgba(40, 58, 142, 0.7);
    padding: 15px 20px 15px 20px;
}

#headerSlider .swiperContent {
    color: #fff;
}

#headerSlider .swiperContent h1,
#headerSlider .swiperContent h2 {
    color: #fff;
}

#headerSlider .swiperContent h1,
#headerSlider .swiperContent h2 {
    font-family: Times New Roman, Times, serif;
    font-size: 22px;
    line-height: 28px;
    font-style: italic;
    text-transform: none;
    margin-bottom: 10px;
    font-weight: normal;
}

#headerSlider .swiperContent p:last-child {
    padding: 0;
}




@media screen and (max-width: 1023.9px) {


    #headerSlider .swiperContent h1,
    #headerSlider .swiperContent h2 {
        font-size: 20px;
        line-height: 20px;
    }

}

@media screen and (max-width: 767.9px) {

    #headerSlider .swiperContentWrapper {
        padding: 5px 5px 5px 5px;
    }

    #headerSlider .swiperContent h1,
    #headerSlider .swiperContent h2 {
        font-size: 18px;
    }

    #headerSlider .swiperContent {
        font-size: 12px;
    }
}

@media screen and (max-width: 450px) {

    #headerSlider .swiperContent h1,
    #headerSlider .swiperContent h2 {
        font-size: 12px;
    }

    #headerSlider .swiperContent {
        font-size: 8px;
    }
}


