/* EPT media240: ordinary photos and albums only. PDF, uploads and messages remain separate. */
html:root body #mainView #messages#messages#messages .ept-photo137{
 width:min(320px,72vw)!important;max-width:100%!important;height:auto!important;
 aspect-ratio:var(--media-ratio240,1.333333)!important;min-height:0!important;
 padding:0!important;border:0!important;border-radius:16px!important;
 background:#e9e9e9!important;box-shadow:none!important;overflow:hidden!important;
}
html:root body #mainView #messages#messages#messages .ept-photo137>.ept-thumb137,
html:root body #mainView #messages#messages#messages .ept-photo137>.ept-meter137{
 inset:0!important;height:100%!important;width:100%!important;background:none!important;
}
html:root body #mainView #messages#messages#messages .ept-photo137>.ept-thumb137>img{
 object-fit:cover!important;image-rendering:auto!important;
}
html:root body #mainView #messages#messages#messages .ept-photo137>.ept-name137,
html:root body #mainView #messages#messages#messages .ept-photo137>.ept-center137[hidden]{display:none!important}
html:root body #mainView #messages#messages#messages .bubble:has(>.ept-photo137){
 padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
 border-radius:16px!important;overflow:hidden!important;position:relative!important;
}
html:root body #mainView #messages#messages#messages > .msg:has(.ept-photo137){position:relative!important}
html:root body #mainView #messages#messages#messages > .msg:has(.ept-photo137) > .stamp{
 align-self:inherit!important;margin-top:2px!important;font-size:10px!important;
}
html:root body #mainView #messages#messages#messages > .album189{
 gap:1px!important;max-width:76%!important;width:min(320px,76vw)!important;background:#fff!important;
 border:0!important;box-shadow:none!important;border-radius:17px!important;
}
html:root body #mainView #messages#messages#messages .album189 .ept-photo137{
 width:100%!important;aspect-ratio:1!important;border-radius:0!important;
}
html:root body #mainView #messages#messages#messages .album189 .ept-album-more237{
 background:#0005!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important;
}
html:root body #mainView #messages#messages#messages .album189 .ept-album-more237 b{font:400 38px/1 system-ui!important}
html:root body #mainView #messages#messages#messages .album189 .ept-album-more237 span{display:none!important}
html:root body #mainView #messages#messages#messages .album189>.msg:not(:nth-child(n+5))>.stamp{
 display:block!important;position:absolute!important;bottom:3px!important;right:4px!important;
 margin:0!important;padding:3px 5px!important;background:linear-gradient(transparent,#0007)!important;
 color:white!important;border:0!important;border-radius:4px!important;font:10px/1.3 system-ui!important;
 pointer-events:none!important;z-index:5!important;
}
html:root body #mainView #messages#messages#messages .album189>.msg>.stamp>span{display:none!important}
html:root body #mainView #messages#messages#messages .album189 .ept-reply225{
 background:#0003!important;backdrop-filter:blur(6px);border:0!important;
}
html:root body #eptMedia137#eptMedia137{background:#fff!important;color:#161616!important;direction:ltr!important}
html:root body #eptMedia137#eptMedia137 header,html:root body #eptMedia137#eptMedia137 footer{
 background:#fafafaee!important;color:#161616!important;flex-basis:72px!important;
 padding:8px 16px!important;gap:14px!important;
}
html:root body #eptMedia137#eptMedia137 button{background:#f6f6f6!important;color:#111!important;width:48px!important;height:48px!important;flex-basis:48px!important;padding:11px!important}
html:root body #eptMedia137#eptMedia137 .media-heading240{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;gap:5px}
html:root body #eptMedia137#eptMedia137 .media-heading240 strong{color:#111!important;font:500 17px/1.3 system-ui!important}
html:root body #eptMedia137#eptMedia137 .media-heading240 small{color:#222!important;font:13px/1.4 system-ui}
html:root body #eptMedia137#eptMedia137 .ept-stage137{background:#fff!important}
html:root body #eptMedia137#eptMedia137 .ept-status137{color:#222!important}
html:root body #eptMedia137#eptMedia137 .media-strip240{
 display:flex;flex:none;gap:3px;align-items:center;justify-content:safe center;
 height:62px;padding:8px 12px;overflow-x:auto;background:#fff;scrollbar-width:none;
 box-sizing:content-box;direction:ltr;min-width:0;
}
html:root body #eptMedia137#eptMedia137 .media-strip240 button{
 flex:0 0 44px!important;width:44px!important;height:56px!important;padding:0!important;
 border-radius:0!important;overflow:hidden!important;background:#e7e7e7!important;
}
html:root body #eptMedia137#eptMedia137 .media-strip240 button.is-current240{
 outline:2px solid #161616!important;outline-offset:2px!important;margin:0 4px!important;
}
html:root body #eptMedia137#eptMedia137 .media-strip240 img{display:block;width:100%;height:100%;object-fit:cover}
html:root body #eptMedia137#eptMedia137 footer{justify-content:space-around!important}
@media(max-width:600px){
 html:root body #eptMedia137#eptMedia137 header{flex-basis:78px!important}
 html:root body #eptMedia137#eptMedia137 footer{flex-basis:76px!important}
 html:root body #eptMedia137#eptMedia137 .media-strip240{height:56px}
}
