/*imageViewer*/
#imageViewer {
	display: none;
	position: fixed;
	z-index: 70;
	width: 100%;
	height: 100vh;
	top: 0;
	left: 0;
	opacity: 0.0;
	transition: all 0.3s;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#imageViewer[data-open="true"]{
	display: block;
}
#imageViewer[data-open="true"][data-efx="true"] {
	opacity: 1.0;
}
	#imageViewer[data-efx=""] .im {
		opacity: 0.0;
		transform: scale(1.1);
		filter: blur(2em);
	}
#imageViewer figure {
	width: 100%;
	height: 100vh;
	position: relative;
	background-color: rgba(0, 0, 0, 1.0);
	display: table;
}
#imageViewer .imwrap {
	width: 100%;
	height: 100vh;
	position: relative;
	z-index: 0;
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	overflow: hidden;
}
#imageViewer .imwrap .im {
	opacity: 1.0;
}
#imageViewer[data-efx="true"] .im {
	transform: scale(1.0);
	filter: blur(0);
	transition: all 0.3s;
}
#imageViewer[data-dir="wide"] .imwrap .im {
	max-width: 100vw;
	height: auto;
}
#imageViewer[data-dir="tall"] .imwrap .im {
	max-height: 100vh;
	width: auto;
}
#imageViewer figure {
	text-shadow: 0 0px 3px #000;
}
#imageViewer figure figcaption {
	display: block;
	position: fixed;
	z-index: 5;
	bottom: 5em;
	left: 0;
	padding: 0 2.5em;
	color: #fff;
	max-width: 740px;
}
#imageViewer figure figcaption > * {
	/*shadow margin*/
	padding: 0.1em;
}
#imageViewer figure figcaption .maincaption {
	line-height: 1.6em;
	font-size: 1.6em;
	font-weight: 500;
	margin-bottom: 0.5em;
	overflow-x: hidden;
	max-width: 100%;
}
#imageViewer figure figcaption .subcaption {
	line-height: 1.8em;
	font-size: 0.9em;
	font-weight: 500;
	opacity: 1.0;
	overflow: auto;
	display: block;
	max-width: 100%;
	max-height: 28vh;
	word-break: break-all;
	white-space: pre-line;
}
#imageViewer figure figcaption .subcaption::-webkit-scrollbar {
	width: 6px;
	height: 10px;
	background-color: rgba(0, 0, 0, 0);
}
#imageViewer figure figcaption .subcaption::-webkit-scrollbar-thumb {
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.31);
	border: 1px solid rgba(255, 255, 255, 0.28);
}
@media only screen and (max-width: 800px){
	#imageViewer figure figcaption {
		font-size: 3.2vw;
	}
	#imageViewer figure figcaption .subcaption {
		max-height: 15vh;
	}
}

#imageViewer[data-loading="true"] {
	
}
	#imageViewer[data-loading="true"]::before {
		content: "";
		display: block;
		position: absolute;
		z-index: 10;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background-repeat: no-repeat;
		background-image: url(../img/share/prl_spinpulsate-wh.png);
		background-position: center center;
		background-size: 4em auto;
	}
	#imageViewer[data-open="true"][data-loading="true"] .im {
		opacity: 0.0;
		transform: scale(1.1);
		filter: blur(2em);
	}

#imageViewer a.closer {
	width: 9vw;
	height: 9vw;
	top: 4vw;
	right: 4vw;
}
#imageViewer a.downloader {
	position: absolute;
	z-index: 10;
	width: 9vw;
	height: 9vw;
	top: 4vw;
	right: 17vw;
	display: none;
}
#imageViewer[data-download="true"] a.downloader {
	display: inline-block;
}
#imageViewer a.downloader::before {
	background-image: url(../img/share/mrk_download-b-wh.svg);
}
@media only screen and (min-width: 800px){
	#imageViewer a.closer {
		width: 64px;
		height: 64px;
		top: 2rem;
		right: 2rem;
	}
	#imageViewer a.downloader {
		width: 64px;
		height: 64px;
		top: 2rem;
		right: 8rem;
	}
}




/* --- 本番と同じサイズ感に調整 --- */
#imageViewer {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

#imageViewer[data-open="true"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
}

#imageViewer[data-open="true"] figure {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
}

#imageViewer[data-open="true"] .imwrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

#imageViewer[data-open="true"] .imwrap .im {
    width: 75vw !important;
    height: auto !important;
    max-width: 75vw !important;
    max-height: 75vh !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}