div#gallery{
	border: 16px groove #0a3f58;
	padding: 15px;
	background: #ccc;
	-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.5);
	-moz-box-shadow: 0 0 5px rgba(0,0,0,0.5);
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	-ms-border-radius: 1px;
	-o-border-radius: 1px;
	border-radius: 1px;
	margin-bottom: 20px;
	 position: relative;
}
div#gallery img{
	border-radius: 2%;
	-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.5);
	-moz-box-shadow: 0 0 5px rgba(0,0,0,0.5);
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
div#gallery div.img_top{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0,0,0,0.7);
  padding: 10px;
  width: 95%;
  height: 150px;
  line-height: 25px;
  color:#fff;
 -webkit-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

div#gallery div.img_top:hover{
	opacity: 0.1;
 background-color: rgba(0,0,0,0.8);
}
.col-1-2 h2{
	background-color: #efefef;
	border-bottom: 1px solid #cecece;
	margin: 2px !important;
	width: 100%;
	clear: both;
	padding-left: 10px;
}
div.likes{
	text-align: center;
	margin: 10px;
	height: 20px;
}
img.icon{
	width: 35px;
	float: left;
	margin-right: 10px;
	border: 1px solid #ccc;
}
div.inst_caption{
	font-size: 12px;
	max-height: 150px;
	overflow: auto;
}
div.inst_comment{
	max-height: 200px;
	overflow: auto;
}
div.inst_comment div{
	font-size: 12px;
}

#gallery_list{
	border: 0;
	padding: 5px;
	margin: 10px;
}

div#gallery_list img{
	border-radius: 50%;
}

table.nav{
	width: 95%;
	margin:10px auto 10px auto ;
}
@media only screen and (max-width: 480px) {
	table.nav{
		position: fixed;
		bottom: 0;
		width: 100%;
		opacity: 0.9;
		-moz-opacity: 0.9;
		filter:alpha(opacity=90);
	}
	div.gallery {
		min-height: 600px;
	}
}

table.nav div{
	position: relative;
}
table.nav div i{
	position: absolute;
  	top: 30%;
  	left: 35%;
  	transform: translate(-30%, -35%);
  	-ms-transform: translate(-30%, -35%);
	color: #fff;
	font-size: 70px;
}
table.nav div.prev{
	float: left;
	margin-left: 20px;
}
table.nav div.next{
	float: right;
	margin-right: 20px;
}
table.nav div img{
	border: 3px solid #0a3f58;
	width: 60px;
	height: 60px;
	border-radius: 10%;
}
.row img{
	padding:5px;
	border-radius: 50%;
	-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.5);
	-moz-box-shadow: 0 0 5px rgba(0,0,0,0.5);
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

@media only screen and (max-width: 510px) {
	div#gallery div.img_top{
	  bottom: -20px;
	  height: 100px;
	}
}