/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Woocommerce
# Footer
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,600,600i,700,700i&amp;subset=cyrillic,cyrillic-ext');

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.13rem;
  color: #808080;
  line-height: 1.5rem;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: underline;
}
  a:hover {
    color: inherit;
  }

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

dfn {
  font-style: italic;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 2.5rem;
}

hr {
  box-sizing: content-box;
  height: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  clear: both;
  color: #3D3D3D;
  font-weight: normal;
  margin-top: 24px;
  margin-bottom: 15px;
}
h1 {
  font-size: 3.75rem;
  line-height: 3.88rem;
  font-weight: bold;
}
h2 {
  font-size: 2.63rem;
  line-height: 2.75rem;
  font-weight: bold;
}
h3 {
  font-size: 1.75rem;
  letter-spacing: 0.7px;
  line-height: 1.86rem;
  font-weight: bold;
}
h4 {
  font-size: 1rem;
  line-height: 1.25rem;
}
h5 {
  font-size: 0.88rem;
  line-height: 1.09rem;
}

p {
  
}
h1.entry-title {
  font-size: 1.31rem;
  border-bottom: 1px solid #eaecef;
}
h2.entry-title {
  border-bottom: 1px solid #eaecef;
}
h3.widget-title {
  font-size: 1.2rem;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
body {
  background: #fff;
  /* Fallback for when there is no custom background color defined. */
}

img {
  height: auto;
  /* Make sure images are scaled correctly. */
  max-width: 100%;
  /* Adhere to container width. */
}

#page {
  position: relative;
}

figure {
  margin: 1em 0;
  /* Extra wide images within figure tags don't overflow the content area. */
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.btn-primary,
.gform_wrapper .gform_footer input.button,
.gform_wrapper .gform_footer input[type=submit],
.gform_wrapper .gform_page_footer input.button,
.gform_wrapper .gform_page_footer input[type=submit] {
  color: white !important;
  margin: 0 auto;
  margin-top: 2.5rem;
  font-size: 1rem;
  padding: 1rem 3.3rem;
  background: black;
  border-radius: 0;
  border: none!important;
}
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
  color: #a0a0a0;
}
.btn-primary {
  margin-top: 1.5rem;
  text-decoration: none;
}
  .btn-primary:hover,
  .gform_wrapper .gform_footer input.button:hover,
  .gform_wrapper .gform_footer input[type=submit]:hover,
  .gform_wrapper .gform_page_footer input.button:hover,
  .gform_wrapper .gform_page_footer input[type=submit]:hover {
    background: #808080;
  }
  .btn-primary:focus,
  .btn-primary:active {
    outline: 0;
    box-shadow: none;
    background-color: black !important;
    border: none !important;
  }
.gform_wrapper {
  width: 31.3rem;
  margin: 0 auto !important;
}
  h3.form-title {
    margin: 5rem auto 3.6rem auto !important;
    text-align: center;
  }
  h3.gform_title {
    display: none;
  }
  .gform_wrapper ul.gform_fields li.gfield {
    padding-right: 0 !important;
  }
    .gform_wrapper div.validation_error,
    .gform_wrapper li.gfield.gfield_error.gfield_contains_required div.gfield_description {
      display: none !important;
    }
  label.gfield_label {
    display: none !important;
  }
  .gform_wrapper input,
  .gform_wrapper textarea {
    padding: 1rem !important;
    font-size: 18px !important;
    color: #3d3d3d !important;
    width: 100% !important;
    border: 1px solid #BCBCBE !important;
  }
  .gform_wrapper input:focus,
  .gform_wrapper textarea:focus {
    outline: 0;
    border: 1px solid #3d3d3d !important; 
  }
  .gform_wrapper .gfield_error input,
  .gform_wrapper .gfield_error textarea {
    color: #F04949 !important;
    border: 1px solid #F04949 !important;
  }
  .gform_wrapper .gfield_error input::placeholder,
  .gform_wrapper .gfield_error textarea::placeholder {
    color: #F04949 !important;
  }
  .gform_footer {
    padding: 0 !important;
    margin: 1.2rem 0 0 0 !important;
  }
  
  .gform_wrapper li.gfield.gfield_error, .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning {
    background-color: transparent !important;
    margin-bottom: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }
  
  .gform_wrapper.gform_validation_error form.apply .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half) {
    max-width: 100% !important;
  }
  
  .gform_confirmation_wrapper  {
    text-align: center !important;
  }
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
header#masthead {
  margin-bottom: 0;
  background-color: white;
  padding: 2rem 1rem 2.2rem 1rem;
}

nav.mobile {
  display: none;
}

