/* GateX Professional Lightbox Viewer */
.gx-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  user-select: none;
}

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

.gx-lightbox-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 25, 0.6);
  z-index: 10;
}

.gx-lightbox-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gx-lightbox-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.gx-lightbox-counter {
  font-size: 12px;
  color: #1A8CFF;
  background: rgba(26, 140, 255, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.gx-lightbox-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gx-lightbox-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gx-lightbox-btn:hover {
  background: #1A8CFF;
  border-color: #1A8CFF;
  box-shadow: 0 0 16px rgba(26, 140, 255, 0.4);
  transform: translateY(-1px);
}

.gx-lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gx-lightbox-stage {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}

.gx-lightbox-stage:active {
  cursor: grabbing;
}

.gx-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(26, 140, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.2s ease;
}

.gx-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 18, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.gx-lightbox-arrow:hover {
  background: #1A8CFF;
  box-shadow: 0 0 20px rgba(26, 140, 255, 0.5);
  scale: 1.08;
}

.gx-lightbox-arrow.prev { right: 24px; }
.gx-lightbox-arrow.next { left: 24px; }

.gx-lightbox-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.gx-lightbox-footer {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 18, 25, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

/* Pointer indicator on hoverable images */
.gx-zoomable {
  cursor: zoom-in !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
}

.gx-zoomable:hover {
  transform: scale(1.02);
  filter: brightness(1.06);
}
