#zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999 !important; /* Higher than Lightbox */
}
#osd-viewer {
    width: 100%;
    height: 100%;
}

.custom-controls, #close-zoom {
    position: absolute;
    z-index: 1000001 !important;
    display: block !important;
}

/* The 'X' Close Button */
#close-zoom {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000001 !important;
}

#close-zoom:hover {
    color: #ccc;
}

/* The actual container where OpenSeadragon draws the image */
#osd-viewer {
    width: 100%;
    height: 100%;
}

/* Change cursor on main image to show it can be clicked */
#main-art-image {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

#main-art-image:hover {
    opacity: 0.8;
}

/* Custom Control Container */
.custom-controls {
    position: absolute;
    bottom: 40px;
    right: 30px;
    display: flex;
    flex-direction: column; /* This forces vertical stacking */
    gap: 10px; /* Space between buttons */
    z-index: 1000001 !important;
}

.custom-controls button {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: none;
    background: white;
    color: black;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-controls button:hover {
    background:rgb(124, 0, 0);
    color: #fff;
    transform: scale(1.1);
}

/* Hide the default OpenSeadragon buttons */
.openseadragon-container .nav-container, 
.osd-navigation-control {
    display: none !important;
}