/* ========================================
   弓なり Lightbox
======================================== */

#ym-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#ym-lightbox.is-open {
  display: flex;
}

.ym-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 4, 0.92);
  cursor: zoom-out;
}

.ym-lb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  animation: ym-lb-fadein 0.25s ease;
}

@keyframes ym-lb-fadein {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.ym-lb-img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(200, 170, 130, 0.25);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
}

.ym-lb-caption {
  margin: 12px 0 0;
  color: rgba(240, 230, 210, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  font-family: "Noto Serif JP", "游明朝", serif;
  text-align: center;
  min-height: 1.4em;
}

.ym-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(200, 170, 130, 0.4);
  color: rgba(240, 230, 210, 0.8);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.ym-lb-close:hover {
  background: rgba(200, 170, 130, 0.15);
  color: #fff;
}

.ym-lb-prev,
.ym-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(200, 170, 130, 0.3);
  color: rgba(240, 230, 210, 0.7);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  line-height: 1;
}

.ym-lb-prev { left: 16px; }
.ym-lb-next { right: 16px; }

.ym-lb-prev:hover,
.ym-lb-next:hover {
  background: rgba(200, 170, 130, 0.15);
  color: #fff;
}

@media (max-width: 640px) {
  .ym-lb-prev { left: 4px; }
  .ym-lb-next { right: 4px; }
  .ym-lb-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ym-lb-stage { animation: none; }
}