header#masthead nav.main {
  flex-flow: column;
}

  .lang-social {
    width: 100%;
    margin-bottom: 2.31rem;
    text-align: right;
  }
    .social {
      display: inline-flex;
    }
      .social a:hover {
        opacity: .8;
      }
      .social a:not(:last-child) {
        margin-right: 0.6rem;
      }
    
    #lang_sel_list {
      font-family: "Source Sans Pro";
    }
    .lang-switch-mobile {
      display: none;
    }
    .lang-switch-desktop {
      display: inline-flex;
      align-items: center;
      vertical-align: middle;
      margin-right: 1.56rem;
    }
      .lang-switch-desktop ul {
        border-top: none !important;
        float: right;
      }
        .lang-switch-desktop ul li {
          font-size: 0.88rem;
          color: #808080;
          display: inline;
        }
          .lang-switch-desktop ul li.active a,
          .lang-switch-mobile ul li.active a {
            
          }
            #lang_sel_list.lang-switch-desktop ul li.active a,
            .lang-switch-mobile ul li.active a {
              color: #afafaf !important;
              pointer-events: none;
            }
          #lang_sel_list.lang-switch-desktop li:not(:first-child):before {
            content: '/' !important;
            display: inline-block;
            padding: 0 0.7rem;
          }
          #lang_sel_list.lang-switch-desktop ul li a {
            display: inline-block;
            font-size: 0.88rem;
            color: #808080 !important;
            padding-left: 0;
          }
            #lang_sel_list.lang-switch-desktop ul li a:hover {
              background-color: white !important;
              text-decoration: underline !important;
            }
  
header#masthead nav.main .menu-primary-menu-en-container,
header#masthead nav.main .menu-primary-menu-lv-container,
header#masthead nav.main .menu-primary-menu-ru-container {
  width: 100%;
  text-align: right;
}
  ul.navbar-nav {
    float: right;
  }
    ul.navbar-nav > li:last-child a {
      padding-right: 0 !important;
    }
    
    .navbar-brand > a {
      color: #3D3D3D;
      font-size: 1.1rem;
      outline: medium none;
      text-decoration: none;
    }
    
    .navbar-brand > a:visited, .navbar-brand > a:hover {
      text-decoration: none;
    }

#page-sub-header {
  position: relative;
  font-size: 1.25rem;
  max-width: 1440px;
  margin: 0 auto;
  background-size: cover !important;
  background-position: center center !important;
}
  #page-sub-header .overlay {
    display: table;
    width: 100%;
    min-height: 40rem;
  }
    #page-sub-header .overlay .wrapper {
      display: table-cell;
      padding: 2rem 0;
      vertical-align: middle;
    }

body.home #page-sub-header {
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}
  body.home #page-sub-header .overlay {
    
  }
    body.home #page-sub-header .overlay .wrapper {      
      padding: 6.3rem 0;
      vertical-align: bottom;
    }    
      #page-sub-header h1 {
        line-height: auto;
        font-size: 4rem;
        color: white;
        margin: 0 0 1rem;
        border: 0;
        padding: 0;
        text-align: center;
        width: 70%;
        margin: 0 auto;
      }
      body.home #page-sub-header h1 {
        text-align: left;
        width: 100%;
        margin: 0;
      }

#page-sub-header p {
  margin: 0;
  padding: 0;
}
#page-sub-header p {
  
}
#page-sub-header a {
  display: block;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  text-decoration: none;
}
  #page-sub-header a.learn-more:before {
    content: "\2014";
    padding-right: 1rem;
  }
#page-sub-header a.learn-more:hover {
  text-decoration: none;
}
#page-sub-header a.learn-more:hover span {
  text-decoration: underline;
}
a.page-scroller {
  color: #333;
  font-size: 2.6rem;
  display: inline-block;
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  body:not(.theme-preset-active) #page-sub-header h1 {
    font-size: 3.750rem;
  }
  body:not(.theme-preset-active) #page-sub-header {
    font-size: 1.25rem;
  }
}
@media screen and (min-width: 992px) {
  #page-sub-header p {
    
  }
}
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
#masthead nav {
  padding-left: 0;
  padding-right: 0;
}

#masthead .navbar-nav > li > a {
  color: #3D3D3D;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
#masthead .navbar-nav > li > a:hover {
  color: #000 !important;
}

body:not(.theme-preset-active) #masthead .navbar-nav > li > a:hover,
body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_item > a,
body:not(.theme-preset-active) #masthead .navbar-nav > li.current_page_parent > a,
nav.mobile .navbar-nav > li > a:hover,
nav.mobile .navbar-nav > li.current_page_item > a,
nav.mobile .navbar-nav > li.current_page_parent > a {
  color: #afafaf;
}

.navbar-brand {
  height: auto;
}

.navbar-toggler:focus, .navbar-toggler:hover {
  text-decoration: none;
  outline: 0;
}

