@media screen and (max-width: 1030px) {


	/* reset absolute elements to static */
	#header .social-widget, #site-logo, #site-description, #header #searchform, #nav-bar  {
		position: static;
		float: none;
		clear: both;
	}

	#header #searchform {
		text-align : center;
		padding : 10px 0;
	}

	#header #searchform #s {
		width : 85%;
		height: 20px;

		background-color : #333; 
		border : #000 solid 1px;
		color : #fff;
	}


	#site-logo {
		text-align: center;
		padding-top: 10px;
	}

	#site-description {
		display: none;
	}


}

/* smaller than 980 */
@media screen and (max-width: 980px) {
	/* reset grid to percentage */
	#content .col,
	#content .col4-1,
	#content .col4-2,
	#content .col4-3,
	#content .col3-1,
	#content .col3-2,
	#content .col2-1
	{
		margin-left: 0;
	}
	#content .col4-1 {
		width: 25%;
	}
	#content .col4-2, #content .col2-1 {
		width: 50%;
	}
	#content .col4-3 {
		width: 75%;
	}
	#content .col3-1 {
		width: 33%;
	}
	#content .col3-2 {
		width: 66%;
	}


	/* set img and object max width */
/*
	img, object {
		width: auto\9;
		max-width: 100%;
		height: auto;
	}
*/

	#pagewrap {
		width: 100%;
	}
/*
	#header {
		margin-bottom: 15px;
	}
*/
	#content {
		width: 60%;
		/*padding: 3% 4%;*/
		padding: 1px;
	}

	#sidebar {
		width: 30%;
	}
	/* footer grid */
	#footer .col2-1 {
		width: 48%;
		margin: 1% 2% 1% 0;
	}
	#footer .col3-1 {
		width: 31.2%;
		margin: 1% 2% 2% 0;
	}
	#footer .col4-1 {
		width: 23%;
		margin: 1% 2% 2% 0;
	}

	#site-logo a {
		font : bold 100%;
	}
}

/* smaller than 720 */
@media screen and (max-width: 720px) {

	html {
    		-webkit-text-size-adjust: none;
	}

	#pagewrap {
		width: 100%;
	}
	/* header */
	#header {
		height: auto;
	}
	
	#content {
		width: auto;
		float: none;
        padding: 0;
	}

	/* reset absolute elements to static */
	#header .social-widget, #site-logo, #site-description, #header #searchform, #nav-bar  {
		position: static;
		float: none;
		clear: both;
	}
	/* header */
	#header .social-widget {
		padding: 0 0 30px;
	}



	#header #searchform {
		text-align : center;
		padding : 10px 0;
	}

	#header #searchform #s {
		width : 85%;
		height: 20px;

		background-color : #333; 
		border : #000 solid 1px;
		color : #fff;
	}

	#header #searchform #s:focus {
		/*width: 150px;*/
	}


	#site-logo {
		text-align: center;
		/*font : bold 90% Verdana, Geneva, sans-serif;*/
		padding-top: 10px;
	}

	#site-description {

		display: none;
	}

	/* slider */
	#header-slider h3 {
		display: none;
	}
	/* post title */
	.post-title {
		font-size: 150%;
		line-height: 120%;
		padding-top: 0;
	}
	/* commentlist */
	.commentlist ul {
		margin-left: 20px;
	}
	.next-prev-comment {
		position: static;
		margin: 0 0 5px;
	}
	.commententry {
		clear: both;
	}
	/* sidebar */
	#sidebar {
		width: 100%;
	}
	/* footer */
	#footer .col4-1, #footer .col4-3, #footer .col3-2, #footer .col3-1, #footer .col2-1 {
		float: none;
		width: auto;
		margin: 0;
	}
	#footer-nav {
		text-align: center;
		padding-top: 10px;
		margin-bottom: 0;
	}
	#footer .footer-text {
		text-align: center;
		padding-top: 10px;
	}

/*
	iframe {
		width: 100%;
		height: 320px;
  	}

	img {
		max-width: 90%;
		height: auto;
		float: left;
	}
*/

	#content-footer {
		width: auto;
		float: none;
		padding: 1px;
	}

}

/* smaller than 560 */
@media screen and (max-width: 560px) {
	html {
    		-webkit-text-size-adjust: none;
	}

	/* main nav */
	#nav-bar {
		height: auto;
	}
	#main-nav li {
		height: auto;
	}
	#main-nav a {
		font-size: 100%;
		padding: 8px;
	}
	#header-slider {
		margin-bottom: 10px;
	}
	/* post date */
	.post-date {
		width: 44px;
		display: none;
	}
	/* post-nav */
	.post-nav span {
		width: auto;
		margin-bottom: 10px;
	}
	/* post title */
	.post-title {
		font-size: 120%;
		line-height: 120%;
	}



}

@media screen and (max-width: 350px) {
   html {
      -webkit-text-size-adjust: none;
   }

	#main-nav a {
		font-size: 100%;
		padding: 8px;
	}

#main-nav ul a, #main-nav .current_page_item ul a, #main-nav ul .current_page_item a, #main-nav .current-menu-item ul a, #main-nav ul .current-menu-item a {

	font-size : 100%;

	}
#main-nav ul a:hover, #main-nav .current_page_item ul a:hover, #main-nav ul .current_page_item a:hover, #main-nav .current-menu-item ul a:hover, #main-nav ul .current-menu-item a:hover {

	font-size : 100%;
	}
}
