/* Lightbox styles for Chirpy Gridea */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-box, 0.5rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.lightbox-overlay.is-visible .lightbox-image {
  transform: scale(1);
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2010;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  opacity: 0.8;
}

.lightbox-nav:hover, .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.lightbox-nav.prev {
  left: 1.5rem;
}

.lightbox-nav.next {
  right: 1.5rem;
}

.lightbox-nav svg {
  width: 30px;
  height: 30px;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav.is-hidden {
  display: none;
}

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Add pointer cursor to images that can be enlarged */
.post-content img, .prose img {
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.post-content img:hover, .prose img:hover {
  opacity: 0.9;
}
