@media screen and (max-width: 767px) {
	#modal_view {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 100;
		background: rgba(0,0,0,0.5);
		display: none;
	}
	#modal_view .modal-content {
		width: 80%;
		text-align: center;
		/* 中央 */
		position: absolute;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
	}
	
	.popup-close {
		cursor: pointer;
	}
	#modal_view img.thumb {
		max-height: 80vh;
		max-width: 100%;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
		background: #fff;
	}

	/*クローズボタン*/
	.popup-img-box {
		position: absolute;
		top: -25px;
		right: -25px;
	}
	.popup-inner-box {
		position: absolute;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%,-50%);
		transform: translate(-50%,-50%);
	}

}

@media screen and (min-width: 768px) {	
	#modal_view {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 100;
		background: rgba(0,0,0,0.5);
		display: none;
	}
	#modal_view .modal-content {
		width: 80%;
		text-align: center;
		/* 中央 */
		position: absolute;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
	}
	#modal_view .wrap {
		background: #fff;

	}
	
	.popup-close {
		cursor: pointer;
	}
	#modal_view img.thumb {
		max-height: 80vh;
		max-width: 100%;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
	}

	/*クローズボタン*/
	.popup-img-box {
		position: absolute;
		top: -25px;
		right: -25px;
	}
	.popup-inner-box {
		position: absolute;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%,-50%);
		transform: translate(-50%,-50%);
	}
}