#imageOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#overlayContent {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#overlayImage {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

#closeViewer {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#prevImage, #nextImage {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

#prevImage {
    left: -50px;
}

#nextImage {
    right: -50px;
}

#prevImage:hover, #nextImage:hover, #closeViewer:hover {
    color: #ccc;
}
