
@media only screen and (max-width: 894px) {
    /* Style adjustments for viewports that meet the condition */

    .wrapper {
        margin: 0 auto;
        width: 94%;
    }
    .events, .latest_news{
        width:100%;
        float:none;
    }
    .home_news{
        padding-top:0px;
    }
    .home_news .pic_wrapper{
        float:left;
        margin-right:20px;
    }
    header nav{
        display:none;
        border-top:58px #444 solid;
        border-bottom:40px #555 solid;
        position:absolute;
        width:100%;
        top:0px;
        left:0px;
        right:0px;
        height:auto;
        background-color:#407898;
        float:none !important;
        z-index:10000;
    }
    .top_menu li{
        float:none !important;
        width:100%;
        text-align:left;
        height:auto;
    }
    .top_menu{
        position:static;
        margin:0px;
    }
    .main-header{
        height:140px;
    }
    .submenu, .categories{
        display:block;
        margin-left:10px;
        position:static;
        -webkit-border-radius: 0px;
        border-radius: 0px;
        -webkit-box-shadow: none;
        box-shadow: none;  
    }

    .mobile-nav,.mobile-nav-close{
        display:block;
    }
    .main_entry{
        padding:0px 20px;
        color:#FFF;
    }
    .main_entry:hover{
       color: #CCC;
    }
    .dropdown:hover{
        background: none;
        -webkit-border-radius: 0px;
        border-radius: 0px;
        -webkit-box-shadow: none;
        box-shadow: none;  
    }
    .dropdown:hover .whiteline{
        display: none;
    }
    #main_footer{
        height:auto !important;
        padding-top:20px;
        background-color:#83b1c8;
        padding-bottom:20px;
    }
    .footer_nav, .footer_contacts, .footer_logo{
        float:none !important;
        width:100%;
        margin:0px;
        padding-top:10px;
        overflow:hidden;
        border:0px;
    }
    .footer_nav{
        display:none;
    }
    .flex-control-nav{
        right:0px !important;
        bottom:-40px !important;
    }
    .flex-control-paging li a{
        width:18px !important;
        height:18px !important;
    }
    .flexslider .slides .caption{
        width:100% !important;
        bottom:0px !important;
        top:auto !important;
        webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    }
    .flexslider .slides .caption p{
        height:32px;
        overflow:hidden;
    }
    .slide_img_wrap{
        text-align:center;
        overflow:hidden;
        padding-top:20px;
    }
    .slide_img{
        position:static;
        float:none !important;
        display:inline-block !important;
        margin:0px;
    }
    body.open-menu header nav{
        display:block;
    }
    body.open-menu #content{
        display:none;
    }
    body.open-menu{
        background:#222;
    }

    #page-blocks .page-block{
    	width:100% !important;
    	float:none !important;
    }

	.contacts_row{
		float:none;
		width:100%;
	}
}

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

    .events, .latest_news{
        margin-top:10px;
    }
    .event{
        float:none;
        width:100%;
        margin:0px;
        max-width:none;
        height:auto;
        border-bottom:2px #CCC solid;
        padding-bottom:10px;
        margin-top:10px;
    }
    .flex-control-nav{
        right:0px !important;
        width:100% !important;
        bottom:-40px !important;
    }
    .gallery_article{
    	width:100%;
    	float:none;
    	margin:0px;
    }
    .categories{
    	float:none;
    	width:100%;
    	margin-bottom:10px;
    }
    .blog_article{
    	margin-top:40px;
    	width:100%;
    	float:none;
    }
    .article_thumb{
    	width:100%;
    	margin:0px;
    	margin-bottom:10px;
    	float:none;
    }
	.home_news .pic_wrapper{
		float:left;
		width:100%;
		margin-bottom:10px;
	}
}
