/* Simple Lightbox */
.simple-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.simple-lightbox-overlay.active {
  display: flex;
}

/* 画像 */
.simple-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  position: absolute;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* 表示中の画像 */
.simple-lightbox-overlay img.active {
  opacity: 1;
  transform: translateX(0);
}

/* 左右スライド */
.simple-lightbox-overlay img.slide-left {
  transform: translateX(-100%);
  opacity: 0;
}
.simple-lightbox-overlay img.slide-right {
  transform: translateX(100%);
  opacity: 0;
}

/* 閉じるボタン */
.simple-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}

/* 前後ボタン */
.simple-lightbox-prev,
.simple-lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 0 10px;
  z-index: 10000;
}

.simple-lightbox-prev { left: 10px; }
.simple-lightbox-next { right: 10px; }

.simple-lightbox-prev:hover,
.simple-lightbox-next:hover,
.simple-lightbox-close:hover {
  color: #f0f0f0;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .simple-lightbox-prev,
  .simple-lightbox-next { font-size: 36px; padding: 0 6px; }
  .simple-lightbox-close { font-size: 28px; right: 20px; top: 15px; }
}


