/******************************************
* Media Queries (Responsive Design)
*******************************************/

/*
WARNING! DO NOT EDIT THIS FILE!

To make it easy to update your theme, you should not edit the styles in this file. Instead use
the custom.css file to add your styles. You can copy a style from this file and paste it in
custom.css and it will override the style in this file.

*/


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

    .page-wrap {
        max-width: 96%;
    }

    #main {
        width: 67%;
    }

    #sidebar {
        width: 30%;
    }

    #footer {
        max-width: 96%;
    }

    #home_ad img {
        max-width: 100%;
        height: auto;
    }

    .navbar-brand.left-align {
        max-width: 100%;
    }

    .navbar-brand img {
        max-width: 100%;
        height: auto;
    }

    #head_banner {
        max-width: 100%;
				    /*background: url(../img/mgelogo_bottom.jpg) no-repeat !important;*/
    }

    #head_banner img {
        max-width: 100%;
        height: auto;
    }

}

@media (max-width: 1210px) {
    .navbar-brand {
        /*background-size: contain;
        height: 555px*/
    }
    #navbar-top {
            background: #6a7b8b;
    }
		.navbar .top-navbar {
    margin: 0 0 0px 0;
}
    .main-navbar .navbar-nav a {
        font-size: 15px;
    }
    .head_topper {
       /*  height:450px; */
    }

}

@media (max-width: 1100px) {
    .head_topper {
       /* height:430px; */
    }
    .main-navbar .sf-menu > li {
        padding: 10px 3px;    
    }
    
    
    
}

@media (max-width: 1000px) {

    .inner-header {
        height: 100px!important;
    }
    
    .head_topper {
        height:0;
    }
    
    .navbar-brand {
        background-position-y:50px;
    }
    #head_banner{background:none !important;}
    .calendartable {
        display:none;
    }
    
    .navbar-brand {
       /* background-size: cover;
        background-position-y: 56px;
        background-size: 100%!important;*/
    }
    
}

@media (min-width: 1200px) {
		.head_topper .head_topper_caption{	font-size: 30px;}
		.head_topper .head_topper_caption p{
				line-height:20px;
		}
		.head_topper .head_topper_caption p.of-site{
				font-size: 22px;
		}
		.head_topper .head_topper_caption p.name{
			font-size: 50px;
			line-height:70px;
		}
}
@media (min-width: 1000px) {

    #menu-top-slide {
        display: none !important;
    }

    #menu-main-slide {
        display: none !important;
    }
}




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

    
    .navbar-brand {
        /*background-position-y: bottom!important;*/
    }
    
    /* Menu */
    header .menu-top-container { text-indent: -9999px; height: 0; }
    header .menu-main-container { text-indent: -9999px; height: 0; }
    .menu-top-container.mm-menu { text-indent: 0; height: 100%; }
    .menu-main-container.mm-menu { text-indent: 0; height: 100%; }

    #navbar-top,
    #navbar-main { display: none; }
    .navbar-toggle { display: block }

    .top-navbar .navbar-toggle {
        margin: 2px 0 0 0;
    }

    .main-navbar {
        padding-left: 15px;
    }
    .main-navbar .navbar-nav a {
        font-size: 14px;
    }
    .head_topper {
        height:0;
    }
    .main-navbar {
        background: rgb(99, 116, 132);  
    }
}



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

    .navbar-brand {
        /*background-position-y: top;*/
    }
    
    
    #main {
        width: 60%;
    }

    #slider {
        width: 100%;
        padding: 0;
        float: none;
        border: none;
        margin-bottom: 30px;
    }

    .featured-widgets {
        float: none;
        width: 100%;
    }

    #sidebar {
        width: 37%;
    }


    #main .homepage-widgets .homecat ul li h3 {
        font-size: 16px;
    }

    .recent-posts .post-thumb {
        max-width: 50%;
    }

    #slider #slidemain .slide_content h2 {
       font-size: 24px;
   }

   .recent-posts .entry-title {
       font-size: 18px;
   }

   h1.entry-title {
       font-size: 22px;
   }

    .footer-widgets.widget-columns-4 .column {
        width: 48%;
        margin-right: 2%;
    }

    .footer-widgets.widget-columns-4 .column:nth-child(4n+4) {
        margin-right: 2%;
    }

    .footer-widgets.widget-columns-2 .column:nth-child(2n+2){
        margin-right: 0;
    }

    .navbar-nav > li {
        margin: 0 10px 0 0;
    }
    
}


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


    #head_banner{top:0px}
    
    .page-wrap {
        max-width: 96%;
        padding: 0 3%;
    }

    #footer {
        max-width: 96%;
        padding: 3%;
    }

    #main {
        width: 100%;
        float: none;
    }

    #slider {
        width: 57.45%;
        padding-right: 3.5%;
        float: left;
        border-right: 1px solid #eee;
        margin-bottom: 0;
    }

    .featured-widgets {
        float: right;
        width: 39%;
    }

    #sidebar {
        width: 100%;
        float: none;
    }

    .navbar-brand h1 {
        font-size: 50px;
    }

    .section-title {
        font-size: 26px;
    }

    h1.entry-title { font-size: 22px; }

    .carousel-slider .item {
        margin: 0 2.75% 0 0;
        width: 31.5%;
    }

    .carousel-slider .flickity-enabled .item {
        margin: 0 2.75% 0 0;
        width: 31.5%;
    }


    .navbar-brand,
    .navbar-brand.left-align {
        max-width: 100%;
        float: none;
        text-align: center;
    }

    #head_banner {
        max-width: 100%;
        float: none;
        text-align: center;
        margin: 0;
    }

}
@media screen and (max-width: 860px) {
    .head_topper {
        height:0;
    }
}
/* Tablets */
@media screen and (max-width: 768px) {

    .page-wrap {
        max-width: 100%;
        border: none;
    }
    
    .head_topper {
        height:0;
    }

    #footer {
        max-width: 100%;
    }

    h1.entry-title { font-size: 18px; }

    .recent-posts .post-thumb {
        max-width: 35%;
    }

    .readmore_button { display: none; }

    .footer-widgets .column {
        width: 100% !important;
        display: block;
        border: none;
    }

    #comments > h3,
    #respond > h3 { font-size: 22px; }

    .carousel-slider .item {
        margin: 0 2% 0 0;
        width: 48%;
    }

    .carousel-slider .flickity-enabled .item {
        display: inline-block;
        margin: 0 2% 0 0;
        width: 49%;
    }

    #footer .footer-info .designed {
        display: block;
    }

    #respond .form_fields p {
        margin-bottom: 24px;
        width: 100%;
        float: none;
        padding-left: 0;
    }

    .form-allowed-tags {
        display: none
    }

}

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

    #slider {
        width: 100%;
        padding: 0;
        float: none;
        border: none;
        margin-bottom: 30px;
    }

    .featured-widgets {
        float: none;
        width: 100%;
    }

    
    
}