.dropdown-menu .dropdown-toggle::after {
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  border-top: 0.3em solid transparent;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

.dropdown-item {
  line-height: 1.2;
  padding-bottom: 0.313rem;
  padding-top: 0.313rem;
}

.dropdown-menu {
  min-width: 12.500rem;
}

.dropdown .open .dropdown-menu {
  display: block;
  left: 12.250em;
  top: 0;
}

.dropdown-menu .dropdown-item {
  white-space: normal;
  font-size: 0.88rem;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }
}
@media screen and (min-width: 769px) {
  .dropdown-menu li > .dropdown-menu {
    right: -9.875rem;
    top: 1.375rem;
  }
}
@media screen and (max-width: 991px) {
  .dropdown-menu {
    border: medium none;
    margin-left: 1.250rem;
    padding: 0;
  }

  .dropdown-menu li a {
    padding: 0;
    text-decoration: none;
  }

  .navbar-light .navbar-toggler {
    border: medium none;
    outline: none;
  }
  .navbar-light .navbar-toggler:focus {
    outline: none;
  }
}
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
  overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  float: left;
  width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  float: right;
  text-align: right;
  width: 50%;
}
.comment-content.card-block {
  padding: 20px;
}

.navigation.post-navigation {
  padding-top: 1.875rem;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  border: 1px solid #ddd;
  border-radius: 0.938rem;
  display: inline-block;
  padding: 0.313rem 0.875rem;
  text-decoration: none;
}

.post-navigation .nav-next a::after {
  content: " \2192";
}

.post-navigation .nav-previous a::before {
  content: "\2190 ";
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  background: #eee none repeat scroll 0 0;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 0.88rem;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 0.313rem;
  line-height: normal;
  padding: 0.938rem 1.438rem 0.875rem;
  text-decoration: none;
  top: 0.313rem;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
  outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}

