#imageviewer {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	background-color: rgba(10,10,10, 0.6);
	z-index: 1000000;
	display: flex;
	flex-direction: column;
}

#imageviewer_x > p {
	text-align: right;
	color: white;
	font-size: 40px;
	z-index: 1000001;
	position: fixed;
	padding-right: 10px;
	padding-top: 10px;
	right: 0;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#imageviewer_nagy {
	height: 80%;
	position: relative;
}

#imageviewer_balra {
	width: 50px;
	position: absolute;
	top: calc(50% - 25px);
	left: 5px;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#imageviewer_jobbra {
	width: 50px;
	position: absolute;
	top: calc(50% - 25px);
	right: 5px;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#imageviewer_kep {
	display: block;
	max-width: 95%;
	max-height: 97%;
	position: absolute;
	margin: auto;
	vertical-align: middle;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
}

#imageviewer_kicsi {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	overflow-x: hidden;
	overflow-y: hidden;
	max-width: 95%;
	margin: auto;
	height: 20%;
}

.imageviewer_kis_kep {
	width: min-content;
	height: 90%;
	margin-right: 5px;
	margin-left: 5px;
	cursor: pointer;
}

.imageviewer_kis_kep > img {
	height: 97%;
}

.imageviewer_selected {
	border: 5px solid white;
}

@media screen and (min-height: 600px)
{
	#imageviewer_nagy {
		height: 85%;
	}

	#imageviewer_kicsi {
		height: 15%;
	}
}

@media (hover: none) and (pointer: coarse) {
	#imageviewer_kicsi {
		overflow: auto;
	}
}