html, body {
    font-family: 'Rubik', sans-serif;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 300;
}

b, strong {
    font-weight: 500;
}

a {
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
    color: #1c1c1c;
}

.color-index { color: #ff3399; }
.color-artist { color: #ff3399; }
.color-series { color: #ff9900; }
.color-biography { color: #f03000; }
.color-bibliography { color: #0040ff; }
.color-exhibition { color: #31b404; }
.color-texts { color: #009B95; }
.color-photo { color: #00bfff; }
.color-fund { color: #7401df; }

.wrapper {
    padding-top: 85px;
    position: relative;
    height: 100%;
}

.header {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255,255,255,.9);
    z-index: 10;
}

.logo {
    float: left;
    z-index: 100;
}

.logo a {
    width: 42px;
    display: block;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.nav {
    float: left;
}

.nav ul {
    margin-left: 3px;
    margin-top: 18px;
}

.nav li {
    margin-left: 12px;
    float: left;
}

.nav li a {
    font-size: 15px;
    text-transform: uppercase;
    color: inherit;
    font-weight: 400;
}

.nav li.active a {
    color: #848484;
}

.nav li a:hover {
    color: #1c1c1c;
    text-decoration: underline;
}

.search-and-lang {
    float: right;
    margin-right: 220px;
}

.search-and-lang ul {
    margin-top: 18px;
}

.search-and-lang li {
    float: left;
}

.icon-search {
    font-size: 14px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    color: #848484;
    position: relative;
    top: 2px;
}

.search-and-lang li.lang  {
    margin-left: 6px;
}


.search-and-lang li.lang a {
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    margin-left: 6px;
}

.search-and-lang li.lang a.active  {
    color: #848484;
}

.header .pull-right {
    position: relative;
}

.header-picture {
    width: 110px;
    position: absolute;
    right: 0;
    top: 0;
}

.header-picture img {
    width: 100%;
    height: auto;
    display: block;
}

.mm-page {
    position: relative;
    height: 100%;
}

#nav-mobile:not(.mm-menu) {
    display: none;
}

#nav-mobile .search-and-lang-mobile {
    padding: 10px 10px 10px 20px;
}

#nav-mobile .search-and-lang-mobile a {
    padding: 0;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    display: inline;
}

#nav-mobile .search-and-lang-mobile a + a {
    margin-left: 12px;
}

#nav-mobile .search-and-lang-mobile a.active {
    font-weight: 300;
}

#nav-mobile-button {
    width: 26px;
    height: 26px;
    float: right;
    margin-top: 15px;
    overflow: hidden;
    font-size: 0;
    text-indent: -9999px;
    position: relative;
    display: none;
    z-index: 100;
}

#nav-mobile-button>span {
    display: block;
    position: absolute;
    top: 10px;
    height: 4px;
    background: #333333;
    width: 100%;
}

#nav-mobile-button>span:before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    top: -8px;
    height: 4px;
    background-color: inherit;
}

#nav-mobile-button>span:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    top: 8px;
    height: 4px;
    background-color: inherit;
}

#nav-mobile ul li a,
#nav-mobile .mm-title {
    font-size: 14px;
    text-transform: uppercase;
    color: #1c1c1c;
    font-weight: 400;
}

#nav-mobile ul li.active a {
    color: #848484;
}

.content {
    position: relative;
    height: 100%;
}

.content .container {
    position: relative;
    height: 100%;
}

.page {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0 0 30px 57px;
}

.page-index {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 57px;
}

.page-title {
    position: relative;
    max-width: 740px;
}

.page-title h1 {
    font-size: 26px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
}

.page-title h1 a {
    color: inherit;
}

.page-content {
    width: 100%;
    margin-top: 30px;
    padding-bottom: 15px;
}

.page-left-box {
    max-width: 345px;
    width: 100%;
    float: left;
}

.page-left-picture {
    width: 100%;
    position: relative;
}

.page-left-picture img {
    width: 100%;
    height: auto;
    display: inline-block;
}

.page-right-box {
    margin-left: 375px;
    margin-top: -3px;
    position: relative;
}

.full-page-box {
    margin: 0;
    width: 100%;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 23px;
    word-break: break-word;
}

.page-content b {
    font-weight: 400;
}

.page-content a {
    text-decoration: underline;
}

.texts .page-content a,
.bibliography .page-content a {
    word-break: break-all;
}

.page-content a:hover {
    text-decoration: none;
    color: #F03000;
}


.page-content h2 {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
}

.page-content h2>span {
    font-weight: 300;
}

.page-content h3, h3 {
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
}

.series-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.series-list li {
    margin-bottom: 15px;
    line-height: 23px;
}

.series-list li .series-item-year {
    font-weight: 400;
}


/*works*/

.works-box {
    margin-left: -3px;
    margin-right: -3px;
}

.work-item {
    width: 33.333%;
    float: left;
    padding: 3px;
}

.work-item-picture img {
    width: 100%;
    height: auto;
    display: block;
}

