﻿.slideshow {
    /*     display: none; Hide initially, JavaScript will handle display */
    overflow: hidden;
    width: 100%;
    height: auto;
    position: relative;
}

.slide {
    /* display: none;  Hide all slides initially */
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;

    transition-duration: 4s;
    transition-delay: 2s;
}

    .slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: opacity 0.5s ease-in-out;
        transition-duration: 4s;
        transition-delay: 2s;
    }

.overlay-text {
    position: absolute;
    bottom: 20px; /* Change to 'top', 'left', or 'right' as needed */
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    color: white;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    max-width: 90%;
}

.overlay-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3); /* Optional: semi-transparent overlay */
    color: white;
    text-align: center;
    padding: 2vw;
    box-sizing: border-box;
    font-size: clamp(1rem, 3vw, 3rem); /* Scales text between 1rem and 2rem depending on screen width */
    font-weight: bold;
}