.gallery-thumbnails {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.gallery-thumbnails .gallery-thumbnail {
	margin: 5px;
}

.gallery-thumbnails .gallery-thumbnail img {
	cursor: pointer;
}

#gallery_viewer {
	z-index: 999999;
	position:fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#gallery_viewer.hidden {
	display: none;
}

#gallery_viewer .loading {
	opacity: 0;
}

#gallery_viewer.is-loading img {
	display: none;
}

#gallery_viewer.is-loading .loading {
	opacity: 1;
	color: white;
	animation: fadeIn 1s;
}

#gallery_viewer .close-btn,
#gallery_viewer .zoom-in-btn,
#gallery_viewer .zoom-out-btn,
#gallery_viewer .arrows div {
	font-size: 2rem;
	text-align: center;
	width: 3rem;
	height: 3rem;
	padding: 2px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.8);
	border-radius: 50%;
	border: solid 2px #fff;
	background-position: center;
	background-repeat: no-repeat;
}

#gallery_viewer .close-btn:hover,
#gallery_viewer .arrows div:hover {
	background-color: #222;
}

#gallery_viewer .close-btn:active,
#gallery_viewer .arrows div:active {
	background-color: #444;
}

#gallery_viewer .close-btn:hover {
	margin-top: 3px;
}

#gallery_viewer .close-btn:active {
	margin-top: 6px;
}

#gallery_viewer .zoom-info {
	background-color: rgba(0,0,0,0.5);
	border-radius: 1.5rem;
	z-index: 1000000;
	display: flex;
	position:fixed;
	top: 5px;
	left: 5px;
	flex-direction:row;
	justify-content: space-between;
}

#gallery_viewer .zoom-info div {
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	cursor: default;
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}

#gallery_viewer .zoom-amount {
	padding-left: 5px;
	padding-right: 5px;
}

#gallery_viewer .zoom-info div:hover {
	background-color: #444;
}

#gallery_viewer .arrows div {
	margin-top: 0;
	margin-bottom: 6px;
}

#gallery_viewer .arrows div:hover {
	margin-top: 3px;
	margin-bottom: 3px;
}

#gallery_viewer .arrows div:active {
	margin-top: 6px;
	margin-bottom: 0;
}

#gallery_viewer .close-btn {
	z-index: 1000000;
	position:fixed;
	top: 5px;
	right: 5px;
	background-image: url('../img/close.svg');
}

#gallery_viewer .arrows {
	z-index: 1000000;
	position: fixed;
	bottom: 5px;
	display: flex;
	width: 9rem;
	flex-direction:row;
	justify-content: space-between;
}

#gallery_viewer .arrows .prev-btn {
	background-image: url('../img/arrow-back.svg');
}

#gallery_viewer .arrows .next-btn {
	background-image: url('../img/arrow-forward.svg');
}

#gallery_viewer img {
	max-width: 90%;
	max-height:90%;
}

@keyframes fadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}
