@charset "utf-8";
/*
 * 投稿・固定ページ本文の画像ライトボックス（クリックで拡大）。
 * 表示制御は assets/js/function.js。ギャラリー／画像ブロックの画像に適用される。
 * PC・SP どちらのブレークポイントでも読み込むため、単位は rem ではなく px / vmin を使う。
 */
.aso-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
  background: rgba(12, 24, 46, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.aso-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.aso-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
}
.aso-lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.aso-lightbox__caption {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.aso-lightbox__caption:empty {
  display: none;
}
.aso-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease;
}
.aso-lightbox__close::before,
.aso-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
}
.aso-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.aso-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.aso-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* ライトボックス表示中は背面のスクロールを固定 */
body.is-lightbox-open {
  overflow: hidden;
}