.alignright {
  display: inline;
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a img.alignright {
  float: right;
  margin: 0.313rem 0 1.25rem 1.25rem;
}

a img.alignnone {
  margin: 0.313rem 1.25rem 1.25rem 0;
}

a img.alignleft {
  float: left;
  margin: 0.313rem 1.25rem 1.25rem 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption.alignnone {
  margin: 0.313rem 1.25rem 1.25rem 0;
}

.wp-caption.alignleft {
  margin: 0.313rem 1.25rem 1.25rem 0;
}

.wp-caption.alignright {
  margin: 0.313rem 0 1.25rem 1.25rem;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
  content: "";
  display: table;
  table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
  clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
  margin: 0 0 1.5em;
  font-size: 0.88rem;
  /* Make sure select elements fit in widgets. */
}
.widget select {
  max-width: 100%;
}

.widget_search .search-form input[type="submit"] {
  display: none;
}

.nav > li > a:focus,
.nav > li > a:hover {
  background-color: #eee;
  text-decoration: none;
}
.half-rule {
  width: 6rem;
  margin: 2.5rem 0;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
#content.site-content {
  padding-top: 0;
  padding-bottom: 0;
}

#content.site-content .main-row {
  padding-top: 6.25rem;
}

.sticky .entry-title::before {
  content: '\f08d';
  font-family: fontawesome;
  font-size: 1.563rem;
  left: -2.5rem;
  position: absolute;
  top: 0.375rem;
}

.sticky .entry-title {
  position: relative;
}

.single .byline,
.group-blog .byline {
  display: inline;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

.page-template-blank-page .entry-content,
.blank-page-with-container .entry-content {
  margin-top: 0;
}

.post.hentry {
  margin-bottom: 4rem;
}

.posted-on, .byline, .comments-link {
  color: #9a9a9a;
}

.entry-title > a {
  color: inherit;
  text-decoration: none;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

.comment-body .pull-left {
  padding-right: 0.625rem;
}

.comment-list .comment {
  display: block;
}

.comment-list {
  padding-left: 0;
}

.comments-title {
  font-size: 1.125rem;
}

.comment-list .pingback {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 0.563rem 0;
}

.comment-list .pingback:first-child {
  border: medium none;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  /* Theme Footer (when set to scrolling) */
  display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
  background: #f1f1f1 none repeat scroll 0 0;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 0.313rem 0.313rem 0;
  text-align: center;
}
.wp-caption img[class*="wp-image-"] {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 100%;
  padding: 0;
  width: auto;
}
.wp-caption .wp-caption-text {
  font-size: 0.688rem;
  line-height: 1.063rem;
  margin: 0;
  padding: 0.625rem;
}

.wp-caption-text {
  text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}
.gallery-item .gallery-columns-2 {
  max-width: 50%;
}
.gallery-item .gallery-columns-3 {
  max-width: 33.33333%;
}
.gallery-item .gallery-columns-4 {
  max-width: 25%;
}
.gallery-item .gallery-columns-5 {
  max-width: 20%;
}
.gallery-item .gallery-columns-6 {
  max-width: 16.66667%;
}
.gallery-item .gallery-columns-7 {
  max-width: 14.28571%;
}
.gallery-item .gallery-columns-8 {
  max-width: 12.5%;
}
.gallery-item .gallery-columns-9 {
  max-width: 11.11111%;
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer#colophon {
  color: #808080;
  font-size: 1rem;
  margin-top: 6.25rem;
  padding: 3.5rem;
  border-top: 1px solid #DDDDDD;
}
body.home footer#colophon {
  margin-top: 0;
}
footer .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
  footer a {
    color: #3D3D3D !important;
    text-decoration: none;
  }

.copyright {
  font-size: 0.875rem;
  margin-bottom: 0;
  text-align: center;
}

.copyright a, footer#colophon a {
  color: inherit;
}

@media screen and (max-width: 991px) {
  footer .menu {
    display: none; 
  }
  
  footer .col-12 {
    text-align: center !important;
  }
  
  footer .follow-us {
    margin-bottom: 2.18rem;
  }
}
/*--------------------------------------------------------------
# Media Query
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Notebook
--------------------------------------------------------------*/
@media only screen and (max-width: 1280px) {
  html {
    font-size: 100%;
  }
}

@media screen and (min-width: 1230px) {
  .container {
    max-width: 1200px;
    padding-right: 0;
    padding-left: 0;
  }
}

@media screen and (max-width: 1199px) {
  
  .navbar-brand img {
    
  }
  .navbar-dark .dropdown-item {
    color: #fff;
  }
  .dropdown-menu {
    background: transparent;
    box-shadow: none;
    border: none;
  }
  
  .lang-switch-mobile {
    display: block !important;
  }
  .lang-switch-desktop {
    display: none !important;
  }
  #masthead nav.main {
    display: none !important;
  }
  .mobile-wrapper {
    position: relative;
  }
    nav.mobile {
      display: none;
      position: absolute;
      top: 0;
      width: 100%;
      background: white;
      z-index: 999;
    }
    nav.mobile.open {
      display: block;
    }
  header#masthead {
    margin-bottom: 0;
    background-color: white;
    padding: 1.6rem 1rem 1.6rem 1rem;
  }
  nav.mobile .menu-primary-menu-en-container,
  nav.mobile .menu-primary-menu-lv-container,
  nav.mobile .menu-primary-menu-ru-container {
    text-align: left;
  }
  .lang-social {
    text-align: left;
    margin-bottom: 0;
  }
    .social {
      display: none;
    }
    ul.navbar-nav {
      float: left;
      width: 100%;
    }
      nav.mobile .navbar-nav > li {
        border-top: 1px solid #000;
      }
      nav.mobile .navbar-nav > li:last-child {
        border-bottom: 1px solid #000;
      }
        nav.mobile .navbar-nav > li > a {
          max-width: 960px;
          padding-left: 1.63rem;
          padding-right: 1.63rem;
          padding-top: 0;
          padding-bottom: 0;
          font-size: 1.75rem;
          font-weight: bold;
          color: #3D3D3D;
          letter-spacing: 0.47px;
          line-height: 60px;
          text-decoration: none;
          margin: 0 auto;
        }
    .lang-switch-mobile {
      border-top: 1px solid black;
    }
    .lang-switch-mobile ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: row;
      justify-content: center;
    }
      .lang-switch-mobile ul > li {
        width: 100%;
        text-align: center;
        border-right: 1px solid black;
      }
      .lang-switch-mobile ul > li:last-child {
        border-right: 0;
      }
        .lang-switch-mobile ul > li > a {
          font-size: 1.75rem;
          font-weight: bold;
          color: #3D3D3D;
          letter-spacing: 0.47px;
          line-height: 60px;
          text-decoration: none;
          text-transform: uppercase;
        }
  
    header#masthead nav.main {
      display: none;
      margin-top: 1.5rem;
    }
    header#masthead.show nav.main {
      display: block; 
    }
    #masthead .navbar-nav > li > a {
      padding-bottom: 0.625rem;
      padding-top: 0.313rem;
      font-weight: bold;
    }
    
    #page-sub-header .overlay {
      min-height: 31.25rem;
    }
      #page-sub-header h1 {
        font-size: 3.13rem;
        line-height: 3.25rem;
      }
}
/*--------------------------------------------------------------
## Netbook
--------------------------------------------------------------*/
@media only screen and (max-width: 1024px) {
  html {

  }
  
  #quotes .quote {
    font-size: 1.38rem;
    line-height: 1.88rem;
  }
}

