/* Render from the original at its current layout size, without a scaled layer. */
:is(.kw-gallery-dialog-view, .kl-viewer-view) img {
    position: absolute;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
    object-fit: contain;
}

.kw-gallery-original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #ccd5db;
    border-radius: 25px;
    color: #805638;
    background: #fff;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
}

/* Pointer/touch restoration must not look like a selected blue image frame. */
[data-kw-pointer-focus]:focus,
[data-kw-pointer-focus]:focus-visible {
    outline: none !important;
}

/* Keyboard focus remains clearly visible and follows the site's warm palette. */
:is(.kw-gallery-stage, .kw-gallery-open, #kl-enlarge, .kl-stage, .kw-gallery-original):focus-visible {
    outline: 3px solid #98643f;
    outline-offset: 3px;
}
