img[data-expand-image] { cursor: zoom-in; }
img[data-expand-image]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.image-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: min(1600px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 52px 20px 20px; border: 0; border-radius: 12px; background: #fff; color: #111; overflow: auto; }
.image-lightbox::backdrop { background: rgb(0 0 0 / .82); }
.image-lightbox-content { display: flex; align-items: center; justify-content: center; min-height: 0; }
.image-lightbox-content img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 220px); object-fit: contain; }
.image-lightbox-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f2; color: #111; font: 30px/1 Arial, sans-serif; cursor: pointer; }
.image-lightbox-close:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.image-lightbox-caption { margin: 16px 0 0; text-align: center; font: 13px/1.5 'DM Mono', monospace; }
.image-lightbox-caption:empty { display: none; }
@media (max-width: 760px) { .image-lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 52px 12px 16px; } }

.image-lightbox-navigation { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.image-lightbox-navigation[hidden] { display: none; }
.image-lightbox-navigation button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ddd; border-radius: 50%; background: #f2f2f2; color: #111; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.image-lightbox-navigation button:disabled { opacity: .3; cursor: default; }
.image-lightbox-navigation button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.image-lightbox-position { min-width: 60px; text-align: center; font: 13px/1.5 'DM Mono', monospace; font-variant-numeric: tabular-nums; }
