#composer{flex-wrap:wrap}
.photo-add{flex:0 0 42px;width:42px;height:42px;align-self:flex-end;background:#25392d;color:#c8edcf;border:1px solid #46614d;border-radius:12px;font-size:28px;line-height:1}
.photo-pending,.message-photos{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.photo-preview{position:relative;width:90px;height:90px}
.photo-preview img{width:90px;height:90px;object-fit:cover;border-radius:12px;cursor:pointer}
.photo-preview button{position:absolute;right:2px;top:2px;background:#101716dd;border:0;border-radius:50%;width:28px;height:28px}
.photo-thumb{display:block;padding:0;background:transparent;border:1px solid #46614d;border-radius:12px;overflow:hidden}
.photo-thumb img{display:block;width:140px;height:140px;object-fit:cover}
.message-photos>div{display:flex;flex-direction:column;align-items:start}
.photo-picker,.photo-viewer{background:#14211c;color:#eef2ec;border:1px solid #496052;border-radius:20px;padding:20px;max-width:calc(100vw - 24px);max-height:90dvh}
.photo-picker{width:350px}
.photo-picker button{display:block;width:100%;margin:8px 0;padding:12px;background:#25392d;border:1px solid #46614d;border-radius:10px}
.photo-picker::backdrop,.photo-viewer::backdrop{background:#000a}
.photo-viewer img{display:block;max-width:100%;max-height:75dvh;object-fit:contain}
.photo-viewer>button{display:block;margin-left:auto;background:transparent;border:0;padding:10px}
@media(max-width:480px){#composer #text{flex-basis:100%;width:100%}.photo-add{margin-right:auto}.photo-thumb img{width:110px;height:110px}}
