#imageOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 500;
    overflow: auto;
}

#imageContainer {
    position: fixed;
    width: 66vmax;
    top: 5vmin; 
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 750;
    background-color: white;
    padding: 10px;
    box-sizing: border-box;
}

#closeBtn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #83e8ff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 1001;
}

#closeBtn:hover {
    background-color: #ff6666;
}

#displayedImage {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}