/* All Mobile Sizes (devices and browser) */
@media screen and (max-width: 1000px) {
#head_banner{margin:0px;top:0px;}
    .navbar-brand {
			
        /*background: none;
        height: 50px;*/
    }

    .navbar-brand h1 {
        font-size: 34px;
    }

    #main .homepage-widgets .homecat ul.featured-stories li {
        width: 100%;
        margin: 0 0 30px;
        display: block;
    }

    #main .homepage-widgets .homecat .post-thumb {
        float: left;
        margin: 0 20px 0 0;
        max-width: 30%;
    }

    #main .homepage-widgets .homecat .post-excerpt {
        display: none;
    }

    #main .homepage-widgets .homecat ul.featured-stories li:before,
    #main .homepage-widgets .homecat ul.featured-stories li:after { content: " "; display: table; }
    #main .homepage-widgets .homecat ul.featured-stories li:after { clear: both; }

    .recent-posts .entry-content {
        display: none;
    }

    .col_arch  ul li { width: 100%; float: none; margin: 0 0 5px 0; }

    .post-meta span {
        display: block;
        margin: 10px 0;
    }

    .post-meta .views {
        float: none;
    }
		.head_topper .head_topper_caption{
			flex-direction: column;
			align-items: center;
			justify-content: flex-end;
			padding-bottom:20px;
	}
}
@media screen and (max-width: 700px) {
		.navbar-brand {
			/*	background-position-y: 30px;
				background-size: 100%;*/
		}
		#actionswork{
			padding: 21px 10px 10px 10px;
		}
}
@media screen and (max-width: 550px) {
		.top-navbar .header_social{width:100%;}
		.top-navbar .navbar-toggle{text-align:center;}
		#actionswork {
				width: 100%;
				padding: 0px 0px 20px 0px!important;
		}
}
@media screen and (max-width: 460px) {

    .carousel-slider .item {
        margin: 0;
        width: 100%;
    }

    .carousel-slider .flickity-enabled .item {
        margin: 0;
        width: 100%;
    }
}


