body {
    font-size: 14px;
    background: #fff;
    margin: 0;
}
body * {
    font-family: 'Open Sans', sans-serif !important;
}
div {
    margin: 0 auto;
    text-align: center;
}
a.menu-item {
    padding: 0 7px;
    color: #0000ff;
    font-size: 17px;
    text-decoration: none;
}
a.menu-item:hover {
    text-decoration: underline;
}
.menu {
    text-align: center;
    padding: 77px 0 0 0;
}
.main .title {
    text-align: center;
    margin: 42px 0 16px 0;
    padding: 0;
}
.main .title a {
    color: #0000ff;
    font-size: 40px;
    text-decoration: none;
}
.main .language {
    padding: 0;
    margin: 0 0 7px 0;
    text-align: center;
}
.main .language a {
    display: inline-block;
    padding: 7px 0;
    font-size: 16px;
    color: #0000ff;
}
.main .content {
    color: #333;
    width: 530px;
    max-width: 100%;
    font-family: serif;
    margin: auto;
    text-align: center;
    padding: 20px 14px;
}
.main .content img,
.contacts .content img {
    max-width: 100%;
    height: auto;
}
.plain .content {
    font-size: 1em;
    color: #000;
    width: 580px;
    max-width: 100%;
    margin: auto;
    text-align: justify;
    padding: 40px 0 22px;
    line-height: 1.5;
    box-sizing: border-box;
}
.painting .content {
    padding: 22px 0;
}
.exhibitions table {
    width: 580px;
    max-width: 100%;
}
.exhibitions table tr td img {
    vertical-align: top;
    margin: 0 3px;
    border: 1px solid #eebb77;
    max-width: 100%;
    height: auto;
}
.exhibitions .content {
    padding: 60px 0 22px;
    text-align: left;
}
.exhibitions .content * {
    font-size: 16px !important;
}
.exhibitions table tr td {
    vertical-align: top;
    text-align: left;
}
.exhibitions table tr td:last-child {
    text-align: right;
}
.exhibitions td p {
    margin-top: 0;
    padding-top: 0;
}
.exhibitions iframe {
    max-width: 100%;
}
.contacts .content {
    color: #000;
    width: 580px;
    max-width: 100%;
    margin: auto;
    text-align: justify;
    padding: 40px 0 22px;
    line-height: 2.4;
    font-size: 20px;
    box-sizing: border-box;
}
.contacts .content a {
    color: #0000ff;
}
.contacts .content .social-block {
    margin: 5px 0 14px;
    text-align: center;
}
.contacts .content .social-block a {
    text-decoration: none;
    color: #51769e;
    font-size: 40px;
    padding: 0 14px;
}
.content .social-block a:hover {
    color: #b54800;
}
.galleryclear {
    clear: both;
    height: 0;
}
.gallery-empty {
    text-align: center;
}

@font-face {
    font-family: 'social';
    src: url('/assets/fonts/social.eot?y1dmbs');
    src: url('/assets/fonts/social.eot?y1dmbs#iefix') format('embedded-opentype'),
        url('/assets/fonts/social.ttf?y1dmbs') format('truetype'),
        url('/assets/fonts/social.woff?y1dmbs') format('woff'),
        url('/assets/fonts/social.svg?y1dmbs#social') format('svg');
    font-weight: normal;
    font-style: normal;
}
i {
    font-family: 'social' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.sc-facebook:before { content: "\ea90"; }
.sc-wikipedia:before { content: "\eac8"; }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(34, 34, 34, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.lightbox[hidden] { display: none; }
.lightbox-chrome {
    position: relative;
    background: #fff;
    max-width: min(92vw, 720px);
    max-height: 92vh;
    padding: 10px 10px 8px;
    box-sizing: border-box;
    text-align: center;
    margin: 28px auto 0;
    border: 1px solid #111;
}
.lightbox-title {
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin: 0;
}
.lightbox-image {
    display: block;
    max-width: min(86vw, 680px);
    max-height: 68vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.lightbox-close {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid #bbb;
    border-radius: 50%;
    background: #f3f3f3;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #333;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 42%;
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #f3f3f3;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-thumbs {
    margin: 8px auto 4px;
    min-height: 36px;
    text-align: center;
}
.lightbox-thumbs img {
    width: 50px;
    height: 33px;
    object-fit: cover;
    margin: 0 3px;
    cursor: pointer;
    opacity: 0.85;
    border: 1px solid #ccc;
}
.lightbox-thumbs img.is-on { opacity: 1; outline: 1px solid #333; }
.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 2px 36px 2px 6px;
    font-size: 13px;
    color: #111;
    text-align: left;
}
.lightbox-play {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

.exhibitions-list { text-align: left; }
.exh-item { margin: 0 auto 28px; max-width: 640px; }
.exh-item h2 { font-size: 18px; font-weight: 600; }
.exh-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.exh-photos img { width: 120px; height: auto; }
.exh-video iframe { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 0; }

@media (max-width: 640px) {
    .menu { padding: 24px 8px 0; }
    a.menu-item { display: inline-block; padding: 6px 8px; font-size: 15px; }
    .main .title a { font-size: 26px; }
    .plain .content,
    .main .content,
    .contacts .content,
    .exhibitions table {
        width: auto;
        padding-left: 12px;
        padding-right: 12px;
    }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
}