@media screen and (max-width: 991px) {
  
  body.home h3.mobile {
    display: block !important;
    margin: 0 auto;
    text-align: center;
    margin-top: 4.81rem;
  }
  #content.site-content .main-row {
    padding-top: 3.56rem;
  }
  
  .single-content {
    padding: 4.81rem 0;
  }  
  
  body.page-template-page-calendar .event .data .d-inline-block {
    display: block !important;
  }
  body.page-template-page-calendar .event .data .location {
    margin-left: 0 !important;
  }
}
/*--------------------------------------------------------------
## iPad
--------------------------------------------------------------*/
@media only screen and (max-width: 960px) {
  html {

  }
}
/*--------------------------------------------------------------
## iPad
--------------------------------------------------------------*/
@media only screen and (max-width: 768px) {
  html {

  }
  
  header#masthead {
    padding: 1.56rem 1rem;
  }
  .navbar-brand img {
    width: 50px;
    height: auto;
  }
  
  #page-sub-header a {
    
  }
  
  body.page-template-page-calendar .event .data {
    margin-top: 1.56rem;
  }
  
  .news-item {
    padding-left: 0;
    padding-right: 0;
  }
    .news-item .news-content {
      padding-left: 15px;
      padding-right: 15px;
    }
  
  body.blog h1,
  body.page-template-page-calendar h1,
  body.page-template-page-artists h1,
  body.page-template-page-publications h1 {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    font-size: 2.38rem;
    line-height: 2.5rem;
  }
  
  .news-item h3 {
    margin-top: 0 !important;
    margin-bottom: 1.4rem !important;
  }
  .category {
    margin-top: 1.2rem !important;
    margin-bottom: 1rem !important;
  }
}

@media only screen and (max-width: 576px) {
  nav.mobile .navbar-nav > li > a {
    max-width: 540px; 
  }
}

@media only screen and (max-width: 575px) {
  
  .home-direction {
    padding: 0.78rem;
  }
  
  body.home h3.mobile {
    margin-top: 3.5rem;
  }
  body.home #content.site-content #main .main-row.first {
    padding-top: 1rem;
  }
  
  #content.site-content .main-row {
    padding-top: 2.5rem;
  }
  
  .page-template-page-calendar .cal-image {
    padding-left: 0;
    padding-right: 0;
  }
}

/*--------------------------------------------------------------
## iPad
--------------------------------------------------------------*/
@media only screen and (max-width: 480px) {
  html {

  }
  
  #masthead .navbar-nav > li > a {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  #page-sub-header .overlay {
    min-height: 23.75rem;
  }
  body.home #page-sub-header .overlay .wrapper {
    padding: 3rem 0;
  }
    #page-sub-header h1 {
      font-size: 2.38rem;
      line-height: 2.5rem;
    }
}

@media (min-width: 576px) {
  nav.mobile .navbar-nav > li > a {
    max-width: 540px;
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (min-width: 768px) {
  nav.mobile .navbar-nav > li > a {
    max-width: 720px;
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (min-width: 992px) {
  nav.mobile .navbar-nav > li > a {
    max-width: 960px;
    padding-right: 15px;
    padding-left: 15px;
  }
}

/*--------------------------------------------------------------
## Home page
--------------------------------------------------------------*/
.home-direction {
  
}
  .home-direction a {
    position: relative;
    display: block;
    text-decoration: none;
  }
    .home-direction .overlay {
      position: absolute;
      display: block;
      height: 100%;
      width: 100%;
      top: 0; left: 0; bottom: 0; right: 0;
      margin: auto;
      background: rgba(0,0,0,0.3);
      z-index: 1;
    }
    .home-direction img.title {
      position: absolute;
      display: block;
      height: 20%;
      width: auto;
      top: 0; left: 0; bottom: 0; right: 0;
      margin: auto;
      z-index: 2;
    }

.news-item {
  margin-bottom: 2.75rem;
}
.news-item.first {
  display: none;
}
  .news-item a,
  .latest-post a,
  a.latest-post,
  body.page-template-page-calendar .event a {
    color: inherit;
    text-decoration: none;
  }
    .news-item a:hover,
    .latest-post a:hover,
    a.latest-post:hover,
    body.page-template-page-calendar .event a:hover {
      text-decoration: none;
    }
      .news-item a:hover h2,
      .latest-post a:hover h2,
      a.latest-post:hover h2,
      body.page-template-page-calendar .event a:hover h2,
      .news-item a:hover h3,
      .latest-post a:hover h3,
      a.latest-post:hover h3,
      body.page-template-page-calendar .event a:hover h3,
      .news-item a:hover .more-link,
      .latest-post a:hover .more-link,
      a.latest-post:hover .more-link,
      body.page-template-page-calendar .event a:hover .more-link {
        text-decoration: underline;
      }
      .news-item a:hover p,
      .latest-post a:hover p,
      a.latest-post:hover p,
      body.page-template-page-calendar .event a:hover p {
        color: #000; 
      }
      .news-item a:hover img,
      .latest-post a:hover img,
      a.latest-post:hover img,
      body.page-template-page-calendar .event a:hover img {
        opacity: .8;
      }
  .latest-post h2 {
    margin-bottom: 1.63rem;
  }
  .news-item h3 {
    margin-bottom: 1.6rem;
  }
    
@media screen and (max-width: 991px) {
  .latest-post {
    display: none;
  }
  
  .news-item.first {
    display: block; 
  }
  
  #quotes .quote-wrapper {
    width: 90%;
  }
    #quotes .slick-list {
      padding: 0 !important;
    }
}

#quotes {
  margin-top: 3.5rem;
  padding-top: 4.43rem;
  padding-bottom: 3.8rem;
  border-top: 1px solid #DDDDDD;
  background: url(inc/assets/img/quotes_bg@2x.png) left center no-repeat;
  background-size: auto 100%;
}
  .slick-prev,
  .slick-next {
    display: none !important;
  }
  #quotes > img {
    margin-bottom: 2.5rem;
  }
  .quote-wrapper {
    width: 60%;
    margin: 0 auto;
  }
    .quote {
      font-size: 1.88rem;
      color: #808080;
      text-align: center;
      line-height: 42px;
      font-weight: 300;
      font-style: italic;
    }
    .author {
      font-size: 1rem;
      font-weight: 600;
      color: #3D3D3D;
      line-height: 22px;
      margin-top: 1.38rem;
    }
    
