/* Fruity Fresh — Shared Lightbox Stylesheet */
/* Used by any page that loads js/lightbox.js (FxLightbox).
   Selectors prefixed .fx-* to avoid collision with the
   product-showcase page's self-contained .ps-* lightbox. */

.fx-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,5,22,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.fx-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease, visibility 0s linear 0s;
}

.fx-lb-stage {
  max-width: 95vw;
  max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.fx-lb-img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform .22s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.fx-lb-img.is-zoomed { cursor: grab; transition: none; }
.fx-lb-img.is-panning { cursor: grabbing; transition: none; }

.fx-lb-close, .fx-lb-prev, .fx-lb-next, .fx-lb-download {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
  z-index: 2;
}
.fx-lb-close {
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.fx-lb-download {
  top: 18px; left: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.fx-lb-download[hidden] { display: none !important; }
.fx-lb-prev, .fx-lb-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.fx-lb-prev { left: 18px; }
.fx-lb-next { right: 18px; }
.fx-lb-close:hover, .fx-lb-prev:hover, .fx-lb-next:hover, .fx-lb-download:hover {
  background: rgba(255,107,157,.28);
  border-color: rgba(255,107,157,.55);
}
.fx-lb-prev:hover, .fx-lb-next:hover { transform: translateY(-50%) scale(1.05); }
.fx-lb-close:focus-visible, .fx-lb-prev:focus-visible, .fx-lb-next:focus-visible, .fx-lb-download:focus-visible {
  outline: 2px solid #FF6B9D;
  outline-offset: 3px;
}

.fx-lb-hint {
  position: fixed;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 800px) {
  .fx-lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .fx-lb-download { top: 12px; left: 12px; width: 40px; height: 40px; }
  .fx-lb-prev, .fx-lb-next { width: 42px; height: 42px; }
  .fx-lb-prev { left: 10px; }
  .fx-lb-next { right: 10px; }
  .fx-lb-stage, .fx-lb-img { max-width: 96vw; max-height: 84vh; }
}
@media (hover: none) { .fx-lb-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .fx-lightbox, .fx-lb-img, .fx-lb-close,
  .fx-lb-prev, .fx-lb-next, .fx-lb-download {
    transition: none !important;
    animation: none !important;
  }
}
