

/* Global =================================================================== */

html, body{
    width: 100%;
    height: 100%;
}

body {
  background: #dee1e5;
  margin:0;
  padding:0;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

/* Wrapper ================================================================== */

#layout{
    max-width: 1200px; 
    margin: 0 auto;
    will-change: blur;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	background:#fff;
}
#popup-manager.popup-show + #layout, .wrap_blur {
    -webkit-filter:blur(2px);
    -moz-filter:blur(2px);
    -ms-filter:blur(2px);
    -o-filter:blur(2px);
    filter:blur(2px);
}
/* Header =================================================================== */

#layout header {
	display: block;
	margin-bottom:10px;
	position:relative;
}

body.has-redactor-fullscreen #header{
	display:none;
}

header *, header *:before, header *:after,
footer *, footer *:before, footer *:after{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.logo-slogan{
	font-size:11px;line-height:11px;text-transform:uppercase;
}


#widget_pos_top{  transition: max-height 0.25s ease-in; max-height:200px; }

/* Main Navigation =========================================================== */

.open-search nav{
	
}
nav {
	text-align:center;
	width:100%;
	display:block;
	box-sizing:border-box;
	padding:0 44px;
}

nav > .menu {
	margin:0 auto;
	text-align:center;
}

/* Body ===================================================================== */

#body{
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  padding:10px 25px;
}
.is_home #body{

}

@media screen and (max-width: 1200px) {
#body{
	padding:0 20px;
}
}


/* Breadcrumbs ============================================================== */

#breadcrumbs { margin:10px 0 15px 0; background:#fff; position: relative; padding-right:30px; }

#breadcrumbs ul, #breadcrumbs li { margin:0; padding:0; list-style: none; }

#breadcrumbs ul{
    overflow: hidden;
    position: relative;
}

#breadcrumbs ul li {
    font-family: BaseFontMedium, Arial, serif;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #000;
    border-spacing: 0;
	float:left;
}

#breadcrumbs ul li a {
    color:#0072bc;
}

#breadcrumbs ul li a:hover {

}

#breadcrumbs ul li.sep {
    padding:0 5px;
	position:relative;
}
#breadcrumbs ul li.sep:after {
	content:"/";
}

#breadcrumbs ul li.home {
    width: 16px;
}

#breadcrumbs ul li.home a {
    display:block;
    width:16px;
    height:32px;
    background: url("../images/nav-home.png") no-repeat left center;
}


/* Section and Sidebar ================================================================== */
.maincols{
	display:flex;
	justify-content: space-between;
	width:100%;
	align-items: flex-start;
	height:100%;
	flex-wrap: wrap;
}
.no_sidebar .maincols{
	display:block;
}
#body aside,
#body #aside_left,
#body section{
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  height:100%;
  max-width:100%
}

#body aside,
#body #aside_left{
	
}

/* Section ================================================================== */
#body section{
    flex-grow: 1;
}

  
body.is_sidebar:not(.is_left) #body section,
body.is_left:not(.is_sidebar) #body section {    
    flex-basis: calc(100% - 300px);
	max-width:calc(100% - 300px);
}

body.is_sidebar:not(.is_left) #body section{
	padding-right:25px;
}
body.is_left:not(.is_sidebar) #body section {    
	padding-left:25px;
}

body.is_left.is_sidebar #body section {    
    flex-basis: calc(100% - 600px);
	padding-left:25px;
	padding-right:25px;
}



#body section article {
    padding: 0;
    background:#FFF;
    margin-bottom: 10px;
    position: relative;
    z-index: 0;
}

#body section h1{
    margin-bottom: 20px;
}

#body section h1 + .parent_title{
    font-size:16px;
    margin: -10px 0 20px 0;
}
.item_group_title {
    background: url("../images/icons/group.png") no-repeat left center;
    padding: 0 0 0 25px;
}



/* Sidebar left and right ================================================================== */

#body #aside_left,
#body aside{    
	position:relative;
	box-sizing:border-box;
	min-height:600px;
	z-index:0;
}

body:not(.is_left) #body aside,
body:not(.is_sidebar) #body #aside_left{
	flex-basis: 300px;
	max-width:300px;
}
body.is_home:not(.is_left) #body aside,
body.is_home:not(.is_sidebar) #body #aside_left{
	flex-basis: 300px;
	max-width:300px;
}

body.is_sidebar.is_left #body aside,
body.is_sidebar.is_left #body #aside_left{
	flex-basis: 250px;
	max-width:250px;
}
body.is_home.is_sidebar.is_left #body aside,
body.is_home.is_sidebar.is_left #body #aside_left{
	flex-basis: 250px;
	max-width:250px;
}


/* Sidebar Navigation ======================================================= */

#body aside .menu, #body aside .menu li,
#body section .menu, #body section .menu li
{ margin:0; padding:0; list-style: none; background:#FFF; display: block; }

#body aside .menu ul,
#body section .menu ul{
    border: solid 1px #EDEDED;
    border-bottom: none;
}

#body aside .menu {
   
}

#body aside .menu li ul {
    visibility: hidden;
    position:absolute;
    top:-1px;
    left: auto;
    right: 91%;
    width:330px;
    box-shadow: 0 1px 2px #666;
    z-index: 999;
}

#body aside .menu li {
    border-bottom: solid 1px #eee;
}

