/* ── Lightbox ── */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: var(--page-pad);
}

#lightbox-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
}

#lightbox-label {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#lightbox-close {
  position: absolute;
  right: 0;
  font: inherit;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-size: 14px;
  padding: 2px 8px;
  line-height: 1;
  cursor: pointer;
}

#lightbox-close:hover {
  background: #c62828;
  border-color: #c62828;
}

#lightbox-360-btn {
  position: absolute;
  left: 0;
  font: inherit;
  background: #000;
  color: #ccc;
  border: 1px solid #555;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 20px;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#lightbox-360-btn:hover {
  background: #111;
  color: #fff;
}

#lightbox-360-btn.active {
  background: #000;
  color: #4aa8e8;
  border-color: #1a6fa8;
}

#lightbox-save-view-btn {
  position: absolute;
  left: 116px;
  font: inherit;
  background: #1e3a1e;
  color: #6dbf6d;
  border: 1px solid #3a6b3a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 0.5px;
}

#lightbox-save-view-btn:hover {
  background: #2a522a;
  color: #8fd48f;
}

#lightbox-save-view-btn.saved {
  background: #2a522a;
  color: #8fd48f;
}

#lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 0;
}

#lightbox-media {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

#lightbox-360 {
  display: none;
  width: 100%;
  height: 100%;
  cursor: grab;
  border-radius: 4px;
}

#lightbox-prev,
#lightbox-next {
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #lightbox-prev,
  #lightbox-next {
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 32px;
  }

  #lightbox-label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  #lightbox-body {
    gap: 10px;
  }

  #lightbox-prev,
  #lightbox-next {
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 28px;
  }

  #lightbox-label {
    font-size: 10px;
  }
}
