@import url('../fonts/fonts.css');
body {
    background-color:#b78c61;
}
a {
    text-decoration:underline;
}
a:link, 
button.logout,
a.nav-link {
    color:#713703;
}
a:visited {
    color:#462f01
}
a:hover{
    color:#835700;
}
a:active{
    color:#be7f01
}
table a:link {
    /* color: royalblue; */
}
.elegance{
    font-family: ElegantC, Segoe UI, Arial, sans-serif;
}
#mainMenu {
    margin-top:-10px 
}
#mainMenu, 
main > .container {
    padding: 0 55px;
}
#mainMenu a.navbar-brand {
    display:block;
    font-family: ElegantC, Segoe UI, Arial, sans-serif;
    color:#fddfc1;
    font-size: 350%;
    line-height: 1;
    white-space: break-spaces;
    text-align: center;
    border:none;
}
#mainMenu button.navbar-toggler {
    margin:1em auto;
}
#mainMenu ul.navbar-nav {
    display:flex;
    justify-content: center;
}
#mainMenu li.nav-item {
    margin: 0 0.5em 0.5em 0;
}
#mainMenu li.nav-item, .btn-biblio {
    text-align: center;
    border: thin solid #8e6e30;
    border-radius: 6px;
    background: tan; 
    margin: 0 0.5em 0.5em 0;
}
#mainMenu .navbar-expand-md .navbar-nav a.nav-link {
    padding: 0.7em 1.5em;
    border:none;
} 
#mainMenu li.nav-item:hover,
.btn-biblio:hover {
    background:rgb(218, 205, 183);
}
#mainMenu .navbar-nav .nav-link.active {
    color:darkred;
}
#mainMenu .dropdown-item.active {
    background-color:#835700;
}
.navbar form > button.logout {
    color: white;
    border:none;
}
.container-main img {
    max-width:100%;
    /* height:100%; */
}
.list-item{
    width: 100%;
    border: none;
    border-collapse: separate;
    border-spacing: 5px;
} 
.list-item td {
    width: 100%;
    vertical-align: top;
    padding: 0;
}
.list-item img{
    max-width:95%;
    height:auto;
}
.list-item h3 {
    margin-top:0.3em;
}
.newbooks-item {
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    border-bottom:thin solid burlywood;
    padding-bottom: 0.5em;
    margin-bottom:0.5em;
}
.newbooks-item div:first-of-type {
    margin-right:1em;
    margin-bottom:1em;
}
.newbooks-item img {
    max-width:150px;
}
h1, h2, h3, h4 {
    color: #fddcb2;
    text-align:center;
    margin: 1em 0;
    line-height:1;
}
h1 {
    font-size:300%;
}
.author{
    font-weight:600;
    font-size:1.1em;
}
.pubilsh-date {
    font-size:0.8em
}
.background-bottom {
    bottom:0
}
main, .decor-bottom {
    position: relative;
}
header{
    position:relative;
    display: flex;
    flex-direction: column;
}
.decor-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.capitel,
.capitel-right{
    width: 70px;
}
.top-horizontal {
    width:100%;
    height: 73px;
    background: url('../pict/top-horizontal.svg');
    background-repeat:repeat-x;
    background-size: contain;
}
.capitel-right {
    transform: scaleX(-1);
}
 .breadcrumb{
    background-color:#c6a88466;
}
.breadcrumb-item.active,
.breadcrumb-item.active:before {
    font-weight:500;
    color:#fddfc1;
}
.footer {
    background:transparent;
    padding-bottom:1.5em;
}
.column{
    display:block;
    position: absolute;
    background: url('../pict/column.svg');
    background-repeat:repeat-y;
    background-size: contain;
    z-index: -3;
    width: 42px;
}
.column-top {
    top: 114px;
    height:calc(100% - 114px);
}
.column-main {
    top:0;
    height:100%;
}
.column-left {
    left: 11px;  
}
.column-right{
    right: 11px;
}
.caption {
    color:gray;
    font-style: italic;
}
.aboutItem h4{
    text-align:center;
    margin-top:1.5em;
}
.column-bottom {
    position:absolute;
    bottom:-17px;
}
.copyright {
    padding:1em 0;
    border:#edbb83 solid thin;
    border-left:0;
    border-right:0;
    margin:18px auto;
    text-align:center;
}
.login {
    border-bottom:none;
}
.item-pict {
    text-align:center;
}
.item-pict a img {
    width:300px;
    height:auto;
}
.prepend-community {
    margin-bottom:1.5em;
    text-align:center;
}
.navbar-channels {
    text-align:center;
}
.social-icon {
    width:auto;
    height:40px;
    fill: #fddcb2;
    transition: fill 0.3s ease-in-out;
}
.social-icon:hover,
.social-icon:focus {
    fill: #713703;
}
.col-news {
    padding:1em 1.2em;
    background:#b59871;
}
.col-news img,
.col-news iframe {
    max-width:100%;
}
.background-transparent {
    background:transparent;
}
.accordion-button:not(.collapsed) {
    background:tan;
}
.border-pale-color {
    border-color: #c3ad7c;
}
.page-link {
    background-color:#c3ad7c;
}
.active > .page-link {
    background-color:#713703;
    border-color:white;
}
.table {
    margin:0 auto;
}
.table th {
    background: tan;
}
.table td {
    background:transparent;
}
.table td,
.table th
{
    padding:0.5em 1em;
    border: thin solid #713703;
}
@media (min-width:768px) {
    .capitel,
    .capitel-right{
        width: 100px;
    }
    .column-left {
        left:16px;
    }
    .column-right {
        right: 16px;
    }
    .column-top {
        top:161px;
        height: calc(100% - 161px);
    }
    .column{
        width:60px;
    }
    .top-horizontal {
        height: 103px;
    }
    #mainMenu .container {
        flex-direction: column;
    }
    #mainMenu a.navbar-brand {
        padding: 0;
        margin:0 0 0.5em 0;
    }
    #mainMenu-collapse {
        flex-direction:column;
    }
    main > .container{
        padding: 0 65px;
    }
    .about-photo {
        display:flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .about-photo p {
        width:40%;
        height:auto;
        margin: 0 1em 1em 0;
    }
    .about-photo p img {
        height: auto;
    }
    .newbooks-item {
        flex-wrap:nowrap;
    }
}
@media (min-width:992px) {
    .capitel, .capitel-right {
        width: 130px;
    }
    .top-horizontal {
        height: 135px;
    }
    #mainMenu,
    main > .container{
        padding: 0 120px;
    }
    .column {
        width: 80px;
    }
    .column-top {
        top: 210px;
        height: calc(100% - 210px);
    }
    .column-left {
        left: 20px;
    }
}
@media (min-width: 1200px) {
    #mainMenu {
        margin-top: -50px; 
        padding: 0 140px;
    }
    #mainMenu-collapse {
        margin-top:20px;
    }
    .capitel, .capitel-right {
        width: 163px;
    }
    .top-horizontal {
        height: 169px;
    }
    main > .container{
        padding: 0 120px;
    }
    .column {
        width: 99px;
    }
    .column-top {
        top: 264px;
        height: calc(100% - 264px);
    }
    .column-left {
        left: 25px;
    }
    .column-right {
        right: 25px;
    }
    .column-bottom {
        width:100px;
        position:absolute;
        bottom:-42px;
    }
    .footer {
        margin-top:23px;
    }
    .community-member-nav {
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
    }
    .community-member-nav .nav-link {
        background: #937753;
    }
    .community-member-nav .nav-link:hover {
        color: #fddcb2;
        background: #53432d;
    }
    .nav-sub-link {
        background: #d1b173;
        text-decoration:none;
        padding:0.4em 0.7em;
        border-radius:6px;
        border: thin solid #835700;
    }
    .nav-sub-link:hover {
        background: #d6bf90;
    }
    .form-group {
        margin-bottom:1em;
    }
    .table-transparent td {
        background: transparent;
    }
    .table-transparent th {
        background: tan;
    }
    .modal-wrapper {
        padding:1em 2em;
    }
    .color-brown {
        color: #713703;
    }
    .color-light-brown {
        color:#b78c61;
    }
}
/** ------ галерея ---------*/
.invalid-feedback {
    background:white;
    padding:0.8em 1em;
}
.gallery-section {
    margin: 3em 0;
}
.gallery-section-items {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}
.gallery-item {
    width:200px;
    padding:10px;
    margin:0.5em;
    border:thin solid #d8ab7d;
}
.gallery-item.slick-slide{
    border:none;
    max-height:700px;
}
.slick-slider{
    /* position:absolute; */
}
.gallery-item-caption {
    margin-top:0.3em;
    text-align: center;
    font-size:0.9em;
    line-height: 110%;
}
.gallery-item.slick-current {
    position:relative;
}
.gallery-item.slick-current .gallery-item-caption {
    position:absolute;
    bottom:0;
    background:rgba(255, 255, 255, 0.8);
    padding:0.5em 1em;
}
img.gallery-photo{
    /* width:inherit; */
    /* width:200px; */
    /* height:200px; */
    max-height:inherit;
    object-fit: contain;
    cursor:pointer;
    margin:0 auto;
}
table.materials-list {
    margin:0 auto;
}
table.materials-list td {
    padding:0.5em;
    border:none;
    border-bottom:thin solid #edbb83;
    line-height:1;
    vertical-align: top;
}
table.materials-list td:first-of-type {
    padding-top:0.7em;
}
table.materials-list p {
    margin-bottom:0;
}

.material-images {
    display:flex;
    flex-wrap:wrap;
    justify-content: center;
}
.material-image {
    width:300px;
    height:300px;
    border: thin solid tan;
    margin:0.5em;
}
.material-image img{
    object-fit:contain;
}
.anons {
    margin:0.5em 0 0.5em 1em;
    font-size:0.9em;
    color:#53432d;
}
/*** ===================== */
ul.category-nav {
    list-style-type: none;
    padding:0;
}
ul.category-nav li {
    padding:0.5em;
    border-bottom:thin solid #c3ad7c;
}
ul.category-nav li.active {
    background: #edbb83;
}
ul.category-nav li a{
    text-decoration:none;
    color:#462f01;
}
.event-date {
    text-align:center;
    font-weight:bold;
}