/**
 * Lightbox styles - vanilla JS implementation
 * Replaces jQuery lightbox
 */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.is-open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}

.lightbox-content {
  position: relative;
  text-align: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #fff;
  padding: 15px 0 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.lightbox-counter {
  color: #ccc;
  padding: 5px 0 15px;
  font-size: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  top: 10px;
  right: 10px;
  font-size: 32px;
}

.lightbox-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev.lightbox-nav-hidden,
.lightbox-next.lightbox-nav-hidden {
  display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lightbox-container {
    max-width: 95%;
  }

  #lightbox-image {
    max-height: 80vh;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .lightbox-close {
    top: 5px;
    right: 5px;
    font-size: 28px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }
}
