/* Shared look for the grim artwork pages: centred, images never wider than
   the screen, a quiet date in the board font. artwork.js adds the zoom viewer. */
html { background: #fff; }
body {
    margin: 0;
    padding: 28px 16px 40px;
    text-align: center;
    /* The boards ask for dotum (gg/css/default.css). Where dotum is missing, they show the
       system Korean sans font, so name those too: the date then matches the boards. */
    font-family: dotum, "돋움", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #555;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* Images shown smaller than their real size can be zoomed. */
.artwork-zoomable { position: relative; display: inline-block; max-width: 100%; }
.artwork-zoomable img { cursor: zoom-in; }
.artwork-zoom-hint {
    position: absolute; right: 10px; bottom: 10px;
    width: 34px; height: 34px; padding: 0;
    border: 1px solid #cfe3e0; border-radius: 4px; background: #fff;
    color: #2e8b7f;
    cursor: zoom-in;
}
.artwork-zoom-hint svg, .artwork-viewer button svg { display: block; margin: auto; }

/* Full-screen viewer. Controls match the goober board buttons:
   white, pale teal border, 4px corners, dark teal icons, no shadows. */
.artwork-viewer {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
}
.artwork-viewer[hidden] { display: none; }
.artwork-viewer-scroll {
    position: absolute; inset: 0; overflow: auto;
    display: flex; -webkit-overflow-scrolling: touch;
}
.artwork-viewer-scroll img {
    flex: none; margin: auto; max-width: none;
    cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.artwork-viewer.is-zoomed .artwork-viewer-scroll img { cursor: grab; }
.artwork-viewer.is-dragging .artwork-viewer-scroll img { cursor: grabbing; }
.artwork-viewer-bar {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px; padding: 4px;
    border: 1px solid #cfe3e0; border-radius: 4px; background: #fff;
}
.artwork-viewer button {
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px;
    background: transparent; color: #24524c; cursor: pointer;
}
.artwork-viewer button:hover { background: #eef5f4; }
.artwork-viewer button:disabled { opacity: 0.3; cursor: default; background: transparent; }
.artwork-viewer button:focus-visible, .artwork-zoom-hint:focus-visible { outline: 2px solid #2e8b7f; outline-offset: 2px; }
.artwork-viewer-level { min-width: 48px; font-size: 13px; letter-spacing: 0; color: #24524c; }
.artwork-viewer-close {
    position: absolute; top: 14px; right: 14px;
    border: 1px solid #cfe3e0 !important; background: #fff !important;
}
