/* DZX5 Glow v1.6.6 stable205 major24 — isolated media rendering fixes. */
/* Latest-image card: hide broken-image alt garbage while runtime retries with no-referrer. */
.dxg-latest3-frame .dxg-latest3-slide img{font-size:0!important;line-height:0!important;color:transparent!important;text-indent:-9999px!important}
.dxg-latest3-frame .dxg-latest3-slide.dxg-latest3-loading{position:relative!important;background:linear-gradient(110deg,rgba(236,243,252,.88) 8%,rgba(255,255,255,.94) 18%,rgba(236,243,252,.88) 33%)!important;background-size:200% 100%!important;animation:dxgMediaShimmer 1.25s linear infinite!important}
.dxg-latest3-frame .dxg-latest3-slide.dxg-latest3-loading img{opacity:0!important}
.dxg-latest3-frame .dxg-latest3-slide.dxg-latest3-media-ready img{opacity:1!important;transition:opacity .18s ease!important}
.dxg-latest3-frame .dxg-latest3-slide.dxg-latest3-media-failed{display:none!important}
@keyframes dxgMediaShimmer{to{background-position-x:-200%!important}}
@media(prefers-reduced-motion:reduce){.dxg-latest3-frame .dxg-latest3-slide.dxg-latest3-loading{animation:none!important}}

/* Threadsort image fields rendered from remote URLs. */
body.pg_viewthread #postlist .typeoption .cgtl td.dx-threadsort-image-cell{padding:0!important;overflow:hidden!important}
body.pg_viewthread #postlist .typeoption .cgtl td .dx-threadsort-image{box-sizing:border-box!important;display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:min(72vh,780px)!important;margin:0!important;border:1px solid rgba(112,139,177,.16)!important;border-radius:14px!important;object-fit:contain!important;background:rgba(247,251,255,.72)!important;box-shadow:0 8px 22px rgba(43,59,84,.06)!important}

/* Bare image URLs in post body become a safe preview; failed remote images fall back to the URL. */
body.pg_viewthread #postlist .dx-post-inline-image-wrap{box-sizing:border-box;display:block;max-width:100%;margin:10px 0}
body.pg_viewthread #postlist .dx-post-inline-image-link{box-sizing:border-box;display:inline-block;max-width:100%;text-decoration:none!important}
body.pg_viewthread #postlist .dx-post-inline-image{box-sizing:border-box;display:block;max-width:100%!important;width:auto!important;height:auto!important;max-height:min(76vh,900px)!important;border:1px solid rgba(112,139,177,.16)!important;border-radius:14px!important;object-fit:contain!important;background:rgba(247,251,255,.72)!important;box-shadow:0 8px 22px rgba(43,59,84,.06)!important}
body.pg_viewthread #postlist .dx-post-inline-image-fallback{display:none;box-sizing:border-box;max-width:100%;padding:10px 12px;border:1px dashed rgba(112,139,177,.26);border-radius:10px;background:rgba(255,255,255,.56);color:#315f9e;overflow-wrap:anywhere;word-break:break-word}
body.pg_viewthread #postlist .dx-post-inline-image-failed .dx-post-inline-image{display:none!important}
body.pg_viewthread #postlist .dx-post-inline-image-failed .dx-post-inline-image-fallback{display:block!important}
@media(max-width:720px){body.pg_viewthread #postlist .typeoption .cgtl td .dx-threadsort-image,body.pg_viewthread #postlist .dx-post-inline-image{width:100%!important;max-height:68vh!important;border-radius:12px!important}}
