/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Apr 14 2026 | 04:20:38 */
/* ==========================================
   LIGHTBOX / FULLSCREEN IMAGE PREVIEW
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
  right: max(20px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0.9;
  z-index: 10000;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-caption {
  position: fixed;
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  z-index: 10000;
  max-width: 85vw;
  width: auto;
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0.85;
  z-index: 10000;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-nav iconify-icon,
.lightbox-nav svg {
  width: 28px;
  height: 28px;
}

.lightbox-prev {
  left: 20px;
  left: max(20px, env(safe-area-inset-left));
}

.lightbox-next {
  right: 20px;
  right: max(20px, env(safe-area-inset-right));
}

.lightbox-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Lightbox Counter */
.lightbox-counter {
  position: fixed;
  top: 20px;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  z-index: 10000;
  pointer-events: none;
}

/* Odcięcie przycisków lightboxa od globalnych stylów motywu (zielonej poświaty i marginesów) */
#lightbox button.lightbox-nav,
#lightbox button.lightbox-close,
#lightbox button.lightbox-nav:hover,
#lightbox button.lightbox-close:hover {
  /* Wymuszamy nasz własny, neutralny cień i usuwamy zielony z motywu */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  
  /* Resetujemy marginesy, które motyw dodaje do przycisków - to naprawi uciekanie ze środka na telefonie */
  margin: 0 !important;
  
  /* Na wszelki wypadek usuwamy ewentualne obramowanie/outline */
  outline: none !important;
  border: none !important;
}

/* Gwarancja, że strzałki (SVG) będą idealnie na środku ciemnego koła */
#lightbox button.lightbox-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}