.jia-overlay[hidden] { display: none !important; }
.jia-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.94); box-sizing: border-box; }
.jia-dialog { width: min(100%, 1100px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; align-items: center; gap: 12px; color: white; font-family: system-ui, sans-serif; }
.jia-topbar { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.jia-label { font-size: 13px; color: #ddd; }
.jia-close { border: 0; border-radius: 50%; background: #444; color: white; width: 44px; height: 44px; font: 30px/1 system-ui,sans-serif; cursor: pointer; }
.jia-image-link { display: flex; min-height: 0; align-items: center; justify-content: center; max-width: 100%; }
.jia-image-link picture { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: calc(100dvh - 155px); }
.jia-image-link img { display: block; max-width: 100%; max-height: calc(100dvh - 155px); width: auto; height: auto; object-fit: contain; }
.jia-continue { border: 1px solid #bbb; border-radius: 6px; background: #fff; color: #111; padding: 12px 24px; font: 600 15px/1.3 system-ui,sans-serif; cursor: pointer; }
.jia-close:focus-visible, .jia-continue:focus-visible, .jia-image-link:focus-visible { outline: 3px solid #ffcb3d; outline-offset: 3px; }
body.jia-lock-scroll { overflow: hidden !important; }
@media (max-width:767px) { .jia-overlay { padding: 12px; } .jia-dialog { max-height: calc(100dvh - 24px); } .jia-image-link picture, .jia-image-link img { max-height: calc(100dvh - 150px); } }