.work-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-top: 35px;
}

.work-gallery-cloud {
    margin-top: 0
}

.work-gallery-item {
    width: 16.66%;
    padding-left: 10px;
    padding-bottom: 10px;
}

.work-gallery-picture>img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page404 {
    margin-top: 40px;
}

.page404 h1 {
    font-weight: 400;
    font-size: 21px;
}

#scroll-to-top {
    display: none;
}

.scroll-to-top-icon {
    width: 36px;
    height: 36px;
    text-decoration: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.scroll-to-top-icon:hover {
    background-color: rgba(0,0,0,0.6);
}

.scroll-to-top-icon:before {
    content: '';
    width: 10px;
    height: 10px;
    color: #fff;
    margin-top: 3px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

ul.exhibition-list {
    list-style: none;
}

ul.exhibition-list li {
    margin-bottom: 15px;
}

ul.exhibition-list li .exhibition-item-dt {
    font-weight: 400;
}

ul.exhibition-list li .exhibition-item-title {
    line-height: 23px;
}

.exhibition-title {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
}

.exhibition-title > div {
    font-weight: 300;
    margin-top: 5px;
}

/************/
.page-right-box.read-more{
    position: relative;
}
.page-right-box.read-more.hide{
    overflow: hidden;
}
.page-right-box.read-more.hide:before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #ffffff;
    -webkit-box-shadow: 0px -24px 21px 14px rgba(255,255,255,0.8);
    -moz-box-shadow: 0px -24px 21px 14px rgba(255,255,255,0.8);
    box-shadow: 0px -24px 21px 14px rgba(255,255,255,0.8);
}
.page-right-box.read-more .showBut,
.page-right-box.read-more .hideBut{
    position: absolute;
    display: none;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
}
.page-right-box.read-more .hideBut{
    bottom: -30px;
}
.page-right-box.read-more.hide .showBut{
    display: block;
}
.page-right-box.read-more .showBut a,
.page-right-box.read-more .hideBut a{
    position: relative;
    display: inline-block;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    cursor: pointer;
}
.page-right-box.read-more .showBut a:after,
.page-right-box.read-more .hideBut a:after{
    content: '\e900';
    font-family: 'icons';
    display: inline-block;
    margin-left: 5px;
    position: relative;
    top: 2px;
    cursor: pointer;
    color: #F03000;
    font-size: 13px;
}
.page-right-box.read-more .hideBut a:after{
    transform: scale(1, -1);
    top: 0;
}
/************/

.fancybox-caption-wrap {
    padding: 0;
    background: none;
    top: 100%;
}

.fancybox-caption {
    border: none;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    width: 100%;
    line-height: 1.4;
    padding: 10px;
}

.fancybox-image,
.fancybox-spaceball {
    /*width: 96%;
    height: 96%;
    left: 2%;*/
}

.fancybox-navigation {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99995;
    display: none;
}

.accordion {
    margin-bottom: 40px;
}

.accordion-header {
    border-bottom: 1px solid #eeeeee;
    padding: 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
}

.accordion-header span {
    font-weight: 300;
}

.accordion-header.active,
.accordion-header:hover {
    background: #f1f1f1;
}

.accordion-header.is-open:after {
    content: '\e900';
    font-family: 'icons';
    display: inline-block;
    margin-left: 5px;
    position: relative;
    top: 2px;
    cursor: pointer;
    color: #F03000;
    font-size: 13px;
}

.accordion-header.is-open.active:after {
    content: '\e901';
}

.accordion-header.is-open.is-open-new:after {
    content: '\e900';
    top: 1px;
}

.accordion-header.is-open.is-open-new.active:after {
    content: '\e901';
}

.accordion-content {
    display: none;
    border-bottom: 1px solid #eeeeee;
    padding: 10px;
}

.accordion-content h2 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 10px;
}

.accordion-content ul {
    padding-left: 40px;
}

.accordion-content ul li {
    margin-bottom: 5px;
}

.accordion-open {
    display: inline-block;
    cursor: pointer;
}

.fancybox-modal-content {
    width: 90%;
    max-height: 90%;
    overflow: auto;
    max-width: 1170px;
    display: none;
    padding: 30px;
}

.fancybox-modal-content p {
    margin-bottom: 15px;
    line-height: 23px;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 300;
}

.fancybox-modal-content b {
    font-weight: 500;
}

.fancybox-modal-content a {
    text-decoration: underline;
}

.fancybox-modal-content a:hover {
    text-decoration: none;
    color: #F03000;
}

.fancybox-close-small:focus:after {
    outline: none;
}

.series-year,
.exhibition-date {
    margin-bottom: 5px;
}


.switch-style {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    display: flex;
}

.switch-style li {
    cursor: pointer;
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
    align-items: center;
}

.switch-style li.active {
    color: #848484;
}

.switch-style-content {
    position: relative;
    height: 100%;
    display: none;
}

.switch-style-content.active {
    display: block;
}

