/* sidebar active grid4 post */
@media screen and (min-width: 1175px) {
	.sidebar1 .tf_fluid.masonry-done.grid4>.post{
		width: 24.25%;
	}
}

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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#pagewrap {
		max-width: 100%;
	}

	body {
		position: relative;
	}
	body.fixed-header-enabled {
		padding-top: 150px;
	}

	.pagewidth,
	.module_row > .row_inner {
		max-width: 90%;
	}
	.module-layout-part .module_row.fullwidth > .row_inner,
	.module_row.fullwidth > .row_inner {
		max-width:100%;
	}

	/* content */
	#content {
		width: 71%;
	}

	/* sidebar */
	#sidebar {
		width: 26.2%;
	}
	#sidebar .secondary {
		width: 47%;
	}
}

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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}

	/* sidebar */
	#sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	#sidebar .secondary {
		width: 48%;
	}

	/************************************************************************************
	POST
	*************************************************************************************/
	/* list large image */
	.list-large-image .post-image {
		float: none;
		margin-right: 0;
	}
	.list-large-image .post-content {
		overflow: visible;
		float: none;
	}
	.post-image .themify_lightbox {
		display: block;
	}
	
	/************************************************************************************
	 WOOCOMMERCE
	*************************************************************************************/
	.woocommerce .cart-collaterals .cart_totals,
	.woocommerce .cart-collaterals .cross-sells,
	.woocommerce .cart-collaterals .shipping_calculator{
		width:100%;
		float:none;
		text-align: left;
	}
	/* cart collaterals */
	.woocommerce .cart-collaterals .cart_totals tr td {
		width: auto;
	}

	.single.woocommerce #content div.product div.images{
		margin-left: auto;
		margin-right: auto;
	}

}

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

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/************************************************************************************
	HEADING
	*************************************************************************************/
	.page-title,
	h1 {
		font-size: 2.2em;
	}
	h2 {
		font-size: 1.8em;
	}
	h3 {
		font-size: 1.6em;
	}
	h4 {
		font-size: 1.4em;
	}

	/************************************************************************************
	GRID
	*************************************************************************************/
	.col4-1,
	.col4-2, .col2-1,
	.col4-3,
	.col3-1,
	.col3-2	 {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}
	
	/************************************************************************************
	HEADER
	*************************************************************************************/
	/* prevent logo img extend the fixed header on mobile */
	.fixed-header-enabled #headerwrap #site-logo img {
		width: auto;
		max-height: 40px; 
	}


	/************************************************************************************
	POST
	*************************************************************************************/
	/* post title */
	.post-title {
		font-size: 2em !important;
	}

	/* post image */
	.post-image {
		float: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
	.post-image img,
	.post-image .themify_lightbox {
		width: 100%;
	}

	/* post content */
	.post-content {
		overflow: visible !important;
		float: none !important;
	}
	/* list post */
	.loops-wrapper.list-post .post-content {
		margin-left: 0;
	}
	.loops-wrapper.list-post .post-meta {
		width: auto;
		position: static;
	}
	.loops-wrapper.list-post .post-meta em {
		display: inherit;
	}
	.loops-wrapper.list-post .post-meta .post-author,
	.loops-wrapper.list-post .post-meta .post-category,
	.loops-wrapper.list-post .post-meta .post-tag,
	.loops-wrapper.list-post .post-meta .post-author,
	.loops-wrapper.list-post .post-meta .post-comment a {
		display: inline;
		text-align: left;
		border-top: none;
		padding: 0;
	}
	.loops-wrapper.list-post .author-pic {
		position: static;
		top: 0;
		left: -60px;
	}

	/************************************************************************************
	POST NAV
	*************************************************************************************/
	.post-nav .prev, .post-nav .next {
		display: block;
		width: 100%;
		clear: both;
		margin-bottom: 10px;
	}

	/************************************************************************************
	COMMENTS
	*************************************************************************************/
	.commentlist {
		padding-left: 0;
	}
	.commentlist .commententry {
		clear: left;
	}
	.commentlist .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 10px 10px 0;
	}

	/************************************************************************************
	FOOTER
	*************************************************************************************/
	#footer-logo {
		position: static;
	}
	.footer-nav {
		padding: 0;
	}

	/************************************************************************************
	SIGNUP and LOGIN BOX
	*************************************************************************************/
	.signup-box label {
		display: block;
	}
	.signup-box .submit-field {
		margin-left: 0;
	}

	/************************************************************************************
	WOOCOMMERCE SUPPORT
	*************************************************************************************/
	.woocommerce #content div.product div.images,
	.woocommerce #content div.product div.summary {
		float: none !important;
		width: 100% !important;
	}

}
