h1, h2{
	font-family: 'Cinzel', serif;
	color: #432;
}

#content{
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-sizing: border-box;
}

#top{
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	justify-content: space-around;
	width: 90%;
	margin: 0 auto 20px auto;
}

#top > div, #top > a{
	position: relative;
	display: flex;
	justify-content: center;
	flex-grow: 1;
	text-align: center;
	padding: 15px 0;
	background: #999;
	background-size: 100% auto;
	background-position: 0 -100px;
	font-size: 1.4em;
	font-family: 'Muli', serif;
	color: #FFF;
	text-shadow: 3px 3px 0px #222;
	cursor: default;
	z-index: 888;
}

#top > div:hover .catg_back{
	background: #222;
}

#top a{
	cursor: pointer;
}

#top > div:hover > .drop{
	display: flex;
	flex-direction: column;
}

#top .drop{
	text-shadow: none;
	background: #444;
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #777;
}

#top .drop div{
	margin: 10px 0;
}

#top .drop a:hover{
	background: #333;
}

#top .catg_back{
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: #444;
	opacity: 0.9;
	z-index: -1;
}

#gallery_title{
	margin: 20px 5%;
	font-family: 'Cinzel', serif;
	color: #432;
}

#gallery_title a{
	color: #654;
	font-size: 90%;
}

#gallery{
	position: relative;
	display: flex;
	flex-direction: row;
	flex-grow: 1;
	margin: 0 auto 40px auto;
	padding: 5px;
	width: 90%;
	background: #EEE;
	box-shadow: 8px -6px 8px #999;
}

#museum_background{
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-image: url('/img/museum/artefacts/firstpipes/s_firstpipes5.jpg');
	background-size: cover;
	opacity: 0.6;
}

#museum_title{
	position: absolute;
	bottom: 10%;
	right: 5%;
	font-family:  'Cinzel', serif;
	font-size: 6vw;
	color: #432;
	background: #AAA;
	padding: 10px 40px;
	opacity: 0.9;
}

.catg{
	display: flex;
	align-items: flex-end;
	height: 120px;
	background-color: #444;
	background-size: 100% auto;
	color: #FFF;
	font-family: 'Cinzel', serif;
	font-size: 200%;
	text-shadow: 3px 3px 1px #444;
	cursor: pointer;
}

.catg img{
	width: 100%;
}

#item_view{
	/*display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex-grow: 1;*/
	width: 60%;
	box-sizing: border-box;
	background-clip: content-box;
	overflow-y: auto;
	font-family: 'Muli', serif;
}

#item_view #placeholder{
	align-self: center;
	font-family: 'Cinzel', serif;
	margin: 0 auto;
	font-size: 8vw;
	color: #AAA;
}

#item_view h3{
	font-family: 'Cinzel', serif;
}

#item_view #item_imgs{
	float: left;
	width: 40%;
	margin-bottom: 30px;
	flex-shrink: 0;
}

#item_view #item_imgs.no_text{
	width: 60%;
}

#viewer img{
	max-height: 100%;
	max-width: 100%;
	/* width: 100%; */
}

#items{
	display: flex;
	flex-direction: column;
	flex-grow: 1; 
	/*width: 36%;*/
	width: 25%;
	margin: 0 20px;
	border-right: 1px solid #AAA;
	overflow-y: auto;
}

.catg > div{
	background-color: #333;
	padding: 0 15px;
	opacity: 0.7;
}

.item{
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	margin-top: 8px;
	padding-right: 3px;
	font-size: 1.1em;
	font-family: 'Muli', serif;
	cursor: pointer;
}

.item:hover{
	background: #BBB;
}

.sel_item{
	background: #CCC;
}

.item_thumb{
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	overflow: hidden;
	margin-right: 15px;
	background-size: cover;
	background-position: center;
}

.item_thumb img{
	max-width: 100%;
}

#img_set ul{
	display: flex;
	flex-direction: column;
}

#main_img{
	margin: 0 20px 20px 0;
	overflow: hidden;
	cursor: pointer;
}

#main_img img{
	width: 100%;
	margin-right: 20px;
	align-self: flex-start;
}

#thumbs_list{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.img_thumb{
	width: 40px;
	height: 40px;
	margin: 5px;
	background-size: cover;
	background-position: center;
	cursor: pointer;
}

#details{
	padding: 20px;
}
#details a{
	color: #4F261A;
	text-decoration: underline;
}

#details #desc{
	font-size: 1.1em;
}

#details #desc .quote{
	color: #432;
	padding: 0 5%;
}

.copyright{
	color: #777;
}

/* Viewer */

.viewer-title{
	font-size: 20px !important;
	color: #FFF !important;
	background-color: #333;
	padding: 5px 30px;
	opacity: 0.9 !important;
	font-family: 'Muli', serif;
}

@media screen and (max-width: 900px) {

	#content{
		overflow-x: hidden;
	}

	#top{
		width: 100%;
		margin: 0;
	}

	#top > div, #top > a{
		font-size: 3vh;
	}

	#top .drop{
		width: auto;
	}

	#top .drop div{
		margin: 10px 20px;
	}

	#gallery{
		position: relative;
		box-shadow: none;
		width: 100%;
		margin: 0;
	}

	#catgs{
		width: 80%;
		margin: 0 5%;
	}

	#item_view{
		position: absolute;
		height: 100%;
		width: 90%;
		top: 0;
		left: 85%;
		background: inherit;
		border-left: 1px solid #AAA;
		box-shadow: -5px 0px 30px #444;
	}

	#item_view #item_close{
		display: inline-block;
		padding: 4px 10px;
    	margin: 10px 0 0 10px;
		border: 1px solid #AAA;
    	font-size: 1.3em;
	}

	#item_view #item_imgs{
		float: none;
		width: 100%;
	}

}