dialog {
    width: calc(100% - 100px);
    max-width: 100%;
    margin: auto;
}

.dialog-close-button + .card > .card-header {
    padding-right: 3rem !important;
}

/*
 * A max-* class keeps the gutter tight at every screen width. Below its maximum it is the width
 * that bounds the dialog and the maximum never comes into play, so on a phone the class decides
 * nothing but how much room is left beside it. A dialog without a max-* class keeps the wider
 * gutter of the rule at the top of this file.
 */
dialog.max-1800 {
    max-width: 1800px;
    width: calc(100% - 10px);
}
dialog.max-1200 {
    max-width: 1200px;
    width: calc(100% - 10px);
}
dialog.max-1000 {
    max-width: 1000px;
    width: calc(100% - 10px);
}
dialog.max-800 {
    max-width: 800px;
    width: calc(100% - 10px);
}
dialog.max-600 {
    max-width: 600px;
    width: calc(100% - 10px);
}
dialog.max-500 {
    max-width: 500px;
    width: calc(100% - 10px);
}
dialog.max-400 {
    max-width: 400px;
    width: calc(100% - 10px);
}
