/* ============================================================
   FISHING GALLERY PRO - Lightbox Stylesheet
   ============================================================ */

/* ---- OVERLAY ---- */
.fgp-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 28, 0.96);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(4px);
}

.fgp-lightbox-overlay.fgp-lb-active {
  opacity: 1;
  visibility: visible;
}

/* ---- CONTAINER ---- */
.fgp-lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fgpLbIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes fgpLbIn {
  from { opacity: 0; transform: scale(0.88) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fgpLbOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.88); }
}

/* ---- IMAGE WRAPPER ---- */
.fgp-lb-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 80vh;
}

.fgp-lb-image-wrap img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
  transition: opacity 0.3s ease;
}

/* Transition effects */
.fgp-lb-zoom-enter  { animation: fgpLbZoomIn  0.4s ease both; }
.fgp-lb-fade-enter  { animation: fgpLbFadeIn  0.3s ease both; }
.fgp-lb-slide-enter { animation: fgpLbSlideIn 0.4s ease both; }
.fgp-lb-slide-prev  { animation: fgpLbSlidePrev 0.4s ease both; }

@keyframes fgpLbZoomIn    { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes fgpLbFadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes fgpLbSlideIn   { from { opacity:0; transform:translateX(80px); } to { opacity:1; transform:translateX(0); } }
@keyframes fgpLbSlidePrev { from { opacity:0; transform:translateX(-80px); } to { opacity:1; transform:translateX(0); } }

/* ---- CONTROLS: PREV / NEXT ---- */
.fgp-lb-prev,
.fgp-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.25s ease;
  z-index: 10;
}

.fgp-lb-prev { left: -70px; }
.fgp-lb-next { right: -70px; }

.fgp-lb-prev:hover,
.fgp-lb-next:hover {
  background: var(--fgp-accent, #00d4ff);
  border-color: var(--fgp-accent, #00d4ff);
  color: #0a1628;
  transform: translateY(-50%) scale(1.1);
}

/* ---- CLOSE BUTTON ---- */
.fgp-lb-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s;
  z-index: 10;
}

.fgp-lb-close:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: scale(1.1) rotate(90deg);
}

/* ---- INFO BAR ---- */
.fgp-lb-info {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.fgp-lb-caption {
  flex: 1;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fgp-lb-counter {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  white-space: nowrap;
}

.fgp-lb-action-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fgp-lb-action {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.fgp-lb-action:hover {
  background: var(--fgp-accent, #00d4ff);
  border-color: var(--fgp-accent, #00d4ff);
  color: #0a1628;
}

/* ---- THUMBNAILS STRIP ---- */
.fgp-lb-thumbnails {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  max-width: 88vw;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.4) transparent;
}

.fgp-lb-thumbnails::-webkit-scrollbar { height: 4px; }
.fgp-lb-thumbnails::-webkit-scrollbar-track { background: transparent; }
.fgp-lb-thumbnails::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.4); border-radius: 2px; }

.fgp-lb-thumb {
  width: 56px; height: 42px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
}

.fgp-lb-thumb:hover   { opacity: 1; border-color: rgba(255,255,255,0.5); }
.fgp-lb-thumb.active  { opacity: 1; border-color: var(--fgp-accent, #00d4ff); }

/* ---- ZOOM SLIDER ---- */
.fgp-lb-zoom-ctrl {
  position: absolute;
  bottom: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.fgp-lb-zoom-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}

.fgp-lb-zoom-btn:hover { background: rgba(0,212,255,0.3); }

/* ---- LOADING SPINNER ---- */
.fgp-lb-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--fgp-accent, #00d4ff);
  border-radius: 50%;
  animation: fgpSpin 0.8s linear infinite;
  position: absolute;
}

@keyframes fgpSpin { to { transform: rotate(360deg); } }

/* ---- KEYBOARD HINT ---- */
.fgp-lb-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  z-index: 10;
}

.fgp-lb-hint kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .fgp-lb-prev { left: 6px; }
  .fgp-lb-next { right: 6px; }
  .fgp-lb-prev, .fgp-lb-next { width: 40px; height: 40px; font-size: 18px; background: rgba(0,0,0,0.6); }
  .fgp-lb-hint { display: none; }
  .fgp-lb-thumbnails { gap: 4px; }
  .fgp-lb-thumb { width: 44px; height: 34px; }
}