/*--------------------------------------------------------------
## News blocks
--------------------------------------------------------------*/
.category {
  color: #808080;
  font-size: 1rem;
  font-weight: 600;
  text-transform: lowercase;
  margin: 1.5rem 0;
}

.latest-post .more-link {
  margin-top: 2.56rem; 
}
.more-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #3D3D3D;
  margin-top: 2rem;
  margin-bottom: 0
}
  .more-link:before {
    content: "\2014";
    padding-right: 1rem;
    display: inline-block;
  }
.more-link:hover {
  color: #3D3D3D;
}
  
/*--------------------------------------------------------------
## About page
--------------------------------------------------------------*/
.page-template-page-about h1 {
  font-size: 3.75rem;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-align: center;
  line-height: 62px;
  margin: 0 auto;
}
.page-template-page-about #main .container,
.page-template-page-residency #main .container,
.page-template-page-exhibitions #main .container,
.page-template-page-education #main .container,
.single-content {
  font-size: 1.25rem;
  color: #222222;
  line-height: 32px;  
}
.page-template-page-about #main .container,
.page-template-page-residency #main .container,
.page-template-page-exhibitions #main .container,
.page-template-page-education #main .container {
  margin-top: 6.25rem;
  margin-bottom: 6.25rem;
  max-width: 800px;
}

/*--------------------------------------------------------------
## News page
--------------------------------------------------------------*/
body.blog h1 {
  margin-top: 4rem;
  text-align: center;
}
body.blog #content.site-content .main-row {
  padding-top: 6.25rem;
}

body.blog #content.site-content .other-news {
  padding-top: 5rem;
}
body.home h3.mobile {
  display: none;
}
.news-block .main-row {
  padding-top: 2.80rem !important;
}

/*--------------------------------------------------------------
## News single page
--------------------------------------------------------------*/
body.single h3.other {
  margin: 0 auto;
  text-align: center;
}

body.single #content.site-content .main-row {
  padding-top: 3.8rem;
}

.single-content {
  padding: 6.3rem 0;
}
  .single-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
/*--------------------------------------------------------------
## Calendar page
--------------------------------------------------------------*/
body.page-template-page-calendar  h1 {
  margin-top: 4rem;
  text-align: center;
}
body.page-template-page-calendar .content {
  margin-top: 2rem;
}
body.page-template-page-calendar .event {
  margin-bottom: 3.8rem;
}
body.page-template-page-calendar .event:last-child {
  margin-bottom: 0;
}
  body.page-template-page-calendar .event .data {
    color: #808080;
    font-size: 1rem;
    font-weight: 600;
  }
    body.page-template-page-calendar .event .data .location {
      margin-left: 1.9rem;
    }
      body.page-template-page-calendar .event .data .location img {
        margin-right: 0.4rem;
      }
body.page-template-page-calendar a {
}
body.page-template-page-calendar a:hover {
  
}
body.page-template-page-calendar .cal-image a:hover img {
}

/*--------------------------------------------------------------
## Artists page
--------------------------------------------------------------*/
.artists-page {
	
}
.artists-page h1 {
	margin-top: 4rem;
}
	ul.artists-list {
		margin: 0;
		padding: 0;
	}
  .artists-intro {
    padding-top: 3rem;
  }
	.artists-page ul.artists-list {
		/*padding-top: 7.2rem;*/
    padding-top: 4.2rem;
	}
		ul.artists-list li {
			display: block;
			border-top: 1px solid #000;
			list-style: none;
		}
			ul.artists-list li a {
				display: block;
				padding: 30px 0;
				font-weight: bold;
				font-size: 28px;
				color: #3D3D3D;
				letter-spacing: 0.7px;
				text-decoration: none;
			}
			ul.artists-list li a:hover {
				text-decoration: underline;
			}
				ul.artists-list li a img {
					float: right;
				}
		ul.artists-list li:last-child {
			border-bottom: 1px solid #000;
		}
		
