.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

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

.lightbox-image-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-image-wrap img.is-loaded {
  opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 100001;
}

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

.lightbox-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 60px;
  font-size: 26px;
}

.lightbox-prev {
  left: 10px;
  border-radius: 0 4px 4px 0;
}

.lightbox-next {
  right: 10px;
  border-radius: 4px 0 0 4px;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 100001;
}

@media (max-width: 600px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 48px;
    font-size: 20px;
  }
}
