/*
Theme Name: KronshtadtSobor
Version: 1.0
Author: http://afspace.ru
*/

*,html,body{
    margin:0;
    padding:0
}

body{
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #3e3e3e;
    background: url("images/back.jpg") fixed top center;
}

a {
   color: #dfa321;
   text-decoration: underline;
}

a:hover {
    color: #767676;
    text-decoration: none;
}

#content_wrapper  {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #0185bc;
    font-family: 'Tinos', serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 26px;
}

h2.widgettitle, .sobor-box-text h2.widgettitle {
    text-align: center;
    height: 42px;
    width: 157px;
    background: url(images/blue-flat.png) no-repeat center top;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    padding-top: 8px;
    margin: 0 auto;
    text-shadow: 0px 1px 0px rgba(0,0,0,0.3);
}

.sobor-box-text h2.widgettitle {
    background: url(images/gold-flat.png) no-repeat center top;
    text-shadow: 0px 1px 0px rgba(0,0,0,0.3);
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

p {
    line-height: 22px;
}

.head-box, .nav-box, .sobor-box, .sobor-box-text, .news-box, .gallery-box, .pano-box, .calendar-box {
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #cfbc9c;
    background-color:#fff;
    box-shadow: 0 2px 2px -1px rgba(110, 110, 110, 0.85);
    -moz-box-shadow: 0 2px 2px -1px rgba(110, 110, 110, 0.85);
    -webkit-box-shadow: 0 2px 2px -1px rgba(110, 110, 110, 0.85);
}

.slider-box {
    border-top: 3px solid #fafafa;
    border-bottom: 3px solid #fafafa;
    margin-bottom: 8px;
    box-shadow: 0 2px 2px -1px rgba(110, 110, 110, 0.85);
    -moz-box-shadow: 0 2px 2px -1px rgba(110, 110, 110, 0.85);
    -webkit-box-shadow: 0 2px 2px -1px rgba(110, 110, 110, 0.85);
}

.head-box {
    margin-top: 15px;
    padding-left: 60px;
    padding-right: 60px;
}

.head-box .hleft {
    text-align: left;
}

.head-box .hright {
    text-align: right;
    padding-top: 15px;
}

.head-box .hright img.birds {
    padding-bottom: 15px;
}

.head-box a {
    text-decoration: none;
}

.head-box p {
    color: #2895b4;
}

.sobor-box {
    padding: 20px 20px 11px;
}

.sobor-box img {
    text-align: center;
    margin: 0 auto;
}

.sobor-box-text {
    padding: 15px 30px 20px;
/*     height: 368px; */
}

.gallery-box {
    text-align: center;
    width: 100%;
    height: 280px;
    background: url(images/galary-bg.jpg) no-repeat center top;
    padding-top: 22px;
    border: 1px solid #fff;
}

.gallery img {
    border: none !important;
}

.news-box {
    padding-top: 20px;
}

.pano-box {
    padding-top: 20px;
    padding-bottom: 20px;
}

.pano-box img {
    text-align: center;
    margin: 0 auto;
}

.calendar-box {
    padding-top: 15px;
    height: 266px;
    font-size: 14px;
}

.textwidget button, .post button, .textwidget .button {
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #157899;
    color: #157899;
    text-transform: uppercase;
    padding: 3px 15px;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
}

.nav-box {
    margin: 5px 0px 15px;
    padding: 0px 10px 5px 60px;
}

#sobor .col-md-4, #calendar .col-md-7 {
    padding-right: 10px;
}

#calendar .col-md-5, #sobor .col-md-8 {
    padding-left: 10px;
}

.nav > li {
    background: url(images/dot.png) no-repeat right 17px;
}

.nav > li:last-child {
    background: none;
}

.nav > li > a {
    font-size: 16px;
    font-family: 'Tinos', serif;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: normal;
    color: #0185bc;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-right: 5px;
}

.nav > li > a:hover,
.nav > li > a:focus,
.nav > li.current-menu-item > a {
    text-decoration: none;
    background-color: transparent;
    color: #dfa321;
}

.head_block_b {
     text-align: center;
     padding: 8px 20px 5px 20px;
     height: 42px;
     background: url(images/blue-flat.png);
     clear: both;
}

.head_block_g {
    text-align: center;
    height: 42px;
    background: url(images/gold-flat.png);
    clear: both;
}

.post_thumbnail_image {
    float: left;
    margin:0px 15px 5px 0px;
}

#content, .news-box-p {
    margin: 0 auto;
    border: 1px solid #cfbc9c;
    background:#fff;
    text-align: left;
    margin-bottom: 8px;
}

