.chat-media-trigger{position:relative;display:block;max-width:100%;margin-top:8px;padding:0;overflow:hidden;border:1px solid rgba(32,53,31,.16);border-radius:7px;background:#f3f5f1;cursor:zoom-in;line-height:0}
.chat-media-trigger img,.chat-media-trigger video{display:block;width:auto;max-width:100%;height:auto;max-height:280px;margin:0!important;border-radius:0!important;background:#111;object-fit:contain!important}
.chat-media-trigger:focus-visible{outline:3px solid rgba(45,95,37,.3);outline-offset:2px}
.chat-media-trigger.is-video{cursor:pointer}
.chat-media-play{position:absolute;left:50%;top:50%;display:grid;width:48px;height:48px;place-items:center;border:1px solid rgba(255,255,255,.65);border-radius:50%;background:rgba(16,32,18,.78);color:#fff;font-size:18px;line-height:1;transform:translate(-50%,-50%);pointer-events:none}
.chat-media-viewer{position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:24px;background:rgba(9,17,10,.88);backdrop-filter:blur(4px)}
.chat-media-viewer[hidden]{display:none}
.chat-media-viewer-stage{position:relative;width:min(1120px,100%);height:calc(100dvh - 48px);max-height:1100px;min-width:0;min-height:0;overflow:hidden}
.chat-media-viewer-content{position:absolute;inset:0;min-width:0;min-height:0;overflow:hidden}
.chat-media-viewer-content img,.chat-media-viewer-content video{position:absolute;inset:0;display:block;width:auto;height:auto;max-width:100%;max-height:100%;margin:auto;border-radius:8px;background:#0b0d0b;box-shadow:0 18px 60px rgba(0,0,0,.35);object-fit:contain}
.chat-media-viewer-close{position:absolute;z-index:2;right:8px;top:8px;display:grid;width:44px;height:44px;place-items:center;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(0,0,0,.68);color:#fff;font-size:27px;line-height:1;cursor:pointer}
.chat-media-viewer-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
body.chat-media-viewer-open{overflow:hidden}
@media(max-width:640px){.chat-media-viewer{padding:12px}.chat-media-viewer-stage{height:calc(100dvh - 24px)}.chat-media-viewer-close{right:4px;top:4px}}
