/* ─────────────────────────────────────────────
   Neural Network Gallery11 – Styles
──────────────────────────────────────────────── */

/* Wrapper */
.nng11-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #03071e;
  display: block;
}

/* Canvas */
.nng11-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}

/* ── Loader ── */
.nng11-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #03071e;
  color: #00d4ff;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .6s ease;
  z-index: 10;
}

.nng11-loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 212, 255, .15);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: nng11-spin 1s linear infinite;
}

@keyframes nng11-spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────
   LIGHTBOX
──────────────────────────────────────────────── */
.nng11-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.nng11-lightbox.nng11-lb-active {
  opacity: 1;
  pointer-events: all;
}

/* Backdrop */
.nng11-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 16, .92);
  backdrop-filter: blur(6px);
}

/* Inner */
.nng11-lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}

/* Image wrap */
.nng11-lb-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0, 212, 255, .25), 0 0 120px rgba(123, 47, 255, .15);
}

.nng11-lb-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .3s;
}

/* Controls */
.nng11-lb-close,
.nng11-lb-prev,
.nng11-lb-next {
  position: absolute;
  background: rgba(0, 212, 255, .12);
  border: 1px solid rgba(0, 212, 255, .3);
  color: #00d4ff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 2;
}

.nng11-lb-close:hover,
.nng11-lb-prev:hover,
.nng11-lb-next:hover {
  background: rgba(0, 212, 255, .3);
  transform: scale(1.1);
}

.nng11-lb-close {
  top: -56px;
  right: 0;
}

.nng11-lb-prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

.nng11-lb-next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

.nng11-lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.nng11-lb-next:hover { transform: translateY(-50%) scale(1.1); }

.nng11-lb-counter {
  margin-top: .75rem;
  color: rgba(0, 212, 255, .7);
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  letter-spacing: .12em;
}

/* ── Lightbox themes ── */

/* Glassmorphism */
.nng11-lb-glass .nng11-lb-image-wrap {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px);
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}
.nng11-lb-glass .nng11-lb-backdrop {
  backdrop-filter: blur(14px);
  background: rgba(2, 5, 16, .75);
}

/* Minimal */
.nng11-lb-minimal .nng11-lb-backdrop {
  background: rgba(0, 0, 0, .97);
  backdrop-filter: none;
}
.nng11-lb-minimal .nng11-lb-image-wrap {
  box-shadow: none;
}
.nng11-lb-minimal .nng11-lb-close,
.nng11-lb-minimal .nng11-lb-prev,
.nng11-lb-minimal .nng11-lb-next {
  background: transparent;
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nng11-lb-prev { left: 4px; }
  .nng11-lb-next { right: 4px; }
  .nng11-lb-close { top: -48px; right: 4px; }
  .nng11-lb-inner { max-width: 96vw; }
  .nng11-lb-image-wrap { max-height: 70vh; }
}

@media (max-width: 480px) {
  .nng11-lb-prev,
  .nng11-lb-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
