html.press-media-open { overflow: hidden; }
.press-media-dialog:not([open]) { display: none; }
.press-media-dialog {
    width: min(960px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #111;
}
.press-media-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.press-media-dialog__heading { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.press-media-dialog__heading h2 { flex: 1; margin: 0; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.press-media-dialog__close { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #aaa; border-radius: 50%; background: #fff; color: #111; font-size: 30px; cursor: pointer; }
.press-media-dialog__close:focus-visible, .press-media-dialog__help a:focus-visible { outline: 3px solid #333; outline-offset: 3px; }
.press-media-dialog__player { width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.press-media-dialog__player iframe, .press-media-dialog__player video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.press-media-dialog__help { margin: 16px 0 0; font-size: 14px; line-height: 1.5; }
.press-media-dialog__help a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) {
    .press-media-dialog { padding: 12px; }
    .press-media-dialog__heading { gap: 12px; }
    .press-media-dialog__heading h2 { font-size: 17px; }
}