.other-artists h3 {
	margin-top: 60px;
	margin-bottom: 61px;
	text-align: center;
}

@media screen and (max-width: 991px) {
	ul.artists-list {
		padding-top: 3.75rem;
	}
	
	.other-artists h3 {
		margin-bottom: 0;	
	}
}

@media screen and (max-width: 767px) {
	ul.artists-list {
		padding-top: 2.90rem !important;
	}
}
@media only screen and (max-width: 480px) {
	ul.artists-list li a {
		padding: 14px 0;
		font-size: 18px;	
	}
		ul.artists-list li a img {
			width: 20px;
			height: auto;
		}
}

/*--------------------------------------------------------------
## Residents page
--------------------------------------------------------------*/
.residents {
	margin-top: 115px;
}
	.residents h3 {
		margin-bottom: 41px;
	}
	ul.residents-list {
		margin: 0;
		padding: 0;
	}
		ul.residents-list li {
			display: inline-block;
			margin-right: 30px;
		}
			ul.residents-list li a {
				font-size: 28px;
				color: #3D3D3D;
				letter-spacing: 0.7px;
				line-height: 60px;
				text-decoration: none;
			}
			ul.residents-list li a:hover {
				text-decoration: underline;
			}
	.resident-content {
		display: none;
		width: 800px;
	}
		.resident-content img.featured {
			float: left;
			width: 50%;
			padding: 0 45px 45px 0;
		}
		.resident-content a.url {
			display: block;
			margin-top: 25px;
		}
		
@media only screen and (max-width: 575px) {
	.resident-content img.featured {
		float: none;
		width: 100%;
		height: auto;
		padding: 0;
		margin-bottom: 47px;	
	}
}

@media only screen and (max-width: 480px) {
	ul.residents-list li {
	    margin-right: 15px;
	}
		ul.residents-list li a {
			font-size: 18px;
			line-height: 22px;
		}
}

/*--------------------------------------------------------------
## Publications page
--------------------------------------------------------------*/
.publications-page {
	
}
	.publications-page h1 {
		margin-top: 4rem;
	}
	.publications-page .news-block {
		
	}
		.publications-page .news-block .main-row {
			padding-top: 6.25rem !important;
		}
	.publication-content {
		display: none;
		width: 800px;
	}
		.publication-content .author {
			color: #808080;
			font-size: 16px;
			font-weight: 600;
		}
		.publication-content img.featured {
			float: left;
			width: 50%;
			padding: 0 45px 45px 0;
		}
		.publication-content a.url {
			display: block;
			margin-top: 25px;
		}
	.publications-page .news-item .author {
		text-transform: none;
	}
@media screen and (max-width: 991px) {
	.publications-page .news-block .main-row {
		padding-top: 2.80rem !important;
	}
}
@media only screen and (max-width: 575px) {
	.publication-content img.featured {
		float: none;
		width: 100%;
		height: auto;
		padding: 0;
		margin-bottom: 47px;	
	}
} 

