.pl-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.pl-lightbox-overlay.is-open {
  display: flex;
}
.pl-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.pl-lightbox-close {
  position: absolute;
  /* ノッチ・カメラアイランド等のセーフエリアを避けつつ、画面端すれすれにならないよう
     最低16pxは離す。画像に重なっても見えるよう半透明の丸い背景を敷いている。 */
  top: max(16px, env(safe-area-inset-top, 0px) + 12px);
  right: max(16px, env(safe-area-inset-right, 0px) + 12px);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.pl-page-content a:has(img) {
  cursor: zoom-in;
}
