@media (min-width: 881px) {

}

@media (max-width: 1025px){

}

@media (max-width: 1220px){

#nav a{
    font-size: 20px;
    padding: 0 13px 20px 10px;
}
}

@media (max-width: 1180px){
	#big-search-bar input {
    	font-size: 32px;
	}
}



@media (max-width: 1000px){

#nav a {
    font-size: 18px;
    padding: 0 9px 20px 10px;
}
	
}

@media (max-width: 930px){
	#big-search-bar input {
    	font-size: 30px;
	}
}

@keyframes open{
	from{height: 0}
	to { height: 100%; }
}

@-moz-keyframes open{
	from{height: 0}
	to { height: 100%; }
}

@-webkit-keyframes open{
	from{height: 0}
	to { height: 100%; }
}

@-ms-keyframes open{
	from{height: 0}
	to { height: 100%; }
}

@-o-keyframes open{
	from{height: 0}
	to { height: 100%; }
}


@media (max-width: 893px) { 
	.slider-image{
		width: 100%;
	}
	.slider-image img{
		width: 100%;
		display: block !important;
	}
	.countdown-bar__text p,
	.countdown-bar__text a{
			font-size: 14px;
	}
	.half-frame{
		 width: 100% !important;
		max-width: 450px;
		float: left;
		padding-bottom: 31.25% !important;
		margin: 10px auto;
		display: block;
		float: none;
	}
	
	#video-playlist{
		padding-bottom: 104.25% !important;
		margin-bottom: 15px;
	}
	.ninecol, .eightcol, .sixcol, .fourcol, .threecol, .flex-threecol, .flex-fourcol, .flex-eightcol, .twocol, .tencol{
		width: 100%;
	}
	
	.mobile-logo{
		display: block !important;
	}
	
	.logo{
		display: none !important;
	}
	
	#bottom-footer .first p{
		flex-wrap: wrap;
		justify-content: center;
	}
	
	#bottom-footer .first p > *{
		padding: 22px;
	}
	
	.resource-banner{
		display: none !important;
	}
	
	.gallery .twocol{
		width:25%;
	}
	
	.gallery .twocol img{
		width:100%;
		display: block;
	}
	
	.sub-menu{
		flex-direction: column;
		position: relative;
		top: initial;
		opacity: 1;
		visibility: visible;
		display: block;
		max-height: 0px;
		border: none;
		-webkit-transition: max-height 500ms cubic-bezier(0.675, 0.170, 0.245, 0.795); 
		-moz-transition: max-height 500ms cubic-bezier(0.675, 0.170, 0.245, 0.795); 
		-ms-transition: max-height 500ms cubic-bezier(0.675, 0.170, 0.245, 0.795); 
		 -o-transition: max-height 500ms cubic-bezier(0.675, 0.170, 0.245, 0.795); 
			transition: max-height 500ms cubic-bezier(0.675, 0.170, 0.245, 0.795);
		overflow:hidden;
	}
	
	.menu-opened{
/* 		-webkit-animation: open 0.4s ease forwards;
		-moz-animation: open 0.4s ease forwards;
		animation: open 0.4s ease forwards; */
		max-height: 800px;
		border-top: 2px solid #fcb715;
		border-bottom: 2px solid #fcb715 !important;
	}
	


	
	.sub-menu.active{

	}
	
	.sub-menu li{
		width: initial;
	}

	.menu-item-has-children > a {
		position: relative;
		display: inline-block !important;
		margin: 0 auto;
		text-align: center;
		padding-bottom: 15px !important;
	}
	
	.menu-item-has-children > a:hover{
		color: #1682c6 !important;
	}
	
	.menu-item-has-children > a:hover:after{
		transform: translateY(-50%) rotate(-135deg);
	}
	
	.menu-item-has-children{
		padding-bottom: 0 !important;
		border-bottom: 0 !important;
	}
	
	.sub-menu .menu-item-has-children{
		padding-top: 0 !important;
	}
	
	.sub-menu li{
		border-right: none !important;
	}
	
	.sub-menu .sub-menu{
		padding: 10px;
		border-bottom: none;
	}
	
	.sub-menu .sub-menu li {
		flex-grow: 0;
		width: initial;
		border-right: none !important;
		padding: 0 !important;
		border-bottom: none !important;
		border-top: none !important;
		
	}
	
	.sub-menu .sub-menu li a{
		padding: 10px !important;
	}
	.header-links a {
    	font-size: 16px;
    	color: #fcb715;
	}

	.banner-section img {
    	width: 230%;
    	max-width: initial;
    	margin: 0 auto;
    	margin-left: -56%;
	}

	.banner-section{
		overflow: hidden;
	}

	.live-stream{
		padding: 0;
	}

	#big-search-bar{
		width: 85%;
	}

	.mosaic-tweets .ctf-item{
	 	width: 100%;
	}

	#big-search-bar input[type=submit] {
    background: url(https://sleepoutamerica.org/wp-content/themes/CovenantHouse/img/search-icon.png) no-repeat;
    border: 0;
    height: 1.5em;
    line-height: 1.5em;
    margin: 0;
    padding: 3px 0;
    text-indent: 100px;
    width: 25px;
    position: relative;
    top: -31px;
    left: -10px;
    display: inline-block;
    float: right;
    cursor: pointer;
}

	#big-search-bar input {
    	font-size: 16px;
    	font-weight: 600;
	}

	#big-search-bar .search-entry {
    	padding: 20px;
	}

	#fixed-nav{
    	max-height: 100%;
	}

	::-webkit-scrollbar {
    	width: 0px;
    	background: transparent; /* make scrollbar transparent */
	}

	.page-container {

    padding: 20px;
	}

	#post-container{
		padding: 25px;
	}

	.seventhcol{
	width: 100%;
	display: block;
}

