/* =Responsive Structure
----------------------------------------------- */
@media (max-width: 1200px) {
	/* Disable fixed navigation buttons */
	#nav-single-fixed,
	#nav-fixed {
		display: none;
	}
}

@media (max-width: 1140px) {
	body {
		padding:0;
	}
	#page {
		margin: 0 auto;
	}
	/* Disable triange */
	.triangle-l {
		display: none;
	}
	.triangle-r {
		display: none;
	}
	#access .menu {
		margin-bottom: 31px;
	}
	#access .menu ul {
		margin: 0 -1px;
	}
	/* Gallery thumbnails will be 4 columns from now on */
	.gallery-items li.item {
		width: 25%;
	}
}

@media (max-width: 800px) {
	/* Disable body padding */
	body {
		padding: 0;
	}
	#header {
		width: 800px;
	}
	#header #logo {
		width: 320px;
		text-align:center;
	}
	#header #logo img {
		width: 300px;
		text-align:center;
	}
	#header #socialmedia {
		margin-left:200px;
	}
	#header #salinasaddress {
		width:200px;
		font-size:12px;
		margin-left:10px;
		height:0px;
	}
	#header #santacruzaddress {
		width:200px;
		font-size:12px;
		margin-left:220px;
		height:0px;
	}
	#header #topmenu {
		width: 100%;
	}
	.halfcolumn {
		margin: 5px;
		width: 320px;
	}
	#nav2 {
		width: 700px;
	}
	#nav2 li.campershells { background: url(../images/navlines.png) no-repeat 0px 2px; }
	#nav2 li.tonneau { background: url(../images/navlines.png) no-repeat 0px 2px; }
	#nav2 li.vanequipment { background: url(../images/navlines.png) no-repeat 0px 2px; }
	#nav2 li.accessories { background: url(../images/navlines.png) no-repeat 0px 2px; }
	#nav2 li.contact { background: url(../images/navlines.png) no-repeat 0px 2px; }
	
	#nav2 li a {
		font-size: 12px;
	}
	
	/* first level */
	#nav2 > ul {
		margin-top:14px;
		font-size: 11px;
	}
	#nav2 > ul > li {
		width: 20%;
		height: 100%;
		float: left;
	}
	#nav2 > ul > li > a {
		height: 100%;
		font-size: 1.2em; /* 24 */
		line-height: 2.1em; /* 60 (24) */
		text-align: center;
	}
	#nav2 > ul > li:not( :last-child ) > a {
	}
	#nav2 > ul > li:hover > a,
	#nav2 > ul:not( :hover ) > li.active > a {
		color: #e22506;
	}
	
	/* second level */
	#nav2 li ul {
		background-color: #0073aa;
		display: none;
		position: absolute;
		top: 100%;
		margin-left: 0px;
		margin-top: 0px;
		padding-left: 0px;
		width: 180px;
	}
	#nav2 li:hover ul {
		display: block;
		left: 0;
		right: 0;
	}
	#nav2 li:not( :first-child ):hover ul {
		left: -1px;
	}
	#nav2 li ul a {
		font-size: 12px; /* 20 */
		line-height: 15px;
	}
	#nav2 li ul li a:hover,
	#nav2 li ul:not( :hover ) li.active a {
		background-color: #e22506;
	}
	#outercontainer {
		width:700px;
	}
	#container {
		width:700px;
	}
	#container #homeboxes {
		width: 800px;
	}
	.homeleftphoto {
		max-width:420px;
	}
	.homebox {
		width: 150px;
		padding: 15px;
		min-height: 575px;
	}
	
	
	
	/* And a full-width comment form */
	#respond {
		width: auto;
	}
}
@media (max-width: 650px) {
	/* Disable menu */
	#access .menu ul#tiny {
		display: none;
	}
	/* Enable dropdown menu */
	.selectnav {
		display: block;
	}
	/* Reorganize header elements */
	#branding #site-title {
		margin-bottom: 15px;
		text-align: center;
	}
	#branding #site-title img {
		display: inline;
	}	
	.social {
		position: relative;
		text-align: center;
		min-width: inherit;
		top: auto;
		right: auto;
		margin-bottom: 30px;
	}
	.social ul {
		float: none;
		text-align: center;
	}	
	.social ul li {
		float: none;
		display: inline;
		margin: 0;
		padding: 0 2px;
	}	
	.social ul li img {
		display: inherit;
		vertical-align: bottom;
	}
	.social .widget_search {
	    width: 185px;
	    margin: 0 auto 30px auto;
	    position: relative;
	}
	.social .widget_search  .search-text-box {
		float: none;
	    width: 174px;
	    display: block;
	}	
	.social .widget_search .search-text-box:focus {
	    width: 174px;
	}	
	.social input.search-submit-button {
		float: none;
		position: absolute;
		right: 0;
		top:0;
	}	
	/* Floated content doesn't work well at this size */
	.alignleft,
	.alignright {
		float: none;
	}
	.one-half, .one-third, .two-third, .three-fourth, .one-fourth, .one-fifth, .one-sixth {
		float: none;
		margin: 0 0 40px 0;
		width: 100%;
	}
	/* Use the available space in the smaller comment form */
	#respond input[type="text"] {
		width: 95%;
	}
	#respond .comment-form-author .required,
	#respond .comment-form-email .required {
		left: 95%;
	}
	/* Gallery thumbnails will be 2 columns from now on */
	.gallery-items li.item {
		width: 50%;
	}
	/* No need to float footer widgets at this size */
	#colophon #supplementary .widget-area {
		float: none;
		margin-right: 0;
		width: auto;
	}
	ul.tabs li {
		float: none;
		margin: 0;
		display: block;
	}

	ul.tabs li a {
		text-align: center;
	}

}

