    img {
        max-width: 100%;
    }

    div:has(.slideshow) {
        display: grid;
        align-items: center;
        justify-items: center;
    }

    .slideshow-container {
        width: 100%;
    }

    .slideshow {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
    }

    .slideshow img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
    }
    
    /* dark overlay over slide image using ::after*/
    .slideshow img ~ .img-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* change the opacity of background-color of overlay here */
        background-color: #00000082;
    }
    .slide {
        width:100%;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(100%);
        transition: transform 1s ease-in-out, opacity 0.2s ease-in-out;
    }   

    .button-overlay {
        position: absolute;
        z-index: 1;
        display: grid;
        height: 100%;
        width: 100%;
        grid-template-columns: 1fr 5fr 1fr;
        grid-template-rows: 5fr 1fr ;
    }

    .button-overlay button {
        background: none;
        border: none;
        font-size: 2rem;
        color: #ffffff;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .button-overlay button:nth-child(1) {
        grid-column: 1/2;
        grid-row: 1/3;
        background: linear-gradient(90deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0) 100%);

    }

    .button-overlay button:nth-child(2) {
        grid-column: 3/4;
        grid-row: 1/3;
        background: linear-gradient(90deg, rgba(0,0,0,0.0) 100%, rgba(0,0,0,0) 0%);

    }

    .button-overlay button:nth-child(1):hover {
        color: #ffffff;
        background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    }

    .button-overlay button:nth-child(2):hover {
        color: #ffffff;
        background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    }

    .indicators {
        position: absolute;
        z-index: 1;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        grid-row: 2/3;
    }

    .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        margin: 0 5px;
        transition: all 0.2s ease-in-out;
    }

    .indicator.active {
        background: rgba(255, 255, 255, 0.7);
    }

    .slide-text {
        width: 80%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #e8e8e8;
        font-size: 2rem;
        font-weight: 300;
        opacity: 1;
        z-index: 1;
    }

    .slide-text p {
        font-size: 1.5rem;
        font-weight: 300;
        margin-bottom: 20px;
    }

    .slide-text a {
        color: #ffffff;
        text-decoration: none;
        font-size: 45px;
        margin-bottom: 1rem;
        font-weight: bold;
    }

    .overlay {
        grid-row: 1/2;
        grid-column: 2/3;
    }

    @media screen and (max-width: 768px) {
        
        .slide-text {
            font-size: 1.5rem;
        }

        .slide-text p {
            font-size: 1rem;
        }

        .slide-text a {
            font-size: 30px;
        }
    }
