/* Simple Image Popup */

/* クリック可能であることを示す */
img.popup-image {
	cursor: zoom-in;
}

/* オーバーレイ全体 */
.sip-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 999999;
	display: none;
}
.sip-overlay.sip-open {
	display: block;
}

/* スクロール領域(拡大時はここでスクロール) */
.sip-scroll {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	text-align: center;
}

/* 中央寄せ用の内側ラッパー */
.sip-inner {
	display: inline-block;
	min-width: 100%;
	min-height: 100%;
	font-size: 0;
	/* Flexboxを使わず古いブラウザでも中央に寄せる */
	white-space: nowrap;
}
.sip-inner:after {
	content: "";
	display: inline-block;
	height: 100vh;
	vertical-align: middle;
	width: 0;
}

/* ドラッグ操作のカーソル表示 */
.sip-scroll {
	cursor: move;         /* 古いブラウザ用フォールバック */
	cursor: grab;
}
.sip-scroll.sip-dragging {
	cursor: move;
	cursor: grabbing;
}

/* 表示する画像 */
.sip-img {
	display: inline-block;
	vertical-align: middle;
	max-width: none;
	padding: 40px;
	box-sizing: border-box;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

/* 操作ボタン共通 */
.sip-btn {
	position: fixed;
	z-index: 1000000;
	width: 44px;
	height: 44px;
	line-height: 42px;
	text-align: center;
	font-size: 24px;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 4px;
	cursor: pointer;
	padding: 0;
	font-family: Arial, sans-serif;
}
.sip-btn:hover {
	background: rgba(0, 0, 0, 0.9);
}

/* 閉じるボタン(右上) */
.sip-close {
	top: 12px;
	right: 12px;
}

/* 拡大・縮小ボタン(右下) */
.sip-zoom-in {
	right: 12px;
	bottom: 70px;
}
.sip-zoom-out {
	right: 12px;
	bottom: 16px;
}

/* 背面のスクロールを固定 */
body.sip-noscroll {
	overflow: hidden;
}
