@media(max-width:1020px){

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

	.pagewidth,
	.row_inner{
		max-width:90%
	}
	.tile-post.small{
		width:calc(25% - 10px);
		padding-bottom:calc(25% - 10px)
	}
	.tile-post.medium{
		width:calc(50% - 10px);
		padding-bottom:calc(25% - 10px)
	}
	.tile-post.large{
		width:calc(50% - 10px);
		padding-bottom:calc(50% - 10px);
		overflow:auto;
		-webkit-overflow-scrolling:touch
	}

	/* tile size in columns */
	.col4-1 .tile-post.small,
	.col3-2 .tile-post.small,
	.col3-1 .tile-post.small,
	.col2-1 .tile-post.small{
		width:calc(50% - 10px);
		padding-bottom:calc(50% - 10px)	
	}
	.col4-1 .tile-post.medium,
	.col3-2 .tile-post.medium,
	.col3-1 .tile-post.medium,
	.col2-1 .tile-post.medium{
		width:100%;
		padding-bottom:calc(50% - 10px)	
	}
	.col4-1 .tile-post.large,
	.col3-2 .tile-post.large,
	.col3-1 .tile-post.large,
	.col2-1 .tile-post.large{
		width:100%;
		padding-bottom:100%	
	}
	
}

@media(max-width:760px){
	
	/************************************************************************************
	CUSTOM POST TYPE SHORTCODE STYLES
	*************************************************************************************/
	/* portfolio details */
	.single .portfolio .post-inner{
		padding:3%
	}
}

@media(max-width:700px){
	
	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#content,
	#sidebar{
		width:100%;
		max-width:100%;
		float:none;
		clear:both
	}
	#sidebar .secondary{
		width:49%
	}
	
	/************************************************************************************
	SIDEBAR
	*************************************************************************************/
	.widget{
		margin-bottom:1.5%
	}
	#sidebar .secondary .widget{
		margin-bottom:3.5%
	}
	
}

@media(max-width:680px){
    #site-logo{
    	float:none;
    	margin:0 0 5px
    }
	#site-description{
	    position:static!important;
	    margin:0 0 20px;
	    border:0;
	    padding:0
    }
	
	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	/* loops-wrapper */
	.loops-wrapper{
		width:100%!important
	}

	/* portfolio-wrapper */
	.portfolio-wrapper{
		margin-left:0!important
	}
	
	/************************************************************************************
	POST VIDEO (css for fluid video)
	*************************************************************************************/
	.post-video{
		clear:both
	}

	/* disable webkit text size adjust (for iPhone) */
	html{
		-webkit-text-size-adjust:none
	}
	
	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#body{
		padding:34px 0
	}
	#content{
		overflow:hidden
	}

	/************************************************************************************
	GRID
	*************************************************************************************/
	.col4-1,
	.col4-2, .col2-1,
	.col4-3,
	.col3-1,
	.col3-2	{
		margin-left:0;
		width:100%;
		max-width:100%
	}
	
	/************************************************************************************
	POST
	*************************************************************************************/
	/* post */
	.post{
		max-width:100%!important;
		margin-left:0!important;
		float:none!important;
		width:auto!important
	}
	.portfolio-post{
		width:100%!important
	}
	
	/* reset grid margin */
	.loops-wrapper.grid2 .post,
	.loops-wrapper.grid3 .post,
	.loops-wrapper.grid2.sidebar-none .post,
	.loops-wrapper.grid3.sidebar-none .post,
	.shortcode.portfolio .post,
	.sidebar-none .shortcode.portfolio .post,
	.portfolio.loops-wrapper.grid3 .post,
	.sidebar-none .portfolio.loops-wrapper.grid3 .post,
	.portfolio.loops-wrapper.grid2 .post,
	.sidebar-none .portfolio.loops-wrapper.grid2 .post{
		margin-bottom:10px
	}
	
	/************************************************************************************
	POST NAV
	*************************************************************************************/
	.post-nav .prev, .post-nav .next{
		display:block;
		width:100%;
		clear:both;
		margin-bottom:10px
	}

	.single-portfolio .post-nav .prev, .post-nav .next{
		display:inline-block;
		width:auto;
		clear:none;
		margin-bottom:5px
	}
	
	/************************************************************************************
	COMMENTS
	*************************************************************************************/
	.commentlist{
		padding-left:0
	}
	.commentlist .commententry{
		clear:left
	}
	.commentlist .avatar{
		float:left;
		width:40px;
		height:40px;
		margin:0 10px 10px 0
	}

	/************************************************************************************
	TILE
	*************************************************************************************/
	.tile-post.small{
		width:calc(50% - 10px)!important;
		padding-bottom:calc(50% - 10px)
	}
	.tile-post.medium{
		width:calc(100% - 10px);
		padding-bottom:calc(50% - 10px)
	}
	.tile-post.large{
		width:calc(100% - 10px);
		padding-bottom:calc(100% - 10px);
		overflow:auto;
		-webkit-overflow-scrolling:touch
	}
	.tile-post.image .tile-flip,
	.tile-post.map .tile-flip{
		height:100%;
		width:100%; /* tile large and medium */
	}
	.tile-post.small .tile-flip{
		width:100%
	}
	.tile-post.large .tile-flip{
		height:100%
	}
	
	/************************************************************************************
	WOOCOMMERCE SUPPORT
	*************************************************************************************/
	.woocommerce #content div.product div.images,
	.woocommerce #content div.product div.summary{
		float:none!important;
		width:100%!important
	}
}
