/* ============================================================
   LavaBlobMorph80 v1.0 — Stylesheet
   ============================================================ */

/* ── Wrapper ── */
.lbm80-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  border-radius: 4px;
  background: var(--lbm80-fluid, #0a0a14);
  height: var(--lbm80-h-desktop, 560px);
}

@media (max-width: 1024px) {
  .lbm80-wrapper { height: var(--lbm80-h-tablet, 420px); }
}
@media (max-width: 767px) {
  .lbm80-wrapper { height: var(--lbm80-h-mobile, 300px); }
}

/* ── Canvas ── */
.lbm80-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: crosshair;
}

/* ══════════════════════════════════════════════════
   CAPTION
══════════════════════════════════════════════════ */
.lbm80-caption-wrap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  padding: 0 24px;
}

.lbm80-caption-text {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(10, 10, 20, 0.65);
  backdrop-filter: blur(6px);
  color: rgba(255, 200, 140, 0.95);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(232, 120, 30, 0.25);
  max-width: 75%;
  text-shadow: 0 0 12px rgba(232, 80, 20, 0.5);
}

/* ══════════════════════════════════════════════════
   BLOB NAVIGATION
══════════════════════════════════════════════════ */
.lbm80-blob-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 15;
}

.lbm80-blob-dot {
  width: 12px;
  height: 12px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(232, 100, 30, 0.35);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  /* Organic blob shape via border-radius */
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  animation: lbm80-blob-idle 3s ease-in-out infinite;
}

.lbm80-blob-dot:nth-child(2n) { animation-delay: -1.1s; }
.lbm80-blob-dot:nth-child(3n) { animation-delay: -2.3s; }

@keyframes lbm80-blob-idle {
  0%,100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; transform: scale(1); }
  33%      { border-radius: 45% 55% 40% 60% / 55% 40% 65% 35%; transform: scale(1.08); }
  66%      { border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%; transform: scale(0.95); }
}

.lbm80-blob-dot.active {
  background: rgba(232, 80, 20, 0.9);
  box-shadow: 0 0 10px rgba(232, 80, 20, 0.6), 0 0 20px rgba(232, 80, 20, 0.25);
  transform: scale(1.4);
  border-radius: 50%;
  animation: lbm80-blob-active 2s ease-in-out infinite;
}

@keyframes lbm80-blob-active {
  0%,100% { border-radius: 55% 45% 60% 40% / 50% 55% 45% 55%; box-shadow: 0 0 10px rgba(232,80,20,.6),0 0 20px rgba(232,80,20,.25); }
  50%      { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; box-shadow: 0 0 14px rgba(232,80,20,.8),0 0 28px rgba(232,80,20,.35); }
}

.lbm80-blob-dot:hover {
  background: rgba(232, 100, 30, 0.65);
  transform: scale(1.2);
}

/* ══════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════ */
.lbm80-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 3, 8, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.lbm80-lightbox.open {
  display: flex;
  animation: lbm80-lb-in 0.3s ease;
}

@keyframes lbm80-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lbm80-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow:
    0 8px 48px rgba(0,0,0,0.7),
    0 0 40px rgba(232, 80, 20, 0.08);
  border: 1px solid rgba(232, 100, 30, 0.12);
}

.lbm80-lb-close,
.lbm80-lb-prev,
.lbm80-lb-next {
  position: absolute;
  border: 1px solid rgba(232,100,30,0.2);
  background: rgba(10,5,2,0.6);
  color: rgba(255,180,80,0.85);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(4px);
}

.lbm80-lb-close:hover,
.lbm80-lb-prev:hover,
.lbm80-lb-next:hover {
  background: rgba(232,80,20,0.25);
  box-shadow: 0 0 12px rgba(232,80,20,0.3);
}

.lbm80-lb-close { top: 16px; right: 20px; }
.lbm80-lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lbm80-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lbm80-lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,180,80,0.55);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
