/* 背景のオーバーレイ */
.lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.85);
  width: 100%;
  height: 100%;
  display: none;
}

/* Lightbox本体 */
.lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
  max-height: 90%;
  display: none;
}

.lb-container {
  background: #fff;
  display: grid;
	grid-template-columns: minmax(360px, 1fr) minmax(300px, .9fr);
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}

/* 表示する画像 */
.lb-image {
  margin: 0;                   /* 中央寄せ→左寄せ */
    max-height: 70vh;            /* 元の上限を踏襲 */
    grid-column: 1;
}

/* キャプション（modal-txtが入る場所） */
.lb-caption {
  margin: 0;
    text-align: left;
    line-height: 1.8;
    grid-column: 2;
}

/* 閉じるボタン */
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: url("https://sobabouro.com/system_panel/uploads/images/close.png") no-repeat center;
  background-size: contain;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lb-close:hover {
  opacity: 1;
}

/* 前後ナビゲーション */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lb-prev {
  left: 10px;
  background-image: url("https://sobabouro.com/system_panel/uploads/images/prev.png");
}

.lb-next {
  right: 10px;
  background-image: url("https://sobabouro.com/system_panel/uploads/images/next.png");
}

.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}
@media (max-width: 1080px){
    .lb-container{
        display: block;
        padding: 10px;
    }
    .lb-image{
        margin: 0 auto;          /* 画像は中央 */
    }
    .lb-caption{
        margin-top: 15px;
        text-align: center;      /* テキストも中央 */
    }
}