.seventhcol-small{
	width: 100%;
	display: block;
	position: relative;
	min-height: 50px;
}

.seventhcol img,
.seventhcol-small img{
	position: relative;
	top: initial;
	left: initial;
	transform: initial;
	margin: 0 auto;
	padding: 0 55px;
	max-width: 401px;
}

.seventhcol-small img {
    max-width: 185px !important;
}

#default-page .seventhcol-small img{
	    padding: 0 75px;
}
    

	main{
		margin-top: 112px;
	}

	#nav{
		padding-right: 0;
	}

	.icon-container{
		text-align: center;
	}

	.icon-content .threecol{
		width: 50%;
		padding: 25px;
	}

	#social-feeds .first{
		padding-right: 10px;
	}

	#social-feeds .last{
		padding-left: 10px;
	}


#bottom-footer .tencol {
    position: relative;
    width: 77%;
}
    #bottom-footer .twocol {
    width: 22.666666665%;
    display: block;
    }

	.first,
	.last{
		padding: 0;
	}
    
    .map{
        width: 100%;
        margin: 30px 0;
        padding: 0;
    }
    .sixcol.left {
        padding: 30px;
    }
    
    .body-section{
        padding: 30px;
    }
    
    .button-container {
        width: 70%;
    }
    
    #donate-buttons .button {
        width: 100%;
        margin: 10px 0;
    }

	#slider-section .fourcol {
    		margin-bottom: 0px;
		padding: 50px;
		padding-left: 100px;
		padding-right: 100px;
	}

	#slider-section p{
		padding:25px 0;
		font-size: 16px;
	}

	#slider-section h1{
		font-size: 25px;
		padding-bottom: 10px;
	}

	#slider-section .eightcol{
		width: 100%;
	}

	header .twocol{
		width: 100%;
	}

	header .twocol a {
   		float: left;
        width: 50%;
        padding: 0;
	}

	header .eightcol{
		display: none;
		padding: 0;
		background: #ebebeb;
        width: 100%;
	}
    
    #nav{
        width: 100%;
    }
    
    #nav a{
        padding: 0 15px;
        text-align: center;
        font-size: 20px;
    }
    
    .nav-container{
        width: 100%;
    }
   
    
    header .flex-container img{
        max-width: 150px;
    }
	
    
    .header-links {
        padding: 0;
    position: relative;
}

	#nav a{
		display: block;
	}
    
    .banner-text {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
    padding: 30px;
    background: #1682c6;
    }
    
     #banner h2 {
    text-align: center;
    }
    
    .banner-text .button{
        float: none;
    }
    
    
    #top-nav{
	display: none;
    }	

    #mobile-top-nav{
	display: block;
    }

    .nav-container{
	padding-right: 0;
	}

    #header-search-bar{
	padding-top: 0;
	margin: 20px;
    }
    
    .header-links{
	margin: 20px 0;
	    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    }	

    .link-container{
	display: block;

    position: relative;
    height: 60px;
    max-height: initial !important;
    width: 100%;
	}
    #header-search-bar{
        padding-top: 0;
		    padding: 0 18px;
    margin: 20px 0 30px;
    position: relative;
    width: 100%;
    min-height: 20px;
max-width: initial;
    }

    .link-container{
	border-top: 1px solid #e1e1e1;
	}

    #search{
	    position: absolute;
    left: 50%;
    transform: translateX(-50%);
	}

    #footer-search-bar{
	width: 90%;
        display: block;
	margin: 10px auto 0;
	}

    .donor-stat h3{
	font-size: 22px;
    }

    .donor-stat h4{
	font-size: 20px;
    }

    .donor-state{
	min-height: 35px;
    }

    .donor-name, .team-name, .number, .money {
    	min-height: 46px;
	}

	        #ffwd_container1_0 #ffwd_container2_0 .ffwd_blog_style_object_info_container_0{
            float: right;
            width: 100%;
        }

        #ffwd_container1_0 #ffwd_container2_0 .blog_style_image_container_0{
            width: 100%;
            padding-right: 0px !important;
        }

		.hide{
			display: none;
		}

		.show{
			display: block;
		}

		.show h4{
			padding-bottom: 10px;
		}
	.post-content{
		    width: calc(50% - 30px);
	}
}

@media (max-width: 650px){
	.post-content{
		width: 100% !important;
	}
	.gallery .twocol{
		width: 50%;
	}
}

@media (max-width: 560px) {
    #top-footer {
    padding: 50px 20px;
    }
    
    #social {
    width: 85%;
    }
    
   
    
    .banner-text {
    padding: 30px 10px;
    }
    
    #social a {
    width: 20%;
    margin: 0;
    padding: 0 6px;
    float: left;
    }
    
    h1{
        font-size: 40px;
    }
    
    h2{
        font-size: 35px;
    }
    .slick-slide h4 a {
        font-size: 20px;

    }
    .button-container {
    width: 90%;
    }
    .body-section{
        padding: 30px;
    }
}

@media (max-width: 768px) { 
	.next-container-banner, .prev-container-banner {

    	top: 23.5%;
	}
}

@media (max-width: 400px) { 
	.icon-content .threecol {
    width: 100%;
    padding: 25px;
}

	.seventhcol img{
    padding: 0 25px;
	}
}


@media (max-width: 414px) { 
	.next-container-banner, .prev-container-banner {

    	top: 15.5%;
	}
}

@media (max-width: 320px) { 
	.next-container-banner, .prev-container-banner {

    	top: 12.5%;
	}
}
