.regelchat-image-preview {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    max-width: 100%;
}

.regelchat-image-preview img {
    display: block;
    max-width: min(200px, 100%);
    max-height: 140px;
    object-fit: contain;
    border-radius: 8px;
}

.regelchat-image-dialog {
    position: fixed;
    border: 0;
    padding: 8px;
    border-radius: 12px;
    max-width: 94vw;
    max-height: 94vh;
    line-height: 0;
    background: #fff;
}

.regelchat-image-dialog::backdrop {
    background: #14272bdd;
}

.regelchat-image-dialog img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
}

.regelchat-image-dialog button {
    position: absolute;
    top: 9px;
    right: 9px;
    border: 0;
    background: #fff;
    color: #172c3a;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font: 600 24px/1 system-ui, sans-serif;
    cursor: pointer;
}
