.lightbox { position: fixed; inset: 0; z-index: 200; background: #0c0d10; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; align-items: center; gap: 18px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lightbox-title { flex: 1; font: 11.5px/1.4 ui-monospace, Menlo, monospace; color: #a9aeb5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-count { font: 11.5px/1 ui-monospace, Menlo, monospace; color: #7d838b; letter-spacing: .04em; }
.lightbox-close { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox-close:hover { background: #fff; color: #000; }
.lightbox-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; align-items: center; }
.lightbox-body { margin: 0; padding: 18px 0; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; cursor: zoom-in; }
.lightbox-body img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lightbox-nav { background: transparent; border: 0; color: rgba(255,255,255,.6); font-size: 34px; line-height: 1; cursor: pointer; height: 100%; }
.lightbox-nav:hover { color: #fff; background: rgba(255,255,255,.05); }
.lightbox-nav[hidden] { visibility: hidden; display: block; }
.lightbox.is-single .lightbox-stage { grid-template-columns: minmax(0,1fr); }
.lightbox.is-single .lightbox-body { cursor: default; }
@media (max-width: 640px) {
	.lightbox-stage { grid-template-columns: 44px minmax(0,1fr) 44px; }
	.lightbox-nav { font-size: 28px; }
}
