/* Large desktop */
@media (min-width: 979px) {
#site-navigation{
    display: block !important;
}
}

@media (max-width: 1400px) {
.site-layout--boxed #page,
.mt-container  {
	width: 1200px;
}
.site-branding {
	width: 20%;
}
.mt-social-menu-wrapper {
	width: 80%;
}
}

@media (max-width: 1200px) {
.site-layout--boxed #page,
.mt-container  {
	width: 100%;
    padding: 0 20px;
}
.site-layout--boxed .mt-container {
	padding: 0 30px;
}
.site-branding {
	width: 100%;
	text-align: center;
    float: none;
}
.mt-social-menu-wrapper {
	float: none;
	width: 100%;
}
#site-navigation ul li:first-child a {
	padding-left: 0;
}
}

@media (max-width: 979px) {
.mt-logo-row-wrapper {
	position: relative;
}
.menu-toggle{
    display: block;
}
#site-navigation {
	display: none;
	position: absolute;
	top: 90%;
	left: 0;
	width: 100%;
	background: #fff;
	float: none;
	z-index: 9999;
}

#site-navigation .mt-container {
	border: none;
	padding: 0;
}
#site-navigation ul{
    display: block;
}
#site-navigation ul li {
	border-bottom: 1px solid #e1e1e1;
	display: block;
}
#site-navigation ul li a {
	line-height: 44px;
	padding: 0;
}
#site-navigation ul li a::after{
    display: none;
}
#site-navigation ul li .sub-menu, 
#site-navigation ul li .children{
	position: static;
	min-width: 100%;
	opacity: 1;
	top: 0;
	left: 0;
	visibility: visible;
	display: none;
	background: none;
	-webkit-transition: none;
	-moz-transition: none;
	-ms-transition: none;
	-o-transition: none;
	box-shadow: none;
    transform: scaley(1);
	-webkit-transform: scaley(1);
	-ms-transform: scaley(1);
	transform-origin: 0 0;
	-webkit-transform-origin: 0 0;
	-ms-transform-origin: 0 0;
}
#site-navigation ul > li:hover > .sub-menu,
#site-navigation ul > li:hover > .children {
    top: 0;
}
#site-navigation ul li a.sub-toggle.sub-toggle {
    background: #333 none repeat scroll 0 0;
    color: #fff;
    cursor: pointer;
    display: block;
    height: 24px;
    line-height: 25px;
    position: absolute;
    right: 15px;
    text-align: center;
    top: 6px;
    width: 24px;
    padding: 0 !important;
}
#site-navigation ul > li:hover > .sub-toggle,
#site-navigation ul > li.current-menu-item .sub-toggle,
#site-navigation ul > li.current-menu-ancestor .sub-toggle {
    background: #666;
}
#site-navigation li.current-menu-item > .sub-toggle {
    background: #ffffff none repeat scroll 0 0;
}
#site-navigation li.current-menu-item > .sub-toggle i {
    color: #d40234;
}
#site-navigation li.menu-item-has-children > a::after, 
#site-navigation li.page_item_has_children > a::after{
    display: none;
}
#site-navigation ul.sub-menu li, #site-navigation ul.children li {
	text-align: center;
}
}
 
/* Portrait tablet to landscape and desktop */
@media (max-width: 850px) {
.banner-title-btn-block {
	padding: 15px;
}
#primary, .home.blog #primary,
#secondary, .home.blog #secondary{
    width:100%;
    float: none;
}

#secondary, .home.blog #secondary {
	margin-top: 40px;
}

#top-footer.footer-column-one .mt-footer-widget, 
#top-footer.footer-column-two .mt-footer-widget, 
#top-footer.footer-column-three .mt-footer-widget, 
#top-footer.footer-column-four .mt-footer-widget {
	width: 97%;
	margin-bottom: 3%;
}

#bottom-footer {
	text-align: center;
}

#footer-menu li a {
	font-size: 12px;
	padding: 0 10px;
}
#footer-navigation,
.site-info {
	display: inline-block;
	float: none;
}
.error-404.not-found {
	width: 90%;
}
.error-num {
	font-size: 120px;
}
.no-sidebar.mt-archive--block-grid-style article,
.no-sidebar.mt-archive--masonry-style #mt-masonry article {
	width: 47%;
}
}
 
/* Landscape phone to portrait tablet */
@media (max-width: 768px) {
.banner-title-btn-wrapper {
	bottom: 0;
	top: auto;
	width: 100%;
	height: auto;
}
.mt-header-social-wrapper {
	width: 100%;
	float: none;
	text-align: center;
	padding: 0;
}
.mt-logo-row-wrapper {
	padding: 20px 0 0;
}
}
 
/* Landscape phones and down */
@media (max-width: 600px) {
#mt-masonry article {
	width: 100%;
	padding: 0;
}
.no-sidebar.mt-archive--block-grid-style article,
.no-sidebar.mt-archive--masonry-style #mt-masonry article {
	width: 97%;
}
.archive-grid-post-wrapper article,
.mt-archive--masonry-style #mt-masonry article{
    width: 97%;
}
#mt-scrollup {
	display: none !important;
}
.mt-related-posts-wrapper article {
	width: 97%;
}
}

@media (max-width: 480px) {
.nav-links .nav-previous, .nav-links .nav-next {
	float: none;
	width: 100%;
	margin: 20px 0;
}
.navigation .nav-links a {
	width: 100%;
	text-align: center;
}
}