/* Original proportions in both chat and small gallery previews. */
body .photo-card23.photo-card24{width:fit-content!important;max-width:100%!important}
body .photo-frame23.photo-frame24{width:min(68vw,var(--preview-width45,270px))!important;min-width:0!important;min-height:105px!important;height:auto!important;aspect-ratio:auto!important}
body .photo-frame23.photo-frame24.has-aspect45{min-height:0!important;aspect-ratio:var(--preview-ratio45)!important}
body .photo-frame23.photo-frame24>img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
body .v44-video-preview{width:min(68vw,var(--preview-width45,270px))!important;max-width:100%!important;aspect-ratio:16/9!important;min-height:0!important;padding:0!important;display:block!important}
body .v44-video-preview.has-aspect45{aspect-ratio:var(--preview-ratio45)!important}
body .v44-video-preview img{position:static!important;display:block;width:100%!important;height:auto!important;object-fit:contain!important}
body .v44-video-preview>span{position:absolute!important;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}
body .v44-video-preview>span:last-child{top:auto;bottom:9px;transform:translateX(-50%);white-space:nowrap}
body .v44-media-grid button{align-self:start}
body .v44-media-grid button.has-aspect45{aspect-ratio:var(--preview-ratio45)}
body .v44-media-grid img{object-fit:contain}
/* The notice remains readable while freeing more space for messages. */
body .room-screen23 .jp39-notice{margin:1px 8px 2px!important;width:calc(100% - 16px)!important;padding:7px 9px!important;min-height:42px!important;gap:7px!important;border-radius:10px!important;box-shadow:none!important}
body .jp39-notice .v36-pinned-copy strong{line-height:1.4!important}
/* Pin is revealed on the left. Leave stays on the right. */
.swipe-pin45{position:absolute;left:20px;top:50%;margin-top:-27px;width:56px;height:54px;border:1px solid #bed3c5;border-radius:18px;background:#e3eee7;color:#111!important;font-size:12px;font-weight:700;opacity:0;pointer-events:none}
body .swipe-row27>.swipe-inner27{position:relative;z-index:1;background:#fff}
body .swipe-row27>.swipe-pin45{z-index:0}
body #modalbox:has(.v41-room-menu){touch-action:pan-y}
