.tabs {
    position: relative;
    /*margin: 170px auto 130px auto;*/
    margin: 20px auto 20px auto;
    background: none;
    font-weight: 300;
    font-size: 16px;
    line-height: 180%;
    width: 100%;
    /* max-width: 1000px; */
}
.tabthumbs {
	/*width: 65.5%;
	position: fixed;
	top: 0px;
	right: 0px;
	margin: 0px 0px 0px -120px;
	padding: 40px 0px 13px 0px;*/
    z-index: 9999;
    margin: 0 5px;
    padding: 0;
    box-shadow: 0px 2px 8px #000;
    text-align: center;
    background: #000;
}
.tabthumbs ul, .tabthumbs li{
	list-style: none;
	margin:0 auto;
	padding:0;
	display: inline-block;
}
.tabthumbs li.hiddenlink{
	display:none !important;
}
.tabthumb{ /* span around a */
	display: block;
	margin:0;
	padding:0;
	text-align: center;
}
.tabthumbs li a{
	display: block;
	/*margin: 0 10px 20px 10px;
	padding: 9px 22px 11px 22px;*/
    margin: 4px 2px;
    padding: 3px 14px 6px 14px;
	background: #442e22; /* Old browsers */
	background: -moz-linear-gradient(top, #442e22 0%, #150e09 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, #442e22 0%,#150e09 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, #442e22 0%,#150e09 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#442e22', endColorstr='#150e09',GradientType=0 ); /* IE6-9 */
	color: #fff;
	font-size: 17px;
	cursor: pointer;
	border-radius: 7px;
	border: 2px solid #5f4940;
	font-weight: bold;
}
.tabthumbs li a:hover,
.tabthumbs li a:focus,
.tabthumbs li a:active,
.tabthumbs li a.selected{
	background: #432c1f;
	text-decoration: none;
	box-shadow: 0px 0px 5px -1px #fff;
}
.specbox{
	margin:0;
	padding: 30px;
	width: 100%;
	background: none;
	text-align: center;
}
.specbox h3{
	color:#fff;
	display:block;
	margin:0 0 10px 0;
	font-weight: 500;
	font-size: 26px;
}
/* *************** begin mobile *************** */
@media (max-width: 750px) {
body#gallery, body#galleries{
	padding-bottom: 7.5em !important;
}
.tabs{
	position:relative;
	margin: 0px auto 10px auto;
	width: 100%;
}
.tabthumbs{
top: auto;
right: 0px;
bottom:0;
width: 100%;
position: fixed;
margin: 0 auto;
padding: 8px 0px 10px 0px;
box-shadow: 0px -2px 8px #000;
}
.tabthumbs li a{
    margin: 4px 2px 6px 2px;
    padding: 3px 10px 5px 10px;
    /*margin: 0 8px 11px 8px;
	padding: 3px 5px 5px 5px;*/
	font-size: 15px;
}
}
/* *************** mobile *************** */
@media (max-width: 500px) {
body#gallery, body#galleries{
	padding-bottom: 3.5em !important;
}
.tabs{
	margin: 118px auto 0px auto;
}
.tabthumbs{
width: 100%;
/*top: 95px;*/
bottom: -16px;
padding: 8px 0px 10px 0px;
box-shadow: 0px -2px 8px #000;
background: #000;
}
.tabthumbs li a{
	margin: 0 2px 10px 2px;
	/*padding: 2px 4px 4px 4px;*//* Changed for displaying only "back to gallery" on mobile */
    padding: 2px 10px 4px 10px;
    line-height: 1.5em;
	font-size: 15px;
    box-shadow: 0px 0px 4px -1px #fff;
    border: 1px solid #5f4940;
}
.specbox h3{
font-size: 26px;
}
}
/* *************** mobile *************** */
@media (max-width: 350px) {
.tabs{
	margin: 74px auto 0px auto;
}
.tabthumbs{
/*top: 45px;*/
bottom: -18px;
padding: 8px 0px 0px 0px;
box-shadow: 0px -2px 8px #000;
}
.tabthumbs li a{
	border-radius: 6px;
	border: 2px solid #5f4940;
	box-shadow: none;
	margin: 0 4px 11px 4px;
	padding: 3px 8px 5px 8px;
}
}
