/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
  font-family: "SnagaText_Regular";
  src:
    local("SnagaText-Regular"),
    url("../font/SnagaText-Regular.woff") format("woff"),
    url("../font/SnagaText-Regular.woff2") format("woff2");
}
@font-face {
   font-family: "SnagaText_Medium";
   src:
     local("SnagaText-Medium"),
     url("../font/SnagaText-Medium.woff") format("woff"),
     url("../font/SnagaText-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "SnagaText_Bold";
  src:
    local("SnagaText-Bold"),
    url("../font/SnagaText-Bold.woff") format("woff"),
    url("../font/SnagaText-Bold.woff2") format("woff2");
}

html, body, input, textarea, button {
  font-family: "SnagaText_Regular", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #232629;
}
/* body {
  font-size: calc(1.9px + 6 * ((100vw - 320px) / 680));
} */
b, strong, h1, h2, h3, h4, h5, h6 {
  font-family: "SnagaText_Medium", sans-serif;
  font-weight: normal;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
figure {
  margin: 0;
  padding: 0;
  display: block;
}
#site-header {
  box-sizing: border-box;
  padding: 2.5lvh 4.102564102564102vw 2.5lvh;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 1);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
}
#site-title {
  margin: 0;
  width: 20%;
  font-family: "SnagaText_Regular", sans-serif;
  font-size: 1em;
  line-height: 1em;
  
  /* max-width: 177px; */
  min-height: 24px;
  font-size: 1.2vh;
  position: relative;
  z-index: 3;
}
.page-archive #site-title, 
#site-title a {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: left;
  gap: 0 1em;
}
#site-title span {
  display: block;
  color: #ADB3B9;
  text-transform: uppercase;
  transition: color .5s linear;
}
.page-archive #site-title span {
  color: #373C40;
}
#site-title path {
  fill: #ADB3B9;
  transition: fill .5s linear;
}
.page-archive #site-title path {
  fill: #373C40;
}
#site-title a:link,
#site-title a:visited,
#site-title a:hover,
#site-title a:focus,
#site-title a:active {
  text-decoration: none;
  color: #ADB3B9;
}
#site-title a:hover,
#site-title a:focus,
#site-title a:active {
  color: #373C40;
}
#site-title a:hover span, 
#site-title a:focus span, 
#site-title a:active span {
  color: #373C40;
}
#site-title a:hover path, 
#site-title a:focus path, 
#site-title a:active path {
  fill: #373C40;
}
#site-nav {
  width: 60%;
  max-width: 1280px;
}
#site-nav ul, 
#site-tools {
  font-size: 1.125vw;
  font-size: clamp(14px, .875vw, 21px);
  /* font-size: min(0.875vw, 21px); */
  /* font-size: 0.875em; */
}
#menu-btn, #filter-btn {
  display: none;
}
#menu, .bogo-language-switcher {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.bogo-language-switcher {
  gap: 0 1em;
  justify-content: right;
}
#site-tools .current {
  display: none;
}
#menu a,
#site-tools a {
  padding: 2px 0;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .5s linear;
}
#site-tools a {
  margin-left: .5em;
}
#menu a:after,
#site-tools a:after {
  position: absolute;
  bottom: 0;
  left: -100%;
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #232629;
  transition: left .5s ease-out;
}
#menu a:hover:after,
#site-tools a:hover:after {
  left: 0%;
}
#menu a:link,
#menu a:visited,
#menu a:hover,
#menu a:focus,
#menu a:active {
  color: #8A939B;
}
#menu a:hover,
#menu a:focus,
#menu a:active {
  color: #232629;
}
#menu .current-page a:link,
#menu .current-page a:visited,
#menu .current-page a:hover,
#menu .current-page a:focus,
#menu .current-page a:active {
  color: #232629;
}
#menu .current-page a:after {
  left: 0%;
}
#site-tools a:link,
#site-tools a:visited,
#site-tools a:hover,
#site-tools a:focus,
#site-tools a:active {
  color: #8A939B;
}
#site-tools a:hover,
#site-tools a:focus,
#site-tools a:active {
  color: #232629;
}
#site-tools .current a:link,
#site-tools .current a:visited,
#site-tools .current a:hover,
#site-tools .current a:focus,
#site-tools .current a:active {
  color: #232629;
}
#site-tools .current a:after {
  left: 0%;
}
#site-tools {
  width: 20%;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  justify-content: right;
}
abbr[title] {
  text-decoration: none;
}
main {
  box-sizing: border-box;
  padding: 0 4.102564102564102vw;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: left;
  
  /* transition: all .5s ease-out; */

  color: #373C40;
  background: #fff;
}
section {
  margin: 0 15% 0 5%;
  margin: 0 15% 0 20%;
  width: 60%;
  max-width: 1280px;
  /* transition: all .5s ease-out; */
}
.page-single section {
  padding-bottom: 5lvh;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.page-single section header {
  display: flex;
  flex-direction: column-reverse;
  order: 1;
}
.page-generic section {
  margin: 0 auto;
  max-width: 640px;
}
.page-single section figure {
  margin: 0 auto 2em;
  width: 100%;
  max-width: 640px;
}
.single-art_nha_archive section figure {
  max-width: 1280px;
}
.flickity-page-dots {
  bottom: -2em;
}
.flickity-page-dots .dot {
  opacity: 1;
  background: #D0D4D7;
  width: 16px;
  height: 16px;
  margin: 0 10px;
  transition: background .5s linear;
}
.flickity-page-dots .dot:hover {
  background: #737D87;
}
.flickity-page-dots .dot.is-selected {
  background: #373C40;
}
aside {
  width: 15%;
  /* left: 4.102564102564102vw; */
  position: fixed;
  
}
.page-single aside {
  display: none;
}
.logos {
  width: 100%;
  /* display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.5vw; */
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 32px;
}
.logos article {
  /* border: 1px solid #B9BEC3; */
  /* width: 10%; */
}
.logos article a:link,
.logos article a:visited,
.logos article a:hover,
.logos article a:focus,
.logos article a:active {
  display: block;
  border: 1px solid #fff;
  opacity: .7;
  transition: opacity .5s linear, border .5s linear;
}
.logos article a:visited {
  border-color: #B9BEC3;
}
.logos article a:hover,
.logos article a:focus,
.logos article a:active {
  border-color: #B9BEC3;
  opacity: 1;
}
/* .logos article a img[src*=".jpg"] {
  opacity: .7;
  transition: opacity .5s linear; 
  filter: brightness(0) saturate(100%) invert(13%) sepia(1%) saturate(3859%) hue-rotate(169deg) brightness(96%) contrast(94%);
}
.logos article a img[src*=".png"], 
.logos article a img[src*=".svg"] {
  opacity: .5;
  filter: brightness(0) saturate(100%) invert(41%) sepia(7%) saturate(611%) hue-rotate(169deg) brightness(91%) contrast(84%);
}
.logos article a:visited img {
  opacity: .2;
}
.logos article a:hover img[src*=".jpg"] {
  opacity: 1;
}
.logos article a:hover img[src*=".png"], 
.logos article a:hover img[src*=".svg"] {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(13%) sepia(1%) saturate(3859%) hue-rotate(169deg) brightness(96%) contrast(94%);
} */
#site-footer {
  position: sticky;
  top: 100vh;
  box-sizing: border-box;
  width: 100%;
  padding: 2.5lvh 4.102564102564102vw;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-end;
  justify-content: space-between;
}
#site-footer p {
  margin: 0;
  font-size: 0.875em;
}
aside h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.875em;
}
aside ul, aside ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
aside ul {
  margin-bottom: 1em;
  padding-bottom: 1em;
  font-size: 0.875em;
}
aside ul li {
  padding: .125em 0;
}
aside input[type="checkbox"] {
  position: absolute;
  left: -9999em;
}
aside label {
  padding: .15em 1em;
  display: block;
  position: relative;
  font-size: 1em;
  line-height: 1em;
  color: #737D87;
}
aside label:before {
  content: '';
  display: block;
  position: absolute;
  top: .1em;
  left: 0;
  transform: translate(0, 0);
  font-family: 'fontello';
}
aside input:checked + label {
  color: #232629;
}
aside input:checked + label:before {
  content: '\e806';
}
aside label:hover:before {
  content: '\e806';
  color: rgba(0, 0, 0, .5);
}
.page-single h1, .wrapper p {
  margin: 1em 0 1em;
  text-align: center;
  font-weight: 400;
  font-size: 1em;
  color: #232629;
}
#nav-archive {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: center;
  font-size: 2.500em;
  line-height: 1em;
  order: 2;
}
#nav-archive a:link, 
#nav-archive a:visited, 
#nav-archive a:hover, 
#nav-archive a:focus, 
#nav-archive a:active {
  color: #232629;
  text-decoration: none;
  transition: color .5s linear;
}
#nav-archive a:hover, 
#nav-archive a:focus, 
#nav-archive a:active {
  color: #737D87;
}
.prev {
  order: 1;
}
.all {
  order: 2;
}
.next {
  order: 3;
}
.page-single section img {
  margin-left: auto;
  margin-right: auto;
}
#tags {
  order: 3;
  /* display: none; */
}
#tags ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: center;
  color: #232629;
}
#tags ul li {
  margin-right: .5em;
  padding-right: .25em;
  position: relative;
}
#tags ul li:last-child {
  margin-right: 0;
  padding-right: 0;
}
#tags ul li:after {
  content: ',';
  position: absolute;
  right: 0;
}
#tags ul li:last-child:after {
  content: '';
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
@font-face {
   font-family: 'fontello';
   src: url('../font/fontello.eot?5430235');
   src: url('../font/fontello.eot?5430235#iefix') format('embedded-opentype'),
        url('../font/fontello.woff2?5430235') format('woff2'),
        url('../font/fontello.woff?5430235') format('woff'),
        url('../font/fontello.ttf?5430235') format('truetype'),
        url('../font/fontello.svg?5430235#fontello') format('svg');
   font-weight: normal;
   font-style: normal;
 }
 /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
 /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
 /*
 @media screen and (-webkit-min-device-pixel-ratio:0) {
   @font-face {
     font-family: 'fontello';
     src: url('../font/fontello.svg?5430235#fontello') format('svg');
   }
 }
 */
 [class^="icon-"]:before, [class*=" icon-"]:before {
   font-family: "fontello";
   font-style: normal;
   font-weight: normal;
   speak: never;

   display: inline-block;
   text-decoration: inherit;
   width: 1em;
   margin-right: .0;
   text-align: left;
   /* opacity: .8; */

   /* For safety - reset parent styles, that can break glyph codes*/
   font-variant: normal;
   text-transform: none;

   /* fix buttons height, for twitter bootstrap */
   line-height: 1em;

   /* Animation center compensation - margins should be symmetric */
   /* remove if not needed */
   margin-left: 0;

   /* you can be more comfortable with increased icons size */
   /* font-size: 120%; */

   /* Font smoothing. That was taken from TWBS */
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;

   /* Uncomment for 3D effect */
   /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
 }

 .icon-close:before { content: '\e800'; } /* '' */
 .icon-filters:before { content: '\e801'; } /* '' */
 .icon-menu:before { content: '\e802'; } /* '' */
 .icon-next:before { content: '\e804'; } /* '' */
 .icon-prev:before { content: '\e805'; } /* '' */
 .icon-more:before { content: '\e806'; } /* '' */
