﻿

/* 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;
}

/* Slider progress bar animated */
/*#headerSlider .swiper-slide-active::after {
    position: absolute;
    content: '';
    background-color: #BBBBBB;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    width: 100%;
    z-index: 1;
}

#headerSlider .swiper-slide-active::before {
    position: absolute;
    content: '';
    background-color: #333333;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    animation: progressbar 7s linear infinite;
    animation-delay: 0.3s;
    z-index: 2;
}

@keyframes progressbar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}*/


#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;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 40px;
}


#headerSlider .swiperContent p:last-child {
    padding: 0;
}

#headerSlider .swiperContent h1,
#headerSlider .swiperContent h2,
#headerSlider .swiperContent h3,
#headerSlider .swiperContent h4 {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
    color: #fff;
}

#headerSlider .swiperContent h1 {
    font-size: 50px;
    font-weight: 600;
}

#headerSlider .swiperContent h2 {
    font-size: 40px;
    line-height: 1;
}

#headerSlider .swiperContent a,
#headerSlider .swiperContent a:visited {
    text-decoration: underline;
}

#headerSlider .swiperContent .button {
    margin: 20px 0 0 0;
    text-decoration: none;
    text-shadow: none;
    font-size: 20px;

}

#headerSlider .swiperContent .button:visited {

}

#headerSlider .swiperContent .button:hover {
    text-decoration: none;
    background-color: #808080;
    color: #fff;
}


@media screen and (max-width: 1023.9px) {

    #headerSlider .swiper-slide img {
        min-height: 350px;
        object-fit: cover
    }

    #headerSlider .swiperContent {
        font-size: 30px;
    }

    #headerSlider .swiperContent h1 {
        font-size: 35px;
        margin-bottom: 10px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 30px;
        margin-bottom: 10px;
    }


}

@media screen and (max-width: 767.9px) {

    #headerSlider .swiper-slide img {
        min-height: 250px;
    }

    #headerSlider .swiperContent .button {
        margin: 10px 0 0 0;
        font-size: 18px;
        padding: 5px 10px 5px 10px;
    }

    #headerSlider .swiperContent h1 {
        font-size: 30px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 25px;
    }
}

@media screen and (max-width: 450px) {

    #headerSlider .swiperContent h1 {
        font-size: 25px;
    }

    #headerSlider .swiperContent h2 {
        font-size: 20px;
    }
}


