@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 **
*/

.slideshow {
    position: relative;
    width: 100%;  /* Full width */
    padding-bottom: 56.25%;  /* Maintain 16:9 aspect ratio (9/16 = 0.5625) */
    overflow: hidden;
}

.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: 7s; }
.slide:nth-child(3) { animation-delay: 14s; }
.slide:nth-child(4) { animation-delay: 21s; }
.slide:nth-child(5) { animation-delay: 28s; }
.slide:nth-child(6) { animation-delay: 35s; }
.slide:nth-child(7) { animation-delay: 42s; }
.slide:nth-child(8) { animation-delay: 49s; }
.slide:nth-child(9) { animation-delay: 56s; }
.slide:nth-child(10) { animation-delay: 63s; }

@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 **
***************************
*/