/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (max-width: 1280px) {
  .page-single section figure {
        max-width: 480px;
      }
  }

@media only screen and (max-width: 1280px) {
  .logos {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
}
@media only screen and (max-width: 1024px) {
  #site-header {
    padding-bottom: 2.5lvh;
  }
  .page-archive #site-title, #site-title a {
    justify-content: center;
  }
  #site-title {
    width: 50%;
    /* max-width: 177px; */
    min-height: 24px;
    order: 2;
  }
  #site-title span {
    color: #ADB3B9;
  }
  #site-nav {
    width: 20%;
    order: 1;
    overflow: visible;
  }
  #menu-btn {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    width: 1em;
    height: 1em;
    font-size: 2em;
    line-height: 1em;
    color: #737D87;
    background: #fff;
    appearance: none;
    z-index: 2;
    position: relative;
  }
  #filter-btn {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    width: 1em;
    height: 1em;
    font-size: 2em;
    line-height: 1em;
    color: #737D87;
    background: #fff;
    appearance: none;
  }
  #menu {
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    /* align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start; */
    background: #fff;

    display: none;
  }
  #menu li {
    box-sizing: border-box;
    width: 100%;
    padding: 0 4.102564102564102vw;
  }
  #menu a {
    display: inline-block;
  }
  #site-tools {
    width: 20%;
    order: 3;
    z-index: 2;
  }
  main {
    flex-direction: column;
  }
  aside {
    position: static;
  }
  .page-generic main,
  .page-single main {
    align-items: center;
    align-content: center;
  }
  section, aside {
    margin: 0 auto;
    width: 100%;
  }
  .page-generic section,
  .page-single section {
    margin: 0 auto;
    width: 100%;
  }
  section {
    order: 2;
  }
  #filters {
    order: 1;
  }
  .filters {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease-out;
  }
 .filters.open {
    max-height: 1000px;
    transition: max-height .5s ease-in;
  }
  aside ul {
    border-bottom: 1px solid #B9BEC3; 
  }
  /* #filters ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    gap: .5em 1em;
  } */
  
  
  /* #nav-archive {
    width: calc(100% - 4.102564102564102vw * 2);
  } */

  .nav-visible {
    overflow: hidden;
    height: 100vh;
  }
  /* .nav-visible .icon-menu:before { content: '\e800'; } */

  .nav-visible #menu {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: 2;
    text-align: left;
    
    height: auto;
    top: 10lvh;
    text-align: center;
  }
  .nav-visible #site-nav:after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background: #fff;
  }
  /* #site-nav ul, 
  #site-tools {
    font-size: 2.5vw;
  } */
  #site-nav #menu {
    font-size: 1.125em;
  }
  #site-nav #menu li {
    margin-bottom: .5em;
  }
  
  #menu-btn.selected, 
  #filter-btn.selected {
    color: #373C40;
    background: #DCDEE1;
  }
  #tags {
    display: block;
  }

}

@media only screen and (max-width: 414px) {
  /* .logos {
    gap: 5vw 2.5vw;
    justify-content: space-between;
  }
  .logos article {
    width: 47.5%;
  } */
  .logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  #site-title {
    font-size: 1.8vh;
  }
  #site-nav ul, 
  #site-tools {
    font-size: 4vw;
  }
  #site-footer {
    align-content: center;
    align-items: center;
    justify-content: center;
  }
  #site-footer p {
    text-align: center;
  }
}

.kanchev-filter-preloader-overlay{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,0.65);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
}

.kanchev-filter-preloader-spinner{
  width:56px;
  height:56px;
  border-radius:50%;
  border:4px solid rgba(0,0,0,0.12);
  border-top-color:#111;
  animation:kanchevFilterSpin .9s linear infinite;
}

@keyframes kanchevFilterSpin{
  to{transform:rotate(360deg);}
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

