#custom-modal {
    position: fixed;
    inset: 0;
    border: none;
    border-radius: 10px;
    padding: 0;
    /* width: min(960px, calc(100vw - 32px));
    max-width: 960px; */
     width: min(1200px, calc(100vw - 32px));
    max-width: 1200px;
    height: min(80vh, 900px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    margin: auto;
}

#custom-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

#custom-modal[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 10px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

#close-modal {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
}

.modal-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 16px;
    background: #fff;
}

#modal-iframe {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    display: block;
    border: none;
}
