

.lightbox-enabled { cursor: zoom-in; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 14, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay[hidden] { display: none; }

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--oracle-space-s5);
  box-sizing: border-box;
  touch-action: none;   
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  
  transition: transform 0.08s ease-out;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  background: var(--oracle-color-surface);
}

.lightbox-img-zoomed  { cursor: grab; }
.lightbox-img-grabbing {
  cursor: grabbing;
  transition: none;     
}

.lightbox-close {
  position: fixed;
  top: var(--oracle-space-s3);
  right: var(--oracle-space-s4);
  z-index: 1002;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--oracle-motion-duration-fast) var(--oracle-motion-easing);
}

.lightbox-controls {
  position: fixed;
  bottom: var(--oracle-space-s4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  display: flex;
  gap: var(--oracle-space-s1);
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--oracle-space-s2);
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--oracle-font-mono);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--oracle-motion-duration-fast) var(--oracle-motion-easing);
}

.lightbox-btn[data-act="reset"] { font-size: 13px; letter-spacing: 0.06em; }

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lightbox-close:hover { background: rgba(0, 0, 0, 0.75); }
