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

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

body {
    background: url("../images/bg.png");
    margin:0;
    padding:0;
}

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

#layout{
    width: 980px;
    margin: 0 auto;
}

/* Header =================================================================== */

#layout header{
    height: 50px;
    line-height: 50px;
    padding: 0 14px;
    background:url("../images/bg_top.png") no-repeat center;
}

#layout header #logo a{
    display: block;
    float: left;
    width: 180px;
    height: 50px;
    background: url("../images/logo.png") no-repeat left center;
}



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

#body{
}

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

#breadcrumbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

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

#breadcrumbs ul{
    overflow: hidden;
}

#breadcrumbs ul li {
    height:32px; line-height:32px; float:left;
    font-size:13px;
    color:#3f403b;
}

#breadcrumbs ul li a {
    color:#3f403b;
	border-bottom: 1px dashed transparent;
}

#breadcrumbs ul li a:hover {
    color:#3f403b;
    text-decoration: none;
	border-bottom: 1px dashed #3f403b;
}

#breadcrumbs ul li.sep {
    margin:0 5px;
    width: 4px;
}

#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 ================================================================== */

#body section{
    float:left;
    width:730px;
}

#body section article {
    padding: 20px;
    background:#FFF;
    margin-bottom: 10px;
}

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

#body section h1 .parent_title{
    font-size:16px;
}

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

#body aside{
    float:right;
    width:240px;
    margin-bottom: 10px;
}

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

#body aside .menu, #body aside .menu li { margin:0; padding:0; list-style: none; }

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

#body aside .menu ,
#body aside .menu li ul {
    padding:0;
    background:#FFF;
}

#body aside .menu{
    margin:-15px;
}

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

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

#body aside .menu li:hover,
#body aside .menu li.active {
    position: relative;
    z-index: 2;
    cursor: default;
    background: #ecf0f1;
}

/*#body aside .menu li:hover > a,
#body aside .menu li.active > a { color:#FFF; }*/

#body aside .menu li:first-child {
}

#body aside .menu li:last-child {
    border-bottom: none;
}

#body aside .menu li:hover > ul {
    visibility: visible;
}

#body aside .menu li.active:hover {
}

aside .menu .item{
    background: url("../images/icons/item.png") no-repeat 10px center;
}

#body aside .menu li.active .item {
    color:#000;
}

#body aside .menu li.hover a {
}

#body aside .menu a,
#body aside .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{
    float:right;
    padding: 0px 7px;
    background: #376499;
    border-radius: 50px;
    font-size: 11px;
    color: white;
}

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

/* Footer =================================================================== */

#layout footer{
    background: #34495E;
    height: 60px;
    color: #7f8c8d;
    padding: 0 15px;
    clear:both;
    font-size:12px;
}

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

#layout footer ul {
    overflow: hidden;
}

#layout footer ul li {
    height: 60px;
    line-height: 60px;
    float:left;
    margin-right: 15px;
}

#layout footer ul li:last-child { margin:0; }


#layout footer a { color:#95a5a6; }
#layout footer a:hover { color:#ecf0f1; }

#layout footer span.item { padding:0 10px; border-left: solid 1px #7f8c8d; }

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

#sql_debug{
    display:none;
}

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

#sql_queries .query .src{
    font-size:12px;
    color:#999;
    margin-bottom:4px;
}
#sql_queries .query_time {
    color: #999;
    font-size: 12px;
    margin: 4px 0 0;
}
#sql_queries .red_query {
    color: #c0392b;
}
#sql_queries .green_query {
    color: #27ae60;
}

/* Footer Navigation ======================================================== */

#layout footer #nav {
    float:right;
    margin-right: 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;
}

/* Media Queries ============================================================ */

@media screen and (max-width: 980px) {
    #body section { width:100% !important; }
    #body aside {
        float: none !important;
        overflow: hidden;
        width: 100%;
        clear: both;
    }
}

@media screen and (max-width: 800px) {
    #body section { width:100% !important; }
    #layout footer #info { display: none !important; }
}

@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%;
    }
    #layout header #logo { margin: 0 auto; overflow:hidden; width:200px; }
    #layout header .menu { display:none; }
    .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; }
}

@media screen and (max-width: 480px) {
    #layout footer #nav { display: none !important; }
    #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;
    }
}