.post {
    padding: 25px 30px;
    text-align: left;
    line-height:21px;
    color: #3e3e3e;
}

.post h1 {
    text-align: center;
}

.post ul {
    margin-left:25px;
}

.post ul li {
    line-height: 24px;
}

.post img.alignleft {
    margin-right: 10px;
    margin-bottom: 5px;
    float: left;
}

.post img.aligncenter {
    margin: 0px auto;
    text-align: center;
    display: block;
    max-width: 100%;
    height: auto;
}

.post-news img.alignleft, .news img.alignleft {
    margin-right: 10px;
    float: left;
}

.post-news img.aligncenter, .news img.aligncenter {
    margin: 12px auto;
    text-align: center;
    display: block;
    max-width: 100%;
    height: auto;
}

.gallery-box ul {
    list-style: none;
    margin: 10px auto;
}

.gallery-box li.gal-img {
    float: left;
    margin-top: 10px;
    text-align: center;
    width: 20%;
}

.gallery-box img {
    border: 1px solid #fff;
    display: block;
    max-width: 100%;
    height: auto;
    text-align: center;
    margin: 0px auto;
}

.pagination {
    display: block;
    padding: auto;
    margin: 20px auto;
    text-align: center;
}

h2.screen-reader-text {
    font-size: 22px;
}

.nav-links a {
    font-size: 20px;
    margin-right: 10px;
    font-family: 'Tinos', serif;
}

.nav-links span.current {
    font-family: 'Tinos', serif;
    font-size: 20px;
    font-weight: 700;
    margin-right: 10px;
}

.news-box-p {
    margin-top: 0px;
    padding-top: 15px;
}

.news-box ul, .news-box-p ul {
    list-style: none;
    margin-top: 15px;
}

ul li.post-news, ul li.news {
    float: left;
    width: 49%;
    padding: 10px 25px 20px 25px;
    text-align: left;
    line-height:21px;
}

ul li.galleries {
    float: left;
    width: 33%;
    padding: 5px 25px 15px 25px;
    text-align: center;
    line-height:21px;
}

ul li.post-news:first-child {
    border: 1px solid #bea05a;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    padding: 12px 15px 5px;
    margin: 10px 15px;
    width: 46.5%;
}

ul li.post-news:nth-child(2) {
    margin-top: 20px;
}

ul li.post-news:nth-child(3) {
    margin-top: 10px;
}

a.news-title {
    font-family: 'Tinos', serif;
    font-weight: 700;
    font-size: 14px;
    color: #d69e32;
    text-transform: uppercase;
    display: block;
}

a.read-more {
    text-align: right;
    font-style: italic;
    display: block;
    font-size: 14px;
}

.post-news .entry-meta, .news .entry-meta {
    display: block;
    background: url(images/line.png) no-repeat right 7px;
    clear: both;
    margin-bottom: 5px;
}

.post-news .entry-meta span, .news .entry-meta span, .post .entry-meta span {
    font-size: 14px;
    color: #a3a3a3;
    background-color: #fff;
    padding-right: 5px;
}

.post-news .wp-post-image {
    max-height: 360px;
    width: auto;
}

#sidebar {
    margin: 20px auto;
    padding-top: 5px;
    padding-bottom: 7px;
    background-color: #f6f6f6;
    text-align: center;
}

#sidebar ul {
    border: 0;
    list-style-type: none;
    margin: 0 auto;
    text-align: center;
}

#sidebar ul li {
    border: 0;
    display: inline-block;
    position: relative;
    padding: 0px 8px 0px 8px;
    text-transform: uppercase;
    font-size: 14px;
    text-shadow: none;
}

.breadcrumbs {
    margin-left: 20px;
    color: #a3a3a3;
}

#footer {
    width: 100%;
    margin:0 auto;
    background: url(images/footer.jpg) no-repeat top center;
    height:208px;
    color: #fff;
    text-shadow: 0px 1px 0px rgba(0,0,0,0.3);
}

#footer .text1 {
    text-align: right;
}

#footer .text {
    text-align: center;
    margin:0 auto;
    padding:30px 0 0 0;
    font-size: 14px;
}

#footer .footmenu {
    margin:20px 0px 90px 50px;
    text-shadow: none;
}

#footer .footmenu ul {
  border: 0;
  list-style-type: none;
  padding: 0;
}

#footer .footmenu ul li {
    margin-right: 5px;
    border: 0;
    display: block;
    float: left;
    position: relative;
    padding: 0px 20px 0px 0px;
    background: url(images/yakor-footer.png) no-repeat right top;
}

#footer .footmenu ul li:last-child {
    padding-right: 0px;
    background: none;
}

