.spotlight-image-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 75%;
    height: 75%;
    background: rgba(77, 77, 74, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.spotlight-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spotlight-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}


#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    background: rgba(77, 77, 74, 0.5);
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    z-index: 1001;
    transition: background 0.3s ease;
}

#closeButton:hover {
    background: rgb(233,233,232, .5);
}

.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5em;
    color: #fff;
    background: rgba(77, 77, 74, 0.5);
    border: none;
    padding: 0.5em;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1001;
    transition: background 0.3s ease;
}

.arrow-left:hover, .arrow-right:hover {
    background: rgb(233,233,232, .5);
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}


@media (max-width: 768px) {
    #closeButton {
        font-size: 1.5em;
        top: 5px;
        right: 5px;
        padding: 0.3em 0.5em;
    }

    .arrow-left, .arrow-right {
        font-size: 2em;
        padding: 0.3em;
    }

    .arrow-left {
        left: 5px;
    }

    .arrow-right {
        right: 5px;
    }

    .spotlight-image-container {
        height: 60%; 
    }

    .spotlight-image-wrapper img {
        max-height: 80%; 
    }

    .spotlight-image-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #closeButton {
        font-size: 1.2em;
        top: 2px;
        right: 2px;
        padding: 0.2em 0.4em;
    }

    .arrow-left, .arrow-right {
        font-size: 1.5em;
        padding: 0.2em;
    }

    .arrow-left {
        left: 2px;
    }

    .arrow-right {
        right: 2px;
    }

    /* Further reduce height for spotlight on mobile */
    .spotlight-image-container {
        height: 50%; /* Further reduce vertical space on small screens */
    }

    .spotlight-image-wrapper img {
        max-height: 70%; /* Adjust the image height accordingly */
    }

    .spotlight-image-container {
        display: none !important;
    }
}

