﻿@charset "utf-8";

/* =========================================
   Image Zoom Modal (Common CSS)
   ========================================= */

.iz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  z-index: 99999;
  padding: 24px;
  box-sizing: border-box;
}

.iz-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.iz-dialog {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
}

.iz-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  user-select: none;
  -webkit-user-drag: none;
}

.iz-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.iz-close:focus {
  outline: 2px solid rgba(96,165,250,.8);
  outline-offset: 2px;
}

.iz-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.iz-overlay.is-loading .iz-loading {
  display: flex;
}

/* モーダル表示中は背景スクロール禁止 */
body.iz-lock {
  overflow: hidden;
}


/* 既存 .iz-dialog が position:relative じゃなければ付ける */
#imageZoomModal .iz-dialog{
  position: relative;
}

/* 左右ボタン */
#imageZoomModal .iz-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
}

#imageZoomModal .iz-prev{ left: 10px; }
#imageZoomModal .iz-next{ right: 10px; }

#imageZoomModal .iz-nav:hover{
  background: rgba(0,0,0,.7);
}

