a[data-lightbox] { display: block; cursor: zoom-in; }
html.lbx-open { overflow: hidden; }
.lbx { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 16, 18, .96); color: #fff; font: inherit; overflow: hidden; }
.lbx[open] { display: flex; flex-direction: column; }
.lbx::backdrop { background: rgba(12, 16, 18, .96); }
.lbx-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem 0 1.25rem; min-height: 3.5rem; }
.lbx-count { font-size: .85rem; letter-spacing: .04em; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lbx-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .5rem 1rem; }
.lbx-figure { flex: 1; min-width: 0; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.lbx-img { display: block; max-width: 100%; max-height: calc(100% - 2.5rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); transition: opacity .2s ease; user-select: none; -webkit-user-drag: none; }
.lbx.is-loading .lbx-img { opacity: .35; }
.lbx-caption { max-width: 60rem; text-align: center; font-size: .9rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.lbx-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.lbx-btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); }
.lbx-btn:focus-visible, .lbx-thumb:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.lbx-btn svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbx.is-single .lbx-prev, .lbx.is-single .lbx-next { visibility: hidden; }
.lbx-thumbs { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.lbx-thumbs[hidden] { display: none; }
.lbx-thumb { flex: none; width: 5.5rem; height: 3.75rem; padding: 0; border: 2px solid transparent; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.lbx-thumb:first-child { margin-left: auto; }
.lbx-thumb:last-child { margin-right: auto; }
.lbx-thumb:hover { opacity: .9; }
.lbx-thumb[aria-current] { opacity: 1; border-color: #fff; }
.lbx-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .lbx-stage { padding: .25rem 0; gap: 0; }
  .lbx-prev, .lbx-next { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; background: rgba(0, 0, 0, .35); }
  .lbx-prev { left: .5rem; }
  .lbx-next { right: .5rem; }
  .lbx-img { border-radius: 0; max-height: calc(100% - 3rem); }
  .lbx-caption { padding: 0 1rem; font-size: .82rem; }
  .lbx-thumb { width: 4rem; height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lbx-img, .lbx-btn, .lbx-thumb { transition: none; }
}
