/* Fullscreen lightbox — white background, padded image (Lanthimos style) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  color: #111;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Content area fills the overlay with padding */
.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  box-sizing: border-box;
}

/* Image: fully visible, never cropped, padded */
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

/* Close button — top right, minimal */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* 50/50 click zones (left = prev, right = next) */
.lightbox-click-prev,
.lightbox-click-next {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 10000;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-click-prev {
  left: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='50%25' y='54%25' dominant-baseline='middle' text-anchor='middle' font-family='Georgia%2C serif' font-size='22' fill='%23111'%3E%26lt%3B%3C/text%3E%3C/svg%3E") 16 16, w-resize;
}
.lightbox-click-next {
  right: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='50%25' y='54%25' dominant-baseline='middle' text-anchor='middle' font-family='Georgia%2C serif' font-size='22' fill='%23111'%3E%26gt%3B%3C/text%3E%3C/svg%3E") 16 16, e-resize;
}

/* Caption — bottom center, dark text on white */
.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #777;
  font-size: 13px;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 10001;
  padding: 0 80px;
  box-sizing: border-box;
}

body[data-show-captions="false"] .lightbox-caption {
  display: none !important;
}

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

@media (max-width: 768px) {
  .lightbox-content {
    padding: 50px 24px 40px;
  }
  .lightbox-caption {
    padding: 0 24px;
    font-size: 12px;
  }
  .lightbox-close {
    top: 12px;
    right: 16px;
  }
}