@import url("main.inc.css");

/*
This stylesheet handles styles specific for home.inc.php.
It is included by index.php.


***************************
** Begin Default Styling **
*/

/*
*****************************
** BEGIN SLIDESHOW STYLING **
*/

#home {
    padding-left: unset;
    padding-right: unset;
}

#home .desktop-slides {
    display: none;
}

#home .slideshow {
    position: relative;
    width: 100%;  /* Full width */
    aspect-ratio: 9/16;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fade 70s infinite;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensure the image covers the entire container */
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }
.slide:nth-child(6) { animation-delay: 25s; }
.slide:nth-child(7) { animation-delay: 30s; }
.slide:nth-child(8) { animation-delay: 35s; }
.slide:nth-child(9) { animation-delay: 40s; }
.slide:nth-child(10) { animation-delay: 45s; }

@keyframes fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

/* Ensure images inside slides are responsive */
.slide img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the width */
}

/*
** END SLIDESHOW STYLING **
***************************
*/


@media screen and (min-width: 900px) {

    #home .slideshow {
        aspect-ratio: 16/9;
        overflow: hidden;
    }

    #home .mobile-slides {
        display: none;
    }

    #home .desktop-slides {
        display: block;
    }
}  /*  End of 900px  */