/* ==========================================================================
   Universal photo lightbox — works on any page with a gallery
   ========================================================================== */

/* Make gallery images visually clickable */
.gallery a,
.gallery img,
[class*="gallery"] img:not(.no-lb),
.fleet-gallery img,
.boat-gallery img,
.exp-grid img,
.drone-grid img,
.bbq-grid img,
.bbq-gallery img,
.sb-card img,
.js-card img,
.dest-card-img img,
.boat-mini-photo img {
  cursor: zoom-in;
}

/* Lightbox overlay */
.lbx {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(8,12,20,.95);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lbx.is-open { display: flex; }

.lbx-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lbx-img-wrap img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  user-select: none;
  -webkit-user-drag: none;
}

.lbx-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: .15s;
  z-index: 2;
  font-family: inherit;
  padding: 0;
}
.lbx-btn:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-50%) scale(1.08);
}
.lbx-prev { left: 18px; }
.lbx-next { right: 18px; }

.lbx-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: .15s;
  z-index: 3;
  padding: 0;
}
.lbx-close:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.08);
}

.lbx-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.10);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
}

.lbx-caption {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  max-width: 80vw;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

@media (max-width: 600px) {
  .lbx-prev { left: 6px; width: 42px; height: 42px; }
  .lbx-next { right: 6px; width: 42px; height: 42px; }
}
