/* gl-lightbox.css  ギャラリー用ライトボックス（2026-11-25 追加） */

html.gl-lb-lock { overflow: hidden; }

.gallery a, .wp-block-gallery a { cursor: zoom-in; }

.gl-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.gl-lb.is-open { opacity: 1; visibility: visible; }

.gl-lb__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gl-lb__img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .2s ease;
}
.gl-lb__img.is-loaded { opacity: 1; }

.gl-lb__cap {
  margin-top: 10px;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.gl-lb__count {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 17px;
  letter-spacing: .05em;
}

/* ボタン共通 */
.gl-lb button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s ease;
}
.gl-lb button:hover,
.gl-lb button:focus-visible { background: rgba(255, 255, 255, .35); outline: none; }

/* 閉じるボタン */
.gl-lb__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  font-size: 36px;
}

/* 前後ボタン */
.gl-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 44px;
}
.gl-lb__nav span { margin-top: -6px; }
.gl-lb__prev { left: 16px; }
.gl-lb__next { right: 16px; }

/* SP */
@media screen and (max-width: 767px) {
  .gl-lb__figure, .gl-lb__img { max-width: 100vw; }
  .gl-lb__img { max-height: 72vh; }
  .gl-lb__close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 32px; }
  .gl-lb__nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; font-size: 36px; }
  .gl-lb__prev { left: 12px; }
  .gl-lb__next { right: 12px; }
  .gl-lb__count { bottom: 22px; }
}