#body aside .menu li:hover,
#body aside .menu li.active,
#body section .menu li:hover,
#body section .menu li.active {
    position: relative;
    z-index: 2;
    cursor: default;
    background: #eee;
}
#body aside .menu li:last-child {
    border-bottom: none;
}
#body aside .menu li:hover > ul {
    visibility: visible;
}
aside .menu .item, section .menu .item {
    background: url("../images/icons/item.png") no-repeat 10px center;
}
#body aside .menu li.active .item,
#body section .menu li.active .item {
    color:#000;
}
#body aside .menu a,
#body aside .menu span.item,
#body section .menu a,
#body section .menu span.item {
    overflow: hidden;
    display:block;
    color:#666;
    text-decoration: none;
    padding:4px 10px;
    padding-left:36px;
}

#body aside .menu a:hover {
    color:#000;
}

#body aside .menu .counter,
#body section .menu .counter{
    float:right;
    padding: 0px 7px;
    background: #376499;
    border-radius: 50px;
    font-size: 11px;
    color: white;
}

#body aside .menu li:hover .counter,
#body section .menu li:hover .counter{
    background:#BDC3C7;
}



#body #aside_left .menu li ul {
    right: auto !important;
    left: 300px;
}


#body aside .menu li ul {
    left: auto !important;
    right: 300px;
}





/* Header and Footer width 100% ======================================================== */

body.is_header_and_footer_w100 #layout{ width: 100%; }
body.is_header_and_footer_w100 #body{ padding-left:20px; padding-right:20px; }
body.is_header_and_footer_w100 header .header-menu-wrapper.fix{ max-width:100%; width:100%; }

/* Footer SQL Debug ======================================================== */

#debug_block{
    display:none;
}

.queries_wrap .query{
    padding:10px;
    margin:10px;
    background:#FFF;
    border:solid 1px #DDD;
}

.queries_wrap .query .src{
    font-size:12px;
    color:#999;
}
.queries_wrap .query .debug_data{
    margin-top:4px;
}
.queries_wrap .query_time {
    color: #999;
    font-size: 12px;
    margin: 4px 0 0;
}
.queries_wrap .red_query {
    color: #c0392b;
}
.queries_wrap .green_query {
    color: #27ae60;
}
#debug_widget.tabs-menu > ul {
    border-bottom: none;
    height: 32px;
    background: #B3C2C9;
    min-width: 600px;
}
#debug_widget.tabs-menu .tabbed li {
    background: none;
}
#debug_widget.tabs-menu .tabbed li a {
    border: none;
}
#debug_widget.tabs-menu .tabbed li a:not(:hover) {
    color: #EFEFEF;
}
#debug_widget.tabs-menu .tabbed li.active a, #debug_widget.tabs-menu .tabbed li.active a:hover {
    border: none;
    margin: 0;
    color: #495358;
}
#debug_widget ol {
    padding: 0;
    margin: 0;
}


/* Site offline notice ====================================================== */

#site_off_notice{
    position: fixed;
    left:15px; top:15px;
    padding:5px 10px;
    padding-left:28px;
    background: url("../images/icons/error.png") no-repeat 8px center #FFF;
    border:solid 1px red;
    color:red;
}
.modal_padding {
    padding: 10px;
    box-sizing: border-box;
    min-width: 460px;
}
.modal_padding h3, .modal_padding h2  {
    margin-top: 5px;
    white-space: nowrap;
}

.width_480 {
    width: 480px;
}
/* Media Queries ============================================================ */

@media screen and (max-width: 1080px) {
	
	#layout {
		width: 100% !important;
	}

	#body{
		padding-top:20px;
		width: 100% !important;
		padding-left:10px !important;
		padding-right:10px !important;
	}
	.is_home #body{
	    padding-top:10px;
	}
	#widget_pos_main-top{
		margin-top:-10px;
	}
	
	.maincols{
	    align-items: flex-start;
    }
	
	#body section{
		min-height:auto;
		padding:0 !important;
		flex-basis:100% !important;
		order:-1;
		max-width:100% !important;
	}	
	#body aside, #body #aside_left{
		min-height:auto;
		padding:0 !important;
		flex-basis:100% !important;
		max-width:100% !important;
	}	
	
    nav { display:none; }

}

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


}


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

	
}


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

	
    .content_item .ft_images .first_type_images:first-child {
        float: none;
        clear: both;
        margin-bottom: 10px;
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .filter-panel .fields .field:nth-child(odd), .filter-panel .fields .field:nth-child(even){
        float: none !important;
        width: 100%;
        margin-bottom: 10px;
    }
    .content_item .ft_images .first_type_images:first-child > img {
        width: 100%;
    }
   
    .tabs-menu > ul { display:none; }
    .tabs-menu select { display:block !important; }
    .widget > .title { font-size:14px !important; }
    .widget > .title .links { display:none; }
    .content_item .ft_image { float:none !important; }
    .modal_padding {
        padding: 10px;
        box-sizing: border-box;
        min-width: 320px;
    }
}

@media screen and (max-width: 480px) {
   
    #breadcrumbs ul li:last-child {
        display: none;
    }
    h1 {
        font-size: 22px;
    }
    .content_list.featured .first .photo, .content_list.featured .first .fields, .content_list.tiled.albums_list .tile  {
        width: 100% !important;
    }
    .content_list_item.second .photo, .content_list_item.second .first {
        float: none !important;
        margin-right: 0 !important;
    }
    .content_list.featured .first .ft_caption a {
        font-size: 21px !important;
    }
    .content_list_item .ft_caption .value {
        font-size: 18px !important;
    }
}