/* Original GoboSource white veil and unframed image zoom. */
dialog.gs-image-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    cursor: zoom-out;
}
dialog.gs-image-viewer::backdrop { background: transparent; }
dialog.gs-image-viewer .gs-image-viewer-image {
    display: block;
    position: fixed;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    transform-origin: top left;
    cursor: zoom-out;
}
dialog.gs-image-viewer .gs-image-viewer-close {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font: 28px/36px Arial, sans-serif;
    cursor: zoom-out;
    transition: color 0.4s;
}
dialog.gs-image-viewer .gs-image-viewer-close:hover { color: #000; }
dialog.gs-image-viewer .gs-image-viewer-close:focus-visible { outline: 2px solid #2696ff; }
@media (prefers-reduced-motion: reduce) {
    dialog.gs-image-viewer .gs-image-viewer-close { transition: none; }
}