.gallery-grid {
    display: flex;
    height: calc(100% - 54px);
    max-height: 880px;
    flex-wrap: wrap;
    margin: -3px;
}

.gallery-grid-item {
    width: 50%;
    display: flex;
    height: 1px;
    min-height: 440px;
}

.gallery-grid-box {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}

[class^="gallery-grid-box w"]{
    flex-wrap: wrap;
}

.gallery-grid-picture {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    border: 3px solid #ffffff;
    display: none;
}

.grid {
    display: flex;
    height: 100%;
    flex-wrap: wrap;
    margin: -3px;
}

.grid-item-box {
    display: flex;
    width: 50%;
    min-height: 40%;
    position: relative;
}

.grid-item-sm-box {
    min-height: 25%;
}

.grid-item {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}

.w20 { width: 20%; }
.w25 { width: 25%; }
.w30 { width: 30%; }
.w35 { width: 35%; }
.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w65 { width: 65%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w100 { width: 100%; }

.h15 { height: 15%; }
.h20 { height: 20%; }
.h25 { height: 25%; }
.h30 { height: 30%; }
.h35 { height: 35%; }
.h40 { height: 40%; }
.h45 { height: 45%; }
.h50 { height: 50%; }
.h55 { height: 55%; }
.h60 { height: 60%; }
.h65 { height: 65%; }
.h70 { height: 70%; }
.h75 { height: 75%; }
.h80 { height: 80%; }
.h85 { height: 85%; }

[class*="grid-item w"] {
    flex-wrap: wrap;
}

.grid {
    margin: 30px 0 0;
}

.grid-item-box {
    height: 1px;
    min-height: 440px;
}

.grid-item-sm-box {
    min-height: 220px;
}

.grid-item a {
    border: 3px solid #ffffff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.grid-item a:hover:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
}

.page-index .page-title {
    margin-bottom: 30px;
}


.texts .switch-style-content,
.artist .switch-style-content {
    height: calc(100% - 30px);
}

.texts .grid,
.artist .grid {
    max-height: 880px;
}


/*RESPONSIVE*/

@media (max-width: 1199px) {

    .nav li a {
        font-size: 14px;
    }

    .search-and-lang {
        margin-right: 110px;
    }

    .works .grid-item-box {
        min-height: 360px;
    }

    .works .grid-item-sm-box {
       min-height: 180px;
    }

    .page-title{
        max-width: 695px;
    }
}

@media (max-width: 991px) {
    .nav, .header-picture, .search-and-lang {
        display: none;
    }

    #nav-mobile-button {
        display: block;
    }

    .page {
        padding-left: 0;
    }

    .page-index {
        padding-right: 0;
        padding-left: 0;
    }

    .page-title {
        padding: 0;
        position: fixed;
        z-index: 10;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
    }

    .page-title h1 {
        position: absolute;
        top: 30px;
        display: inline-block;
    }

    .page-content {
        margin-top: 0;
    }

    .fancybox-arrow--left {
        left: 0;
    }

    .fancybox-arrow--right {
        right: 0;
    }

    .switch-style {
        display: none;
    }

    .grid {
        margin-top: 0;
    }

    .grid-item-box {
        min-height: 290px;
    }

    .grid-item-sm-box {
        min-height: 150px;
    }

    .gallery-grid {
        height: 100%;
    }

}

@media (max-width: 768px) {
    .page-left-box  {
        float: none;
        margin: auto;
    }

    .page-right-box {
        margin-top: 30px;
        margin-left: 0;
    }

    .work-item {
        width: 50%;
    }

    .work-gallery-item {
        width: 20%;
    }

    .accordion-content ul {
        padding-left: 10px;
    }

    .gallery-grid {
        margin: -2px;
        max-height: 100%;
    }

    .gallery-grid-item {
        width: 100%;
        height: 40%;
    }

    .gallery-grid-picture,
    .grid-item a {
        border-width: 2px;
    }

    .grid-item-box {
        width: 100%;
        min-height: 50%;
    }

    .page-index .page-title h1 {
        font-size: 21px;
    }

    .texts .switch-style-content,
    .artist .switch-style-content {
        height: 100%;
    }

    .texts .grid,
    .artist .grid {
        max-height: 100%;
    }

    .fancybox-caption {
        margin-top: 0;
    }
}

@media (max-width: 540px) {
    .work-gallery-item {
        width: 25%;
    }
}

@media (max-width: 480px) {
    .work-item {
        width: 100%;
    }

    .work-gallery-item {
        width: 33.33%;
    }

    .page-left-box {
        max-width: 280px;
    }

    .gallery-grid {
        margin: -1px;
    }

    .gallery-grid-item {
        min-height: auto;
    }

    .gallery-grid-picture,
    .grid-item a {
        border-width: 1px;
    }

    .page-index .page-title h1 {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .page-title h1 {
        font-size: 21px;
    }

    .work-gallery-item {
        width: 50%;
    }
}

@media (max-width: 350px) {
    .page-index .page-title h1 {
        display: none;
    }
}