.lv-image-container {
  position: relative;
  width: 100%;
  height: 70vh; /* 画像表示エリアの高さ。必要に応じて調整 */
  overflow: hidden; /* 画像がはみ出さないように */
  margin-bottom: 15px;
}
.lv-main-image { /* currentMainImg, nextOrPrevMainImg に付与するクラス */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-out; /* スナップアニメーション用 */
  cursor: grab;
}
.lv-main-image.no-transition {
  transition: none !important; /* スワイプ中のtransition無効化用 */
}
.lv-main-image.loading {
    opacity: 0;
}


#lightview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#lightview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lv-viewer {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  height: 600px;
}

.lv-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: #fff; /* overlayの背景に合わせて調整 */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001; /* overlayよりも手前に表示 */
}

/* lv-viewer内に直接配置されたlv-closeボタンのスタイル */
.lv-viewer > .lv-close {
    color: #fff; /* viewerの背景に合わせて調整 */
}


.lv-main {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin-bottom: 15px;
  cursor: grab; /* ドラッグ可能なカーソル */
}

.lv-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto; /* サムネイルが多すぎる場合にスクロール */
  padding-bottom: 10px;
  position: fixed;
  bottom: 0;
}

.lv-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.lv-thumbs img.active {
  border-color: #007bff;
}