/* Slideshow container */
.slideshow-container {
    width: 100%;
    height: 100vh; /* Full height of the viewport */
    position: relative;
    margin: auto;
    overflow: hidden; /* Prevent overflow */
}

/* Style the images to cover the entire container */
.slideshow-container img {
    width: 100%;
    height: 100vh; /* Full height of the viewport */
    object-fit: cover; /* Ensures the image covers the container while maintaining aspect ratio */
}

/* Hide all slides by default */
.slide {
    display: none;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.8s;
}

@keyframes fade {
    from { opacity: 0.4; } 
    to { opacity: 1; }
}

/* Style for navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

/* Dots below the slides */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Show the first slide */
.active-slide {
    display: block !important;
}


@media (max-width: 980px) {
    .slideshow {
        margin-top: 1em;
    }
}
    
/* Mobile responsiveness (480px and below) */
@media (max-width: 480px) {
    .slideshow-container {
        max-width: 100%; /* Adjust width to fit smaller screens */
        height: auto;    /* Allow height to adjust dynamically */
    }

    .slideshow-container img {
        width: 100%;     /* Image should be 100% of container width */
        height: auto;    /* Maintain aspect ratio */
    }

    .prev, .next {
        font-size: 12px; /* Smaller text for navigation buttons */
        padding: 12px;   /* Reduce padding */
    }

    .prev {
        left: 10px;      /* Adjust position for smaller screens */
    }

    .next {
        right: 10px;     /* Adjust position for smaller screens */
    }

    .dot {
        height: 10px;    /* Smaller dots */
        width: 10px;
    }
}
