body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
}
body.pdf {
	overflow: hidden;
}
#main-wrap {
	max-width: 800px;
	margin: 0 auto;
}
#item-list {
    width: 100%;
    margin: 0;
    padding: 0;
}
.list-item {
	/*width: 19%;*/
    width: 30%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	float: left;
	text-align: center;
	list-style: none;	
	height: 150px;
	margin: 10px 0.5%;
	position: relative;
	border: 1px solid #ddd;
}
.list-item a {
	display: block;
    height: 138px;
    padding: 5px;
}
.list-item a img {
	width: auto;
	max-width: 100%;
	height: 100%;
}
.list-item .item-author {
    background: rgba(125, 125, 125, 0.83);
    display: block;
    float: left;
    width: 100%;
    text-align: left;
    font-size: 13px;
    position: absolute;
    bottom: 0;
	left: 0;
    color: #fff;
    padding: 3px 5px;
    box-sizing: border-box;
    /*line-height: 17px;*/
    line-height: 20px;
    text-shadow: 0 0px 1px #000;
    height:150px;
}
.item-num {
	position: absolute;
    top: 0;
    left: 0;
    background: rgba(125, 125, 125, 0.83);
    color: #fff;
    text-shadow: 0 0px 1px #000;
    padding: 3px 7px;
    font-size: 13px;
    font-weight: bold;
}
#image-popup {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	display: none;
}
#image-popup2 {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #fff;
}
.pdf #image-popup2 {
	display: none;
}
iframe {
	width: 100%;
	border: 0;
	height: 100%;
	display: none;
}
body.pdf iframe {
	display: initial;
}
body.scrollfix {
	overflow: hidden;
}
#toolbar {
	position: absolute !important;
	left: 0;
	right: 0;
	top: 0;
	height: 46px;
	background: rgba(0,0,0,0.6);
	text-align: center;
	z-index: 99;
}
.button {
	color: #fff;
    font-size: 18px;
    border: 2px solid #fff;
    border-radius: 30px;
    margin: 6px 5px 0 5px;
    transition: .2s all;
    opacity: 0.8;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 32px;
}
.button .fa {
	vertical-align: baseline;
}
#zoom-in .fa, #next .fa, #reset .fa {
	margin-right: -1px;
}
#previous .fa {
	margin-left: -2px;
}
#close-btn .fa, #reset .fa {
	vertical-align: text-top;
}
.button:hover {
	opacity: 1;
}
.button:active{
	transform: scale(0.8);
}