/* ポスター画像のレイアウト */
/* ポスター画像ギャラリー */
.poster-gallery {
  display: flex;
  justify-content: center;   /* 中央寄せ */
  gap: 20px;                 /* 画像の間隔 */
  margin: 30px 0;
  flex-wrap: wrap;           /* スマホ表示で折り返す */
}

.poster-gallery img {
  max-width: 35%;            /* 横並びで2枚収まるように */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.poster-gallery img:hover {
  transform: scale(1.05);    /* ホバーで少し拡大する演出 */
}

/* ライトボックス背景 */
.lightbox {
  display: none;               /* 最初は非表示 */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.8); /* 黒い半透明背景 */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 拡大画像 */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  object-fit: contain;
  transition: transform 0.15s ease;
  touch-action: none;
  cursor: grab;
}

/* 閉じるボタン */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  text-shadow: 0 0 6px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.6);
}

.lightbox.show {
  display: flex;
}

body.popup-open {
  overflow: hidden;
}
