/*
 * common style classes for site
*/
/* layout */
body:not(.home) #content{
    max-width: 1200px;
    margin: auto;
}
body.home #content{
    padding: 0;
}
#main,
#sidebar{
    padding: 0 15px;
    box-sizing: border-box;
}
#sidebar{
    position: relative;
}
@media screen and (min-width: 992px){
    body.has-sidebar #content{
        display: flex;
    }
    body.has-sidebar #main{
        /* flex-grow: 1; */
        width: calc(100% - 360px);
    }
    body.has-sidebar #sidebar{
        width: 360px;
        flex-shrink: 0;
    }
    body.sidebar-left #content{
        flex-direction: row-reverse;
    }
}
@media screen and (min-width: 1200px){
    body.sidebar-left #main{
        padding-left: 40px
    }
    body.sidebar-left #sidebar{
        padding-right: 40px;
    }
    body.sidebar-right #main{
        padding-right: 40px;
    }
    body.sidebar-right #sidebar{
        padding-left: 40px
    }
}
@media screen and (max-width: 991px){
    #sidebar .widgetlist{
        padding-top: 4.5vw;
        margin-top: 4.5vw;
        border-top: 1px solid #ddd;
    }
}
/* END layout */

.btn-container{
    margin-top: calc(3vh - 15px);
}
.btn-container .btn{
    margin: 15px 15px 0;
}
.btn-container>.btn:only-child{
    margin-left: 0;
    margin-right: 0;
}

/*  */
.btn{
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    padding: 1.25em 2em;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
    border: none;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
}
@media screen and (max-width: 575px){
    .btn{
        display: block;
        width: 100%;
        justify-content: center;
    }
}
/* header of section block */
.block-header{
    font-size: 2.75rem;
    text-align: center;
    padding: 0 0 .5em;
    margin: 0 0 .5em 0;
    line-height: 1.4;
    font-weight: 900;
}
/* header tag of page title */
.page-header{
    padding: 0 0 8vh;
}
/* h-tag of page inside header */
.page-title{
    font-size: 3rem;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    font-weight: 900;
}
.search .page-title{
    margin-bottom:4.5vh;
}
.loop-title{
    font-size: 1.6rem;
    padding: 0 0 .5em;
    margin: 0 0 .5em 0;
    line-height: 1.2;
    font-weight: 900;
}
.page-thumbnail{
    padding-bottom: 1rem;
}
.page-thumbnail img{
    display: block;
    margin: auto;
}
.archive-description{
    margin-top: 8vh;
}
.content-none,
.page-404{
    text-align: center;
}
.custom-logo-link img{
    margin: 0;
}
@media screen and (min-width: 769px){
    body:not(.has-sidebar) .entry-content{
        width: 70%;
        margin: auto;
    }
}
@media screen and (max-width: 768px){
    .block-header{
        font-size: 1.8rem;
    }
    .page-title{
        font-size: 2rem
    }
    .loop-title{
        font-size: 1.3em;
    }
}

/* menu listing arrows */
ul.menu li>:first-child{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
ul.menu .icon{
    padding-left: .5em;
    margin-left: .5em;
    transition: opacity .3s;
}
/**/

/* add to global block with (example: front-page blocks) */
.block-space{
    padding-top: 4.5vw;
    padding-bottom: 4.5vw;
}
.meta span.meta_item:not(:last-child){
    margin-right: .5em;
}

/**
 * site footer styles
*/

.footer-widgets{
    background-color: #2b2b2b;
    color: white;
}
.footer-widgets .col{
    min-width: 300px;
}
.footer-widgets .widgetlist{
    margin: 0 0 2em;
}
.footer-widgets .col:last-child .widgetlist{
    margin-bottom: 0;
}
/* copyright block */
.copyright{
    font-size:.875rem;
    text-align: center;
    padding: 20px 0;
}
.sb-dev-link a{
    font-size: 1rem;
}
/* END copyright block */

/* sb-socials */
.sb-contacts{
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}
.sb-contacts .icon{
    margin-right: .5em;
}
.contacts_socials{
    display: flex;
}
.contacts_socials li {
    margin-bottom: 0;
}
/* END sb-socials */

/* searchform */
.searchform {
    position: relative;
}
.searchform .search_input{
    width: 100%;
    padding: .5em 2em .5em 1em;
}
.search_submit {
    font-family: 'fontello';
    background-color: #222;
    color: white;
    border: none;
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    min-width: 2em;
    transition-property: opacity;
    transition-duration: .3s;
}
@media screen and (min-width: 992px){
    .search_submit {
        opacity: .8;
    }
    .search_submit:hover {
        opacity: 1;
    }
}
@media screen and (min-width: 576px){
    .search #main .search_input,
    .content-none .search_input,
    .page-404 .search_input{
        padding: 1em 5em 1em 2em;
        font-size: 1.3rem;
    }
    .search #main .search_submit,
    .content-none .search_submit,
    .page-404 .search_submit{
        font-size: 2rem;
    }
}
/* END searchform */

#map{
    height: 300px;
}

/**
 * loader
*/
.loader{
    position: relative;
}
.loader:before{
    content:'';
    background-color: rgb(255,255,255);
    opacity:.7;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height: 100%;
}
.loader:after{
    content:'\e839';
    font-family: 'fontello';
    font-size: 1em;
    position: absolute;
    top:calc(50% - .5em);
    left:calc(50% - .5em);
    animation: rotating 2s linear infinite;
}
@keyframes rotating{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}