.c-character-gallery-item.is-spoiler.is-locked img{
  filter: blur(16px);
  transition: filter .25s ease;
}

.c-character-gallery-item.is-spoiler.is-unlocked img{
  filter: blur(0);
}

.c-character-gallery-image-button{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.c-slider__slide img[data-lightbox-image]{
  cursor: zoom-in;
}

.c-slider__slide.is-spoiler{
  position: relative;
}

.c-slider__slide.is-spoiler.is-locked img{
  filter: blur(16px);
  transition: filter .25s ease;
}

.c-slider__slide.is-spoiler.is-unlocked img{
  filter: blur(0);
}

.c-slider__slide.is-spoiler.is-locked::after{
  content: "ネタバレ注意";
  position: absolute;
  left: 50%;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.78);
  color: #fffdf7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  transform: translateX(-50%);
}

.gallery-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gallery-lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}

.gallery-lightbox-dialog{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px 72px;
  box-sizing: border-box;
  touch-action: pan-y;
}

.gallery-lightbox-image{
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.gallery-lightbox-nav{
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-lightbox-nav.prev{
  left: 16px;
}

.gallery-lightbox-nav.next{
  right: 16px;
}

.is-lightbox-open{
  overflow: hidden;
}

@media screen and (max-width: 480px){
  .gallery-lightbox-dialog{
    padding: 16px 52px;
  }

  .gallery-lightbox-image{
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 10px;
  }

  .gallery-lightbox-nav{
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .gallery-lightbox-nav.prev{
    left: 8px;
  }

  .gallery-lightbox-nav.next{
    right: 8px;
  }
}
