/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

/* Slide Images */
.slide {
    position: absolute; /* Overlap slides */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Initially invisible */
    /* transition: opacity 1s ease-in-out; /* Smooth fade effect */
    background-size: cover; /* Ensure images fill the screen */
    background-position: center; /* Center images */
}

.active {
    opacity: 1; /* Fully visible */
    z-index: 1; /* Bring to front */
}

.slide:not(.active) {
    z-index: 0; /* Push to back */
}

.slide img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the image fills the space */
    display: block; /* Remove any inline spacing issues */
}

/* Opaque Box Overlay */
.slideshow-overlay {
    position: absolute;
    top: 25%; /* Approximately 25% down the page */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.slideshow-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slideshow-overlay .slideshow-button {
    display: inline-block;
    background-color: pink;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.slideshow-overlay .slideshow-button:hover {
    background-color: #ff66b2;
}

/* Fading Animation */
.fade {
    animation: fadeEffect 3s infinite; /* 3s fade animation */
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


