/* [round 14] webcam lightbox */
html.lbx-open, html.lbx-open body { overflow: hidden; }
.lbx { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 7, 16, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.lbx[hidden] { display: none; }
.lbx.show { opacity: 1; }
.lbx-box { width: min(1280px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; color: var(--text-2, #d5e3f5); }
.lbx-head { display: flex; align-items: center; gap: 14px; }
.lbx-titles { min-width: 0; flex: 1; }
.lbx-head h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.lbx-sub { margin: 2px 0 0; color: var(--muted, #a9bfdc); font-size: 14px; }
.lbx-count { color: var(--muted, #a9bfdc); font-size: 14px; white-space: nowrap; }
.lbx-close, .lbx-nav { flex: none; display: grid; place-items: center; border: 1px solid rgba(61, 206, 246, .35); background: rgba(8, 22, 44, .85); color: #fff; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; }
.lbx-close { width: 44px; height: 44px; }
.lbx-close svg { width: 22px; height: 22px; }
.lbx-close:hover, .lbx-nav:hover { background: rgba(20, 60, 110, .95); border-color: var(--cyan, #3dcef6); }
.lbx-close:focus-visible, .lbx-nav:focus-visible, .lbx-orig:focus-visible { outline: 2px solid var(--cyan, #3dcef6); outline-offset: 2px; }
.lbx-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 0; flex: 1; }
.lbx-fig { position: relative; margin: 0; flex: 1; min-width: 0; display: flex; justify-content: center; }
.lbx-fig img { display: block; max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); width: auto; height: auto; border-radius: 10px; background: #061226; box-shadow: 0 18px 60px rgba(0, 0, 0, .6); border: 1px solid rgba(61, 206, 246, .18); }
.lbx-load { display: none; position: absolute; inset: 0; place-items: center; color: var(--muted, #a9bfdc); font-size: 15px; }
.lbx.is-loading .lbx-load, .lbx.is-error .lbx-load { display: grid; }
.lbx.is-loading .lbx-fig img { opacity: .35; }
.lbx.is-error .lbx-fig img { visibility: hidden; min-height: 200px; }
.lbx-nav { width: 52px; height: 52px; }
.lbx-nav svg { width: 26px; height: 26px; }
.lbx-nav[hidden] { display: none; }
.lbx-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.lbx-kv { display: flex; flex-wrap: wrap; gap: 10px 26px; flex: 1; }
.lbx-kv span { display: flex; flex-direction: column; }
.lbx-kv small { color: var(--muted, #a9bfdc); font-size: 12.5px; }
.lbx-kv b { color: #fff; font-size: 18px; font-weight: 700; }
.lbx-kv em { font-style: normal; color: var(--muted, #a9bfdc); font-size: 12.5px; }
.lbx-kv .lbx-st b { font-size: 15px; font-weight: 600; }
.lbx-orig { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan, #3dcef6); font-size: 13.5px; text-decoration: none; }
.lbx-orig:hover { text-decoration: underline; }
.lbx-orig svg { width: 15px; height: 15px; }
.lbx-orig[hidden] { display: none; }
.fd-cam-img { cursor: zoom-in; }
@media (max-width: 700px) {
  .lbx { padding: 12px 10px; align-items: stretch; }
  .lbx-box { justify-content: center; }
  .lbx-head h2 { font-size: 18px; }
  .lbx-sub { font-size: 13px; }
  .lbx-stage { flex: none; }
  .lbx-fig img { max-height: calc(100dvh - 260px); border-radius: 8px; }
  /* arrows float over the image edges on small screens */
  .lbx-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; background: rgba(4, 12, 26, .7); }
  .lbx-prev { left: 4px; } .lbx-next { right: 4px; }
  .lbx-kv { gap: 8px 18px; }
  .lbx-kv b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lbx { transition: none; } }
