/* ----------------------------- Less than 1600 ----------------------------- */
@media screen and (max-width:1600px) {
	
	.masonr{
		width: 31.0%;
		margin: 0 1%;
	}
}

/* ----------------------------- Less than 1280 ----------------------------- */
@media screen and (max-width:1280px) {
	
	.masonr{
		width: 48%;
		margin: 0 1% 0 1%;
        padding-bottom: 20px;
	}
    #content{
        width: 100%;
    }
    #sidebar{
        float: left;
        width: 100%;
        margin-left: 0;
    }
}
/* ----------------------------- Less than 1024 ----------------------------- */
@media screen and (max-width:1024px) {
    
    #sdbr-trigger{
        z-index: 999;
        font-size: 25px;
        padding: 5px 8px;
        position: absolute;
        top: 12px;
        left: 12px;
        background: #dc7075;
        color: #fff;
        border-radius: 3px;
        border: 1px solid #dc7075;
    }
    .leftsidebar-widgets{
        margin-top: 20px;
    }
    
    #sdbr-trigger:hover{
        background: none;
        color: #dc7075;
    }
    
    #leftsidebar{
        display: none;
    }
    .logo-wrap{
        display: none;
    }
    .mobile-logo-wrap{
        display: inline-block;
        width: 100%;
        text-align: center;
        background: #edece8;
        box-shadow: rgba(0,0,0, 0.2) 0px 0px 5px 0px;
    }
    .logo-img, .logo-text {
        display: inline-block;
        margin: 10px 0;
    }
 
    #wrapper{
        margin-left: 0px;
        width: 100%;
    }
    
}

/* ----------------------------- iPad (landscape) ----------------------------- */
@media screen and (min-width:768px) and (max-width:1024px) {
	
	.tabs li a {
		width:32px;
	}

}

/* ----------------------------- iPad (portrait) ----------------------------- */
@media screen and (min-width:650px) and (max-width:768px) {
		
	#content {
		width: 65.5%;
	}

	#sidebar {
		width: 22.75%;
		margin-left: 2.75%;
		margin-top: 50px;
		clear: none;
	}
	
	.tabs li, .tabs li a {
		width: 100%;
		margin-bottom: 2px;
	}
	.tabs > li:first-child a {
		margin-left: 6px;
	}
	.count-box {
		padding-left: 48px;
	}
	
	#footer .widget{
		width: 50%;
        margin: 0;
	}
	#footer .widget:nth-child(3){
		float: right;
	}
	
}

/* ----------------------------- iPhone ----------------------------- */
@media only screen and (max-width:767px) {
	
	body {
	    font: 13px/22px 'Open Sans', Arial, sans-serif;
	}
	
	#main {
		padding: 0 10px !important;
	}
	
	#content {
		margin-top: 30px;
		width:100%;
	}
	
	#content p {
		font-size: 13px;
	}
	

	.scroll {
		margin: 30px 0 30px 0;
	}
	
	.scroll-excerpt {
		font-size: 26px;
		line-height: 36px;
	}
	
	.entry-title {
		font-size: 24px;
		line-height: 34px;
	}
	
	.title-meta {
		font-size: 11px;
	}
	
	.post {
		margin-bottom: 35px;
	}
	
	.post .bar {
		padding-top:10px;
	}
	
	.bar .tags .title {
		margin-right: 8px;
	}
	
	.bar .share {
		margin: 0 0 0 20px;
	}
	.bar .post-info {
		padding-top: 7px;
	}
	
	.bar .share a {
		float: left;
	}
	
	.post-wrap .post:last-child {
		margin-bottom: 0px;
	}
	
	.post-nav {
		margin: 25px 0;
	}
	
	.next-prev {
		margin-top:0px;
		font-size: 12px;
	}
	
	#sidebar {
		clear: both;
		float: left;
		width: 100%;
		margin: 0 0 15px 0;
	}
	
	#sidebar .widget{
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	
	.tabs > li a {
		width: 55px;
	}
	
	#respond input[type="text"], #respond textarea {
    	width: 100%;
    }
    
    #cancel-comment-reply {
		float: left;
	}
	
	.wpcf7 input[type="text"] {
    	width: 100%;
    }
    
    #footer .copyright {
	    margin-top: 15px;
    }
    
    .social-icons {
		float: left;
		margin-top: 15px;
	}

	.footer-inner{
		width: 98%;
		margin: 0 1%;
	}
	#footer  .widget{
		width: 50%;
		margin: 0 0 10px 0;
	}
}

/* ----------------------------- iPhone menu ----------------------------- */
@media only screen and (max-width:650px) {

	.logo-img, .logo-text {
		margin-bottom: 10px;
		text-align: center;
	}
	
	.logo-default{
		width:100%;
	}

	#sidebar{
		max-width: 96%;
		margin: 0 2%;
		margin-bottom: 15px;
	}
	
	#sidebar .widget{
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	
	#footer .widget{
		width: 100%;
		float: left;
	}
	

	#content{
		max-width: 96%;
		margin: 30px 2% 0 2%;
	}
	.masonr{
		width: 100%;
		padding-bottom: 15px;
		margin: 0 0 0 0;
	}
    #sdbr-trigger{
        font-size: 21px;
    }

}
/* ----------------------------- Less that 320 ----------------------------- */
@media only screen and (max-width:320px) {
    #leftsidebar{
        width: 280px;
    }
    #open-sidebar-overlay {
        left: 280px;
    }
    .main-nav li {
        width: 190px;
    }
}


@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (max--moz-device-pixel-ratio: 2) {

}
