/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Lightbox Content */
.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

/* Lightbox Image */
#lightbox-img {
    width: auto;
    height: 90vh; /* Set height to 90% of viewport height */
    max-width: 100%;
    max-height: 80vh; /* Ensure the image doesn't exceed the viewport height */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain; /* Ensure the image is contained within the lightbox */
}

/* Navigation Buttons */
.lightbox-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%); /* Center vertically */
    padding: 0 20px; /* Optional: Add some padding from the edges */
}

button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 36px;
    cursor: pointer;
}