/*--------------------------------------------------------------
## Custom gallery
--------------------------------------------------------------*/
.gallery {
  margin: auto;
  max-width: 1000px;
  padding-bottom: 70px;
  padding-top: 50px;
  display: table;
  width: 100%;
}
.gallery .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -30px;
  margin-top: -30px;
}
.gallery a {
  outline: none;
  transition: .3s all ease;
  -webkit-transition: .3s all ease;
}
.gallery .inner:focus a,
.gallery .inner:active a,
.gallery .inner:hover a {
  -webkit-box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.1);
  box-shadow: 0px 0px 20px 2px rgba(0,0,0,0.1);
  transform: scale(1.01);
  -webkit-transform: scale(1.005);
  backface-visibility: hidden;
}
.gallery .inner:focus .play-icon svg,
.gallery .inner:active .play-icon svg,
.gallery .inner:hover .play-icon svg {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
}
.gallery .inner:focus .play-icon svg path,
.gallery .inner:active .play-icon svg path,
.gallery .inner:hover .play-icon svg path {
  fill: ;
}
.gallery .inner {
  position: relative;
  box-sizing: border-box;
  padding: 6px;
}
.gallery .gallery-item {
  float: left;
  text-align: center;
  position: relative;
  width: 33.333%;
  box-sizing: border-box;
}
.gallery img {
  border: 2px solid #cfcfcf;
}
.gallery .gallery-caption {
  margin-left: 0;
}
.gallery .image {
  width: 100%;
  height: 0;
  display: block;
  padding-top: 100%;
  background-color: #F5F5F5;
  background-size: cover;
  background-position: center center;
}
.gallery.gallery-images-6 .gallery-item,
.gallery.gallery-images-5 .gallery-item,
.gallery.gallery-images-3 .gallery-item {
  width: 35%;
}
.gallery.gallery-images-6 .gallery-item-2,
.gallery.gallery-images-5 .gallery-item-2,
.gallery.gallery-images-3 .gallery-item-2 {
  width: 65%;
  float: right;
}
.gallery.gallery-images-6 .gallery-item-4 {
  width: 65%;
}
.gallery.gallery-images-6 .gallery-item-4 .image,
.gallery.gallery-images-6 .gallery-item-2 .image,
.gallery.gallery-images-5 .gallery-item-2 .image,
.gallery.gallery-images-3 .gallery-item-2 .image {
  padding-top: 107.9%;
}
.gallery.gallery-images-5 .gallery-item-4 {
  width: 60%;
}
.gallery.gallery-images-5 .gallery-item-4 .image {
  padding-top: 65%;
}
.gallery.gallery-images-5 .gallery-item-5 {
  width: 40%;
}
.gallery.gallery-images-5 .gallery-item-5 .image {
  padding-top: 98.7%;
}
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: .8;
}
.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
}
.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}
.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.mfp-align-top .mfp-container:before {
  display: none;
}
.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}
.mfp-ajax-cur {
  cursor: progress;
}
.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}
.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}
.mfp-auto-cursor .mfp-content {
  cursor: auto;
}
.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.mfp-loading.mfp-figure {
  display: none;
}
.mfp-hide {
  display: none !important;
}
.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044;
}
.mfp-preloader a {
  color: #CCC;
}
.mfp-preloader a:hover {
  color: #FFF;
}
.mfp-s-ready .mfp-preloader {
  display: none;
}
.mfp-s-error .mfp-content {
  display: none;
}
button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation;
}
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: .65;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
}
.mfp-close:hover,
.mfp-close:focus {
  opacity: 1;
}
.mfp-close:active {
  top: 1px;
}
.mfp-close-btn-in .mfp-close {
  color: #333;
}
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%;
}
.mfp-counter {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.mfp-arrow {
  position: absolute;
  opacity: .65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent;
}
.mfp-arrow:active {
  margin-top: -54px;
}
.mfp-arrow:hover,
.mfp-arrow:focus {
  opacity: 1;
}
.mfp-arrow:before,
.mfp-arrow:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 35px;
  margin-left: 35px;
  border: medium inset transparent;
}
.mfp-arrow:after {
  border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px;
}
.mfp-arrow:before {
  border-top-width: 21px;
  border-bottom-width: 21px;
  opacity: .7;
}
.mfp-arrow-left {
  left: 0;
}
.mfp-arrow-left:after {
  border-right: 17px solid #FFF;
  margin-left: 31px;
}
.mfp-arrow-left:before {
  margin-left: 25px;
  border-right: 27px solid #3F3F3F;
}
.mfp-arrow-right {
  right: 0;
}
.mfp-arrow-right:after {
  border-left: 17px solid #FFF;
  margin-left: 39px;
}
.mfp-arrow-right:before {
  border-left: 27px solid #3F3F3F;
}
.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px;
}
.mfp-iframe-holder .mfp-content {
  line-height: 0;
  width: 100%;
  max-width: 900px;
}
.mfp-iframe-holder .mfp-close {
  top: -40px;
}
.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
}
.mfp-iframe-scaler iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  background: #000;
}
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0;
  margin: 0 auto;
}
.mfp-figure {
  line-height: 0;
}
.mfp-figure:after {
  content: '';
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  background: #444;
}
.mfp-figure small {
  color: #BDBDBD;
  display: block;
  font-size: 12px;
  line-height: 14px;
}
.mfp-figure figure {
  margin: 0;
}
.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto;
}
.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  padding-right: 36px;
}
.mfp-image-holder .mfp-content {
  max-width: 100%;
}
.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}
@media screen and (max-width: 800px) and (orientation: landscape),screen and (max-height: 300px) {
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0;
  }
  .mfp-img-mobile img.mfp-img {
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
  }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
  }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0,0,0,0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box;
  }
  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
  }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px;
  }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0,0,0,0.6);
    position: fixed;
    text-align: center;
    padding: 0;
  }
}
@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
  }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0;
  }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%;
  }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

.fancybox-slide--html .fancybox-close-small {
	opacity: 1;
}
.fancybox-content {
	color: #222;
	font-size: 20px;
	line-height: 32px;
}
.fancybox-slide--html .fancybox-close-small {
    padding: 7px !important;
}
.fancybox-button svg path {
    fill: black;
    stroke-width: 3px;
}