.scroll-fixed {
	overflow: hidden;
	pointer-events: none;
}
html.scroll-fixed #imgpopup {
	pointer-events: auto;
}

#imgpopup:not(.disp) {
	display: none;
}
#imgpopup {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: rgba(0, 0, 0, 0.8);
	position: fixed;
	top: 0;
	left: 0;
	text-align: center;
}

#imgpopup .imgFrame {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}

#imgpopup .imgFrame #imgSlide {
	width: 400%;
	transition-duration: 400ms;
	transition-property: margin-left;
}

#imgpopup .imgFrame #imgSlide span {
	display: inline-block;
	width: 25%;
}

#imgpopup[data-maxpage="1"] .imgFrame #imgSlide span {
	width: 100%;
}
#imgpopup[data-maxpage="2"] .imgFrame #imgSlide span {
	width: 50%;
}
#imgpopup[data-maxpage="3"] .imgFrame #imgSlide span {
	width: 33.33%;
}


#imgpopup[data-num="1"] #imgSlide {
	margin-left: 0;
}
#imgpopup[data-num="2"] #imgSlide {
	margin-left: -100%;
}
#imgpopup[data-num="3"] #imgSlide {
	margin-left: -200%;
}
#imgpopup[data-num="4"] #imgSlide {
	margin-left: -300%;
}

.popupimage {
	object-fit: cover;
	max-height: calc(100vh - 20px);
	max-height: calc(100dvh - 20px);
}

.svg_new_browser {
	width: 35px;
	height: 35px;
}

#openpopup svg {
	vertical-align: text-bottom;
}

#prevButton,
#nextButton,
#closeButton {
	position: absolute;
}

#closeButton {
	top: 8px;
	right: 0px;
	margin: 0 10px;
	border-radius: 18px;
	border: solid 1px #fff;
	line-height: 0;
	padding: 7px;
	background: rgba(0,0,0, 0.5);
	transition-duration: 400ms;
	transition-property: opacity, margin-top;
}

#closeButton.close {
	opacity: 0;
	margin-top: -50px;
}

#prevButton,
#nextButton {
	top: 50%;
	line-height: 0;
	border-radius: 25px;
	border: 1px solid #fff;
	padding: 8px;
	background: #000;
	opacity: 0.8;
	z-index: 2;
	display: none;
}

#prevButton {
	left: 0;
	margin-left: 10px;
}
#nextButton {
	right: 0;
	margin-right: 10px;
}

#imgpopup[data-num="1"] #prevButton,
#imgpopup[data-num="1"] #nextButton[data-maxpage="1"],
#imgpopup[data-num="2"] #nextButton[data-maxpage="2"],
#imgpopup[data-num="3"] #nextButton[data-maxpage="3"],
#imgpopup[data-num="4"] #nextButton[data-maxpage="4"] {
	display: none;
}

#popupPage {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
#popupPage span {
	width: 10px;
	height: 10px;
	border-radius: 5px;
	background: rgba(180, 180, 180, 0.7);
	margin-left: 5px;
}
#popupPage span:first-of-type {
	margin-left: 0;
}

#imgpopup[data-num="1"] #popupPage span:nth-of-type(1),
#imgpopup[data-num="2"] #popupPage span:nth-of-type(2),
#imgpopup[data-num="3"] #popupPage span:nth-of-type(3),
#imgpopup[data-num="4"] #popupPage span:nth-of-type(4) {
	background: rgba(255, 255, 255, 1.0);
}

/* マウスhover */
@media (any-hover: hover) {
	#prevButton,
	#nextButton {
		display: inline;
	}
	#popupPage {
		display: none;
	}
	.popupimage {
		max-height: 100vh;
		max-height: 100dvh;
	}
}
