/* ==========================================================================
   画像ライトボックスの拡大・回転ツールバー（2026-10-02追加。admin / eigyo 共通）
   admin.css / eigyo.css の .lightbox-* の後に読み込む（上書き分がある）
   ========================================================================== */

/* 拡大しても画面にスクロールバーが出ないよう、ライトボックスだけは中央寄せ・はみ出し非表示にする */
.modal-overlay.lightbox-overlay {
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  touch-action: none;
}
.lightbox-overlay .lightbox-img {
  transition: transform 0.12s ease-out;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  will-change: transform;
}
/* 閉じる（×）はツールバーより前面に */
.lightbox-overlay .modal-close-btn { z-index: 3; }

.lightbox-toolbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.lightbox-toolbar button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-toolbar button:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-toolbar .lightbox-pct {
  min-width: 48px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.lightbox-toolbar .lightbox-reset-btn {
  width: auto;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
}
.lightbox-toolbar .lightbox-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
}
.lightbox-hint {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  pointer-events: none;
}
@media (max-width: 600px) {
  .lightbox-toolbar { top: 8px; gap: 2px; }
  .lightbox-toolbar button { width: 32px; height: 32px; font-size: 16px; }
  .lightbox-hint { display: none; }
}
