.viewing-media { overflow: hidden; }
.media-viewer { box-sizing: border-box; width: min(calc(100% - 1.25rem), 26rem); max-height: calc(100vh - 1.25rem); max-height: calc(100dvh - 1.25rem); color: #fff; background: #151612; font-family: var(--body); padding: .55rem; border: 1px solid #626456; border-radius: .7rem; overflow: auto; }
.media-viewer::backdrop { background: #0b0c09eb; }
.media-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .2rem .4rem; }
.media-header h2 { margin: 0; color: #fff; font: 620 1rem/1.3 var(--body); text-transform: none; letter-spacing: 0; }
.media-header button { border: 1px solid #747766; color: #fff; background: #282a23; font: 650 .92rem/1 var(--body); border-radius: .35rem; min-height: 44px; padding-inline: .7rem; cursor: pointer; }
#media-body > * { display: block; width: 100%; height: min(72vh,43rem); height: min(77dvh,43rem); border: 0; object-fit: contain; background: #10110e; }
#media-body iframe { aspect-ratio: 9/16; }
#media-body > .video-fallback { height: auto; min-height: 44px; padding: 1rem; color: white; text-decoration: underline; }