@media screen and (min-width: 600px) {

	/* ensure #nav is visible on desktop version */
	#nav {
		display: block !important;
	}

}
@media (max-width: 480px) {
	
	body {
		background-image: url(../images/topgradientmobile.gif);
	}
	#header {
		height: 352px;
		width: 320px;
	}
	#header #logo {
		width: 320px;
		text-align:center;
	}
	#header #logo img {
		width: 300px;
		text-align:center;
	}
	#header #socialmedia {
		display:none;
		width: 320px;
		clear:both;
		margin-left: 0px;
		text-align:center;
	}
	#header #salinasaddress {
		width: 320px;
		clear:both;
		margin: 0 0 0 0;
		text-align:center;
	}
	#header #santacruzaddress {
		width: 320px;
		clear:both;
		margin: 80px 0 0 0;
		text-align:center;
	}
	#header #topmenu {
		width: 100%;
	}
	#outercontainer {
		width:300px;
	}
	#container {
		width:300px;
	}
	#container #homeboxes {
		width: 300px;
	}
	.homebox {
		width: 270px;
		padding: 15px;
		min-height: 300px;
	}
	.halfcolumn {
		width: 100%;
		clear: both;
		margin-bottom: 30px;
	}
	#nav2{
				position: absolute;
				margin-top: 103px;
			}
			
			#nav2 li.campershells { background: none; }
			#nav2 li.tonneau { background: none; }
			#nav2 li.vanequipment { background: none; }
			#nav2 li.accessories { background: none; }
			#nav2 li.contact { background: none; }
			
				#nav2 > a
				{
					width: 3.125em; /* 50 */
					height: 3.125em; /* 50 */
					text-align: left;
					text-indent: -9999px;
					background-color: #e22506;
					position: relative;
				}
					#nav2 > a:before,
					#nav2 > a:after
					{
						position: absolute;
						border: 2px solid #fff;
						top: 35%;
						left: 25%;
						right: 25%;
						content: '';
					}
					#nav2 > a:after
					{
						top: 60%;
					}

				#nav2:not( :target ) > a:first-of-type,
				#nav2:target > a:last-of-type
				{
					display: block;
				}


			/* first level */

			#nav2 > ul
			{
				height: auto;
				display: none;
				position: absolute;
				left: 0;
				right: 0;
				margin-top:0px;
			}
				#nav2:target > ul
				{
					display: block;
				}
				#nav2 > ul > li
				{
					width: 100%;
					float: none;
				}
					#nav2 > ul > li > a
					{
						height: auto;
						text-align: left;
						padding: 0 0.833em; /* 20 (24) */
					}
						#nav2 > ul > li:not( :last-child ) > a
						{
							border-right: none;
						}


				/* second level */

				#nav2 li ul
				{
					position: static;
					padding: 1.25em; /* 20 */
					padding-top: 0;
				}
	
	
	#container #content #contentbody {
		position: relative;
		float: left;
		clear: both;
		width: 250px;
		left: 25px;
		top: 0px;
		padding: 20px 25px 0 25px;
		margin-bottom: 0px;
		text-align: left;
		z-index: 6;
	}
	#container #content #footer {
		width: 346px;
		background-image: url(../images/footer_mobile.gif);
		background-repeat: no-repeat;
	}
	#container #content #homephoto {
		width: 250px;
		height: 100px;
	}
	.homeleftphoto {
		max-width:300px;
	}
	A.pagebutton:link {
		font-size: 17px;
	}
	A.pagebutton:visited {
		font-size: 17px;
	}
	A.pagebutton:active {
		font-size: 17px;
	}
	A.pagebutton:hover {
		font-size: 17px;
	}
	.formtext {
		width:200px;
		text-align:left;
	}
	.formfield {
		width:200px;
	}
	input, textarea {
	  -moz-border-radius: 10px;
		border-radius: 10px;
		border:solid 1px #888;
		padding:5px;
		width:235px;
	}

	
	/* Dropdown menu size */
	.selectnav {
		width: 75%;
	}
	/* Related posts one column */
	.related-list{
		width: 100%;
		margin: 0 0 -40px 0;
		overflow: hidden;
	}
	.related-list li {
		width:100%;
		margin: 0 0 40px 0;
		float: none;
	}
	/* Disable avatars */
	.commentlist li.comment .avatar {
		display: none;
		float: none;
	}
	.commentlist li.comment .comment-content {
		margin: 0;
	}
	.commentlist .children li.comment {
		margin: 20px 0 0 20px;
	}
	
	.halfpage { width:100%; clear:both; padding:0px; }
	.thirdpage { width:100%; clear:both; padding:0px; }

}

@media (max-width: 320px) {
	#site-title {
		padding: 29px 0 0;
	}
	#supplementary {
		padding: 30px 29px 0;
		overflow: hidden;
	}
	#branding #site-title {
		margin: 0 29px 29px 29px;
	}
	.format-video .media {
		margin: 0 -30px 20px;
	}
	.format-image .full-size {
		margin: 0 -30px 20px;
	}
	.gallery-items {
		margin: 0 -30px 20px;
		
	}
	.map.full {
		margin: 0 -29px;
	}
	.halfpage { width:100%; clear:both; padding:0px; }
	.thirdpage { width:100%; clear:both; padding:0px; }
}



