html.mawu-viewing-image { overflow: hidden; }
.mawu-image-viewer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(3.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border: 0;
    background: #171611;
    color: #fff9ec;
    overflow: hidden;
}
.mawu-image-viewer[open] { display: grid; place-items: center; }
.mawu-image-viewer [hidden] { display: none; }
.mawu-image-viewer img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; }
.mawu-image-close {
    position: absolute;
    inset: max(.65rem, env(safe-area-inset-top)) max(.65rem, env(safe-area-inset-right)) auto auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #f7eed399;
    border-radius: 50%;
    background: #28241d;
    color: inherit;
    font: 400 1.9rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.mawu-image-close:hover { background: #4b4233; }
