/* BBclubs Lightbox Gallery Styles */

/* Remove hover effects from images */
img:hover {
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;

}

/* Remove hover effects from post images specifically */
.comment-post img:hover,
.comment-item img:hover,
.post-content img:hover {
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}

#lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgb(0 0 0 / 89%) !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#lightbox.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#lightbox .lightbox-content {
  position: relative !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

#lightbox .lightbox-image {
  max-width: 100% !important;
  max-height: calc(100vh - 100px) !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  margin: 0 !important;
  padding: 0 !important;
}

#lightbox .lightbox-close {
  position: absolute !important;
  top: -50px !important;
  right: 0 !important;
  color: white !important;
  font-size: 30px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 1000000 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.3s ease !important;
}

#lightbox .lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8) !important;
}

#lightbox .lightbox-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: white !important;
  font-size: 20px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 1000000 !important;
  padding: 14px 20px !important;
  user-select: none !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 50% !important;
  transition: background 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#lightbox .lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.4) !important;
}

#lightbox .lightbox-prev {
  left: -80px !important;
}

#lightbox .lightbox-next {
  right: -80px !important;
}

#lightbox .lightbox-counter {
  position: absolute !important;
  bottom: -50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: white !important;
  font-size: 14px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  margin: 0 !important;
}

/* Prevent body scroll when lightbox is active */
body.lightbox-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #lightbox .lightbox-content {
    max-width: 95vw !important;
    max-height: 95vh !important;
  }
  
  #lightbox .lightbox-image {
    max-height: calc(100vh - 80px) !important;
  }
  
  #lightbox .lightbox-nav {
    font-size: 30px !important;
    padding: 10px 15px !important;
  }
  #lightbox .lightbox-prev {
    left: -50px !important;
  }
  #lightbox .lightbox-next {
    right: -50px !important;
  }
  #lightbox .lightbox-close {
    top: -40px !important;
    font-size: 24px !important;
    width: 35px !important;
    height: 35px !important;
  }
  
  #lightbox .lightbox-counter {
    bottom: -40px !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}