#footer .footmenu li a {
    font-size: 16px;
    padding: 0px 7px 0px 7px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
}

#footer .footmenu li a:hover {
    text-decoration: none;
    color: #ce9b67;
}

#footer a, #footer a:hover {
    color: #fff;
}

.clear {
    clear: both;
    margin: 0px;
}

.cleart {
    clear: both;
    margin: 12px;
}

/*
   ------------------------------------------------------
					Responsive Styles
   ------------------------------------------------------
*/


@media (min-width: 992px) and (max-width: 1199px) {

    .head-box {
        margin-top: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .head-box .hleft {
        text-align: left;
    }

    .head-box .hright {
        text-align: right;
        padding-top: 15px;
    }

    .nav-box {
        margin: 5px 0px 15px;
        padding: 0px 0px 5px 20px;
    }

    .nav > li > a {
        position: relative;
        display: block;
        padding: 10px;
    }

    .sobor-box-text {
        height: 100%;
    }

    #footer .footmenu {
        margin:20px 0px 90px 10px;
    }

    #footer .footmenu ul li {
        margin-right: 5px;
        padding: 0px 9px 0px 2px;
    }

    #footer .footmenu li a {
        padding: 0px 10px 0px 0px;
    }
}

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

    .head-box .hleft {
        text-align: center;
    }

    .head-box .hright {
        text-align: center;
        padding-top: 15px;
    }

    .nav-box {
        margin: 0px 0px 10px;
        padding: 0px 0px 5px 20px;
    }

    .nav > li > a {
        position: relative;
        display: block;
        padding: 10px;
    }

    .sobor-box-text {
        height: 100%;
    }

    #sobor .col-md-4, #calendar .col-md-7 {
        padding-right: 15px;
    }

    #calendar .col-md-5, #sobor .col-md-8 {
        padding-left: 15px;
    }

    #footer {
        margin: 0px auto;
        text-align: center;
        font-size: 13px;
    }

    #footer .footmenu {
        margin: 10px 0px 60px 15px;
    }

    #footer .text1 {
        text-align: center;
        font-size: 12px;
        padding-top: 0px;
        margin-top: 0px;
    }

    #footer .text {
        text-align: center;
        padding: 5px 0 0 0;
        font-size: 12px;
    }

    #footer .footmenu ul li {
        margin-right: 5px;
        padding: 0px 9px 0px 2px;
    }

    #footer .footmenu li a {
        padding: 0px 10px 0px 0px;
        font-size: 14px;
    }
}

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

    .head-box {
        margin-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .head-box .hleft {
        text-align: center;
    }

    .head-box .hright {
        text-align: center;
        padding-top: 15px;
    }

    .navbar { padding: 0px; }

    .calendar-box {
        height: 100%;
    }

    #sobor .col-md-4, #calendar .col-md-7 {
        padding-right: 15px;
    }

    #calendar .col-md-5, #sobor .col-md-8 {
        padding-left: 15px;
    }

    ul li.post-news, ul li.news, ul li.post-news:first-child {
        float: none;
        width: auto;
    }

    #footer .footmenu {
        margin: 10px 0px 10px 15px;
    }
}

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

    .head-box .hleft {
        text-align: center;
    }

    .head-box .hright {
        text-align: center;
        padding-top: 15px;
    }

    #sobor .col-md-4, #calendar .col-md-7 {
        padding-right: 15px;
    }

    #calendar .col-md-5, #sobor .col-md-8 {
        padding-left: 15px;
    }

    .sobor-box-text {
        height: 100%;
    }

}

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

    html {
        -webkit-text-size-adjust: none;
    }

    .head-box .hleft {
        text-align: center;
    }

    img.logo-text {
        margin: 0px auto;
        text-align: center;
        display: block;
        max-width: 100%;
        height: auto;
        padding-right: 15px;
        padding-left: 15px;
    }

    .head-box .hright {
        text-align: center;
        padding-top: 15px;
    }

    #sobor .col-md-4, #calendar .col-md-7 {
        padding-right: 15px;
    }

    #calendar .col-md-5, #sobor .col-md-8 {
        padding-left: 15px;
    }

    #footer {
        margin: 0px auto;
        text-align: center;
        font-size: 12px;
        line-height: 14px;
    }

    #footer .footmenu li a {
        padding: 0px 10px 0px 0px;
        font-size: 11px;
    }

    #footer p {
        line-height: 15px;
    }

    #footer .text {
        padding: 0;
        font-size: 12px;
        margin-top: 20px;
    }

    #footer .footmenu {
        margin: -5px 0px 30px 10px;
    }

    #footer .text1 {
        display: none;
    }
}

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

    #footer .text {
        margin-top: -5px;
    }
}
