/* ---- PhotoSwipe：画像を中央に max 85vw / 85vh で表示（引き延ばし防止・重複防止） ---- */

/* プレースホルダを非表示にし、実画像と一瞬重複して見えるのを防ぐ */
.pswp__img--placeholder {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 各ラッパーを flex で中央寄せ（ライブラリの position:absolute; top:0; left:0 を上書き） */
.pswp__scroll-wrap,
.pswp__container,
.pswp__item,
.pswp__content {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center !important;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center !important;
}

/* zoom-wrap / img をフローに戻し、flex の中央に乗せる */
.pswp__zoom-wrap,
.pswp__img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

.pswp__img {
  max-width: 85vw !important;
  max-height: 85vh !important;
  object-fit: contain !important;
}
