.sb{ margin-right:30px;}
/* wrapper */
.smoothbox {
	position: fixed;
	top:0;
	left:0;
	background:rgb(0,0,0);
	background: rgba(0, 0, 0, 0.9);
	height:100%;
	width:100%;
	z-index: 999999;
}
/* wrapper after loading */
.sb-load {
	background:url('images/load.gif') center no-repeat rgba(0, 0, 0, .9);
}
/* vertical centering */
.smoothbox-table {
	top:0;
	height:100%;
	width:100%;
	display:table;
}
.smoothbox-centering {
	display:table-cell;
	vertical-align:middle;
	top:0;
	height:100%;
	width:100%;
}
/* horizontal centering & sizing */
.smoothbox-sizing {
	display:none;
	position: relative;
	margin: 0 auto;
	padding: 0px;
	width: 80%;
}
/* item wrapper */
.sb-items {
	margin: 0 auto;
	width: auto;
	padding: 0;
	list-style: none;
	border-radius: 2px;
	display: table;
}
.sb-items:after {
	content: "";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
/* items */
.sb-item {
	left: 0;
	top:0;
	width: 100%;
	max-height: 80%;
	float: left;
	margin-right: -100%;
	position: relative;
	zoom: 1;
	border-radius: 2px;
	box-shadow: 0px 0px 0px 5px rgba(0, 0, 0, 1), 0px 0px 0px 6px #292929;
	-webkit-backface-visibility: hidden;
 -webkit-transition: all .4s ease-out;
 -moz-transition:all .4s ease-out;
 transition: all .4s ease-out;
}
.no-trans {
	-webkit-transition:none;
	-moz-transition:none;
	transition:none;
}
.sb-item img {
	max-width: 100%;
	max-height: 100%;
	display: block;
	border-radius: 2px;
	position: relative;
}
/* forward animation */
.sb-item-ani {
	top: 400px;
	opacity:0;
	-webkit-transform:scale(.5)rotate(25deg);
	-moz-transform:scale(.5)rotate(25deg);
	transform:scale(.5)rotate(25deg);
}
/* back animation */
.sb-item-ani2 {
	top:400px;
	-webkit-transform:scale(.5) rotate(25deg);
	-moz-transform:scale(.5) rotate(25deg);
	transform:scale(.5) rotate(25deg);
	opacity:0;
}
.sb-caption {
	position: absolute;
	bottom: 0px;
	width: 100%;
	background:rgb(0,0,0);
	background: rgba(0, 0, 0, 0.9);
	color: #CCC;
	padding: 10px;
	box-sizing: border-box;
	-moz-box-sizing:border-box;
	z-index: 1;
	text-align: center;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}
/* buttons */
.sb-nav {
	position:absolute;
	top: 0px;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	display: none;
	z-index: 999999;
	text-align: center;
	filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
 	-webkit-transition:all .15s ease-out;-moz-transition:all .15s ease-out;transition:all .15s ease-out;
	zoom:1;
}

.sb-prev,
.sb-next {
	z-index: 99999999;
	position: absolute;
	top: 50%;
	overflow: hidden;
	display: block;
	width: 49px;
	height: 49px;
	margin-top: -25px;
}
.sb-prev {
	left: 0;
	background: url('icons/arrows.png') no-repeat 0 0;
	border-radius: 0 4px 4px 0;
}
.sb-next {
	right: 0;
	background: url('icons/arrows.png') no-repeat 100% 0;
	border-radius: 4px 0 0 4px;
}
.sb-prev:hover,
.sb-next:hover {
	background-color: #0088cc;
}

.sb-cancel {
	z-index: 9999999;
	position: absolute;
	top: 0;
	right: 0;
	width: 49px;
	height: 49px;
	cursor: pointer;
	background: transparent url('icons/close.png') no-repeat 50% 50%;
	opacity: 1;
	filter: alpha(opacity=100);
	border-radius: 0 0 0 4px;
}
.sb-cancel:hover {
	background-color: #da4f49;
}
