/* GoinLabs cinematic picture viewer */
img.lb-able { cursor: zoom-in; }
.lb-wrap { position: relative; }
.lb-exp { position: absolute; right: 10px; bottom: 10px; z-index: 5; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: zoom-in;
  color: #cfeaff; background: rgba(5,11,26,.72); border: 1px solid rgba(30,167,245,.55); backdrop-filter: blur(6px); opacity: .0; transform: scale(.9); transition: opacity .25s, transform .25s, box-shadow .25s; }
.lb-wrap:hover .lb-exp, .lb-exp:focus-visible { opacity: 1; transform: none; }
.lb-exp:hover { box-shadow: 0 0 18px rgba(30,167,245,.7); }
@media (hover: none) { .lb-exp { opacity: .9; transform: none; } }
.lb-exp svg, .lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lb-root { position: fixed; inset: 0; z-index: 99999; display: none; color: #e8f4ff; font-family: inherit; }
.lb-root.on { display: block; }
.lb-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(ellipse at 50% 40%, rgba(14,48,96,.55), rgba(2,6,16,.94) 62%), rgba(2,6,16,.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.lb-bg::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(30,167,245,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(30,167,245,.07) 1px, transparent 1px); background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.lb-bg::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(30,167,245,.14), transparent); animation: lbscan 5.5s linear infinite; }
@keyframes lbscan { to { transform: translateY(calc(100vh + 240px)); } }
.lb-root.show .lb-bg { opacity: 1; }

.lb-stage { position: absolute; inset: 64px 70px 74px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-fig { position: relative; margin: 0; max-width: 100%; max-height: 100%; will-change: transform; transform-origin: 0 0; }
.lb-img { display: block; max-width: calc(100vw - 140px); max-height: calc(100vh - 138px); width: auto; height: auto; border-radius: 10px; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 1px rgba(120,200,255,.35), 0 0 60px rgba(30,167,245,.35), 0 30px 90px rgba(0,0,0,.7); }
.lb-root.zoomed .lb-stage { cursor: grab; } .lb-root.zoomed.drag .lb-stage { cursor: grabbing; }
.lb-root:not(.zoomed) .lb-img { cursor: zoom-in; }
.lb-fig.lb-in { animation: lbpop .55s cubic-bezier(.2,.9,.2,1) both; }
.lb-fig.lb-swap { animation: lbswap .35s ease both; }
@keyframes lbpop { from { opacity: 0; transform: scale(.86) translateY(14px); filter: blur(6px) brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lbswap { from { opacity: 0; filter: blur(5px) brightness(1.4); } to { opacity: 1; filter: none; } }
.lb-fig::after { content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(150,220,255,.38) 50%, transparent 65%); background-size: 250% 100%; }
.lb-fig.lb-in::after, .lb-fig.lb-swap::after { animation: lbsheen .9s ease .1s both; }
@keyframes lbsheen { from { opacity: 1; background-position: 120% 0; } to { opacity: 0; background-position: -60% 0; } }

.lb-hud { position: absolute; inset: 0; pointer-events: none; }
.lb-corner { position: absolute; width: 38px; height: 38px; border: 2px solid rgba(30,167,245,.85); opacity: 0; transition: opacity .5s .15s, transform .5s .15s; filter: drop-shadow(0 0 6px rgba(30,167,245,.8)); }
.lb-corner.tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; transform: translate(14px,14px); }
.lb-corner.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; transform: translate(-14px,14px); }
.lb-corner.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; transform: translate(14px,-14px); }
.lb-corner.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; transform: translate(-14px,-14px); }
.lb-root.show .lb-corner { opacity: 1; transform: none; }

.lb-top, .lb-bot { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 0 74px; pointer-events: none; opacity: 0; transition: opacity .5s .2s; }
.lb-top { top: 22px; justify-content: space-between; } .lb-bot { bottom: 20px; justify-content: space-between; }
.lb-root.show .lb-top, .lb-root.show .lb-bot { opacity: 1; }
.lb-count { font: 600 .8rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .18em; color: #7fd0ff; text-shadow: 0 0 10px rgba(30,167,245,.8); }
.lb-count::before { content: "◤ "; opacity: .7; }
.lb-cap { flex: 1; text-align: center; font-size: .95rem; color: #cfe6f7; text-shadow: 0 2px 12px #000; max-width: 70ch; margin: 0 auto; }
.lb-tools { display: flex; gap: 8px; pointer-events: auto; }
.lb-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: #cfeaff; background: rgba(8,20,44,.7); border: 1px solid rgba(30,167,245,.5); transition: box-shadow .2s, background .2s, transform .2s; pointer-events: auto; padding: 0; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(30,167,245,.25); box-shadow: 0 0 18px rgba(30,167,245,.75); transform: translateY(-1px); outline: none; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; z-index: 3; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-root.single .lb-nav, .lb-root.single .lb-count { display: none; }
body.lb-lock { overflow: hidden; }
@media (max-width: 700px) {
  .lb-stage { inset: 58px 8px 70px; } .lb-img { max-width: calc(100vw - 16px); max-height: calc(100vh - 130px); }
  .lb-top, .lb-bot { padding: 0 14px; } .lb-nav { top: auto; bottom: 14px; margin-top: 0; } .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-cap { font-size: .8rem; } .lb-bot { padding: 0 72px; bottom: 24px; } .lb-corner { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-bg::after { display: none; } .lb-fig.lb-in, .lb-fig.lb-swap, .lb-fig.lb-in::after, .lb-fig.lb-swap::after { animation: none !important; }
  .lb-bg, .lb-corner, .lb-top, .lb-bot { transition: none !important; }
}
