/**
 * [ARTNET Lightbox]
 * - 역할: 작품/본문 이미지 확대(줌·팬·전체화면) 공통 스타일
 * - 작성/수정일: 2026-08-09
 */

.an-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.94);
  color: var(--on-dark, #fff);
}

.an-lightbox[hidden] {
  display: none !important;
}

.an-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.an-lightbox__bar button {
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: transparent;
  color: var(--on-dark, #fff);
  cursor: pointer;
}

.an-lightbox__bar button[hidden] {
  display: none !important;
}

.an-lightbox__close {
  margin-left: 8px;
  font-size: var(--fs-icon, 22px);
  line-height: 1;
}

.an-lightbox__viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.an-lightbox__viewport.is-dragging {
  cursor: grabbing;
}

.an-lightbox__viewport img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* 본문·첨부 이미지 클릭 가능 힌트 */
[data-an-lightbox-content] img,
[data-an-lightbox-content] a.view_image {
  cursor: zoom-in;
}

[data-an-lightbox-content] a.view_image {
  display: inline-block;
  max-width: 100%;
}
