/* C2: public photos and protected media share a single contained viewer. */
.ddwc-profile-workflow dialog.pw-preview-dialog.ddwc-media-dialog,
dialog.ddwc-media-dialog {
 box-sizing:border-box;width:min(1100px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px);max-height:90dvh;margin:auto;padding:24px;border:1px solid #c6dbe6;border-radius:16px;background:#fff;color:#0a3553;overflow:hidden;
}
.ddwc-profile-workflow dialog.ddwc-media-dialog[open],dialog.ddwc-media-dialog[open] { display:grid;grid-template-rows:44px minmax(0,1fr);gap:8px; }
dialog.ddwc-media-dialog::backdrop { background:rgba(10,53,83,.65); }
.ddwc-profile-workflow dialog.ddwc-media-dialog>.ddwc-media-close,
dialog.ddwc-media-dialog>.ddwc-media-close { position:static;justify-self:end;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:8px;background:transparent;color:#526d7c;transform:none; }
dialog.ddwc-media-dialog>.ddwc-media-close svg { display:block;width:24px;height:24px; }
.ddwc-profile-workflow dialog.ddwc-media-dialog>.ddwc-media-content,
dialog.ddwc-media-dialog>.ddwc-media-content { display:grid;place-items:center;min-width:0;min-height:0;width:100%;max-height:calc(90dvh - 102px);margin:0;padding:0;border:0;background:transparent;overflow:auto; }
.ddwc-profile-workflow dialog.ddwc-media-dialog>.ddwc-media-content>img,
.ddwc-profile-workflow dialog.ddwc-media-dialog>.ddwc-media-content>video,
dialog.ddwc-media-dialog>.ddwc-media-content>:is(img,video) { display:block;position:static;flex:none;width:auto;height:auto;min-width:0;min-height:0;max-width:100%;max-height:calc(90dvh - 102px);margin:auto;object-fit:contain;object-position:center; }
.ddwc-profile-workflow dialog.ddwc-media-dialog>.ddwc-media-content>iframe,
dialog.ddwc-media-dialog>.ddwc-media-content>iframe { width:100%;height:calc(90dvh - 102px);border:0; }
.ddwc-gallery a { cursor:zoom-in; }
.ddwc-gallery a:focus-visible { outline:2px solid #0877a6;outline-offset:3px; }
