body.image-lightbox-open { overflow: hidden; }
[data-lightbox] { cursor: pointer; }
button.sponsor-frame { padding: 0; border: 0; background: transparent; }
.image-lightbox { width: min(1280px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.image-lightbox::backdrop { background: rgb(0 0 0 / .88); }
.image-lightbox header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.image-lightbox h2 { margin: 0 auto 0 0; font-size: 17px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.image-lightbox button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 24px/1 var(--font-sans); cursor: pointer; }
.image-lightbox button:hover { border-color: var(--accent); }
.image-lightbox button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.image-lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; margin: 0 auto; }
.image-lightbox footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 14px; }
.image-lightbox footer p { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.image-lightbox footer a { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.image-lightbox-status { text-align: center; color: var(--mid); }
.image-lightbox [hidden] { display: none; }
@media (max-width: 700px) {
  .image-lightbox { width: calc(100% - 20px); padding: 10px; max-height: calc(100dvh - 20px); }
  .image-lightbox header { gap: 6px; }
  .image-lightbox h2 { font-size: 15px; }
  .image-lightbox img { max-height: calc(100dvh - 190px); }
}
