/* RESET */
@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

sup {
  font-size: 70%;
  vertical-align: super;
}

sub {
  font-size: 70%;
}

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

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

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

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-align: left;
}



a[href^="tel:"] {
  text-decoration: none;
}

@keyframes fade_in_out {
  0% { opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* VARS */
:root {
  --default-margin: 36px;
  --default-gap: 6%;
  --delta: calc(100vw - 1280px);
  --real-margin: max(0px, var(--delta));
  --default-font-size: calc(9px + (12.8 - 9) * (100vw - var(--real-margin)) / 1280);
}

/* DEFAULT */
@font-face {
  font-family: CardinalCrousel;
  src: url("../fonts/CardinalCrouselWeb-Regular.981502660bb9.otf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: CardinalCrousel;
  src: url("../fonts/CardinalCrouselWeb-Italic.cb94364f05ef.otf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Bold.f801e234d510.otf");
}

/* argamato style */
.argamato {
  font-family: "Glacial Indifference", sans-serif;
  font-weight: bold;
  font-size: inherit;
  font-style: normal;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  color: black;
  letter-spacing: 0.05em;
  font-family: "CardinalCrousel", serif;
  font-size: var(--default-font-size);
  line-height: 1.6em;
  font-weight: 300;
  font-variant-ligatures: none;
  font-variant-numeric: normal;
  background-color: #fff;
}
input, textarea {
  font-family: "CardinalCrousel", serif;
}

h1 {
  font-size: 4em;
  line-height: 1.4em;
  letter-spacing: 0;
}

h2 {
  font-size: 2em;
  line-height: 1.4em;
  letter-spacing: 0;
}

h3 {
  font-size: 2em;
  line-height: 1.4em;
  letter-spacing: 0;
  font-style: italic;
}

h4 {
  font-size: 2em;
  line-height: 1.1em;
  text-transform: uppercase;
}

h5 {
  font-size: 0.9em;
  line-height: 1.2em;
  text-transform: uppercase;
  color: #707070;
}

p {
  font-size: 1.4em;
  line-height: 1.6em;
  margin-bottom: 20px;
}

a {
  cursor: pointer;
  color: black;
  text-decoration: none;
}

a.active, .active a {
  color: black;
  text-decoration: underline;
}

a:focus {
  outline: none;
}

em {
  font-style: italic;
}

strong {
  font-weight: 300;
}

blockquote {
  font-size: 2em;
  line-height: 1.4em;
}

.btn {
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.btn.active {
  color: black;
}

/* GENERAL APPEAR EFFECT */
img {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s, transform .5s;
}
img.schid {
  opacity: 0;
  transform: translateY(30px);
}

/* HOVER EFFECT */
.cover {
  transition: opacity .5s;
  opacity: 1;
}

.cover.inactive {
  opacity: .8;
}

/* GENERAL LAYOUT */
body > * { /* header, section, footer */
  width: 100%;
  position: relative;
  margin: 0 auto;
  z-index: 10;
  /* background-color: white; */
  display: inline-block;
}

body > #menu, body > section, body > header, body > #notification {
  --margin: calc(calc(100% - 1280px) / 2);
  padding: 0 calc(var(--default-margin) + var(--margin));
  width: 100%;
  /* margin-left: max(0px, var(--margin)); */
  /* width: min(100%, 1280px); */
  background: white;
}

body > header, #menu header {
  padding-top: var(--default-margin);
  padding-bottom: var(--default-margin);
  /* position: sticky; */
  /* top: 0px; */
  /* z-index: 11; */
  /* background: white; */
}

body > section {
  padding-bottom: 60px;
}

body > footer {
  --margin: calc(calc(100% - 1280px) / 2);
  padding: 0 calc(var(--default-margin) + var(--margin));
  padding-top: 2em;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1;
}

section header,
.menu-header,
.artist-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--default-margin);
  padding-left: 0px;
  z-index: 12;
  background-color: white;
  position: sticky;
  top: 0px;
}
.filters {
  width: calc(100% -var(--default-margin) * 2);
  margin: 0 var(--default-margin);
  display: inline-block;
  max-height: 0;
  opacity: 0;
  transition: opacity .5s, max-height .5s;
  overflow: hidden;
}
.filters.open {
  max-height: 400px;
  opacity: 1;
}
.filters li {
  display: inline-block;
  margin-bottom: 10px;
}
.filters li a, .filters li span {
  display: block;
  padding: 0px 10px 0px 0px;
  margin-right: 10px;
  text-transform: uppercase;
  border-right: 1px solid #707070;
  color: #707070;
  text-decoration: underline;
}
.filters li a:last-child, .filters li span:last-child {
  border-right: none;
}

.filters li a:hover {
  cursor: pointer;
  color: black;
  text-decoration: none;
}
.filters li span {
  color: #000000;
}

@media screen and (max-width: 640px) {
  .section-header,
  .menu-header,
  .artist-header {
    padding: 28px 0px; }
}

section header h1, section header a,
.menu-header h1,
.artist-header h1 {
  font-size: 0.9em;
  line-height: 1.3em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  margin: 0;
}

section header .btn {
  white-space: break-spaces;
}

/* Great hack to avoid displaying a single exhibition 
   when years are displayed in the list */
.exhibs .true:nth-last-child(2):nth-child(odd) {
  display: none !important;
}

/* HEADER */
header nav {
  font-size: 0.9em;
  line-height: 1.2em;
  /* border: 1px dashed #CCC; */
  padding-right: var(--default-margin);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  text-align: right;
}
header a {
  color: #707070;
  text-align: right;
}
header a:hover, header a.active, header .active a {
  text-decoration: none;
}

.logo {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  color: black;
}
.breadcrumb {
  color: #707070;
  text-align: right;
}
.languages {
  display: inline-block;
  margin-right: 30px;
  text-transform: uppercase;
}
.languages li {
  display: inline-block;
  margin-right: 10px;
}
.languages li a {
  vertical-align: top;
}

@media screen and (max-width: 640px) {
  .breadcrumb { display: none; }
}

/* PAGE BOTTOM BORDER AND SPACE FOR FOOTER */
body > section:last-of-type {
  padding-bottom: 20px;
}

body > hr {
  border-top: none;
  border-bottom: 1px solid #CCC;
  margin-bottom: 245px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 3px;
}

body > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: rgb(239, 239, 239);
}

body > footer p, body > footer ul, body > footer label {
  font-size: 0.9em;
  line-height: 1.8em;
}

body > footer section {
  flex: 33% 1 1;
  padding: 30px 0px;
}

body > footer section > div {
  display: flex;
}

body > footer nav {
  text-align: right;
}

body > footer ul li {
  display: inline;
}

body > footer nav ul li {
  margin-left: 20px;
}

body > footer .languages li {
  text-transform: uppercase;
}

body > footer form {
  margin-top: 2em;
}

body > footer p {
  margin-bottom: .8em;
}

body > footer .veryend {
  flex: 100% 0 0;
  display: flex;
  justify-content: space-between;
}

body > footer .timetable {
  font-size: 1em;
  text-transform: uppercase;
}
body > footer .contact > * {
  font-size: .9em;
  text-transform: uppercase;
}

.footer .qrwechat {
  vertical-align: bottom;
}
.footer .qrwechat img {
  max-width: 100px;
  max-height: 100px;
  margin: 0;
}

/* NEWSLETTER FORM */
.newsletter-form p {
  margin-top: 2em;
}

.newsletter-form p {
  margin: 0 !important;
}
.newsletter-form ::placeholder {
  color: #707070;
  opacity: 1;
  text-decoration: none;
  text-transform: none;
}
.newsletter-form input, #menu .newsletter-form .pending {
  font-size: 1em;
  line-height: 1.6em;
  color: black;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.newsletter-form .pending {
  animation-name: fade_in_out;
  animation-duration: 2s;
  animation-iteration-count:infinite;
  display:none;
}
.newsletter-form input:focus,
.newsletter-form button:focus {
  outline: 0;
  appearance: none;
}
.newsletter-form input.send-btn {
  display: none;
}
.newsletter-form input.send-btn.visible {
  display: block;
  padding: 6px;
  margin-top: 10px;
  border: 1px solid black;
  text-transform: uppercase;
}
.newsletter-form input.send-btn.visible:hover {
  cursor: pointer;
  border: 1px solid black;
  background-color: black;
  color: white;
}
.newsletter-form > .newsletter-email {
  padding: 8px 0;
  border-bottom: 1px solid black;
}

/* CSS class to avoid scrolling in page when menu is visible (see functions.js) */
.fixed {
  position: fixed;
}


/* BACK TO TOP ARROW */
.back-to-top {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: -50px;
  right: 40px;
  z-index: 50;
  background-color: white;
  border: 1px solid black;
  border-radius: 2px;
  transition: line-height 0.25s ease, bottom .5s;
  font-size: 1.5em;
  line-height: 1.2em;
  text-align: center;
  line-height: 45px;
}
.back-to-top:hover {
  line-height: 35px;
  cursor: pointer;
}

.back-to-top.visible {
  bottom: 40px;
}

/* VIDEO */
.gallery-thumbs .col-25  {
  display: flex;
  align-items: center;
}
.gallery-thumbs .cover {
  position: relative;
}
.gallery-thumbs .play-button {
  z-index: 2;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  opacity: .8;
}


/* MENU, POPUPS AND OVERLAYS */
body.popupcarousel, body.form, body.menu, body.notif {
  overflow: hidden;
}

.popup {
  transition: all .5s;
  width: 100vw;
  height: 100vh;
  position: fixed;
  opacity: 0;
  z-index: 0;
  top: 100vh;
  left: 0;
  background: white;
}

body.popupcarousel .popup {
  opacity: 1;
  z-index: 90;
  top: 0;
}

body > #menu {
  position: fixed;
  z-index: 22;
  height: 100vh;
  top: 100vh;
  opacity: 0;
  transition: opacity .5s, top .5s;
  background: rgba(255, 255, 255, .98);
}
body.menu #menu {
  opacity: 1;
  top: 0;
}

body > #notification {
  position: fixed;
  z-index: 22;
  padding-right: var(--default-margin);
  height: 100vh;
  top: 100vh;
  opacity: 0;
  transition: opacity .5s, top .5s;
  background: rgba(255, 255, 255, .98);
}
body.notif #notification {
  opacity: 1;
  top: 0;
}

#notification nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: var(--default-margin) 0;
  font-size: 0.9em;
  line-height: 1.2em;
}

/* MENU CONTENT */
#menu nav:first-child {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9em;
  line-height: 1.2em;
}

#menu .col-container {
  height: 100%;
  padding-top: var(--default-margin);
  align-content: space-between;
}

#menu .col-container p, address {
  font-size: 0.9em;
  line-height: 1.8em;
  text-transform: uppercase;
  font-variant-ligatures: none;
  margin: 0px 0px 10px 0px;
}

#menu .timetable {
  margin-bottom: 30px;
}

#menu .main-nav {
  width: 100%;
}
#menu .main-nav li a,
#menu .main-nav li span {
  height: 1.2em;
  /* mess up with diacritics */
  /* overflow: hidden; */
  text-overflow: ellipsis;
  width: 100%;
  white-space: nowrap;
  display: block;
  font-size: 4.2em;
  line-height: 1em;
  text-decoration: none;
  font-variant-ligatures: normal;
}
#menu .main-nav li a:before {
  content: "";
  width: 0px;
  float: left;
  position: relative;
  margin-right: 5px;
  margin-top: .5em;
  height: 2px;
  background-color: black;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}
#menu .main-nav li a:hover:before {
  content: "";
  width: 5%;
}
#menu .footer {
  display: flex;
}
#menu .footer, #menu .social {
  font-size: 0.9em;
  line-height: 1.8em;
}
#menu .social {
  margin-top: 1em;
}

#menu .footer li, .social li {
  display: inline-block;
  margin-right: 10px;;
}

@media screen and ((max-height: 520px) or (max-width: 640px)) {
  #menu .col.footer {
    position: relative;
  }
}
#menu .col.footer ul:first-child {
  padding-left: 0;
}
#menu .col.footer ul {
  padding-bottom: 0;
}
@media screen and ((max-height: 520px) or (max-width: 640px)) {
  #menu .col.footer ul {
    width: 100%;
    margin: 0;
    padding-left: 0;
  }
}
#menu .col.footer ul .languages {
  display: inline-block;
}
#menu .col.footer ul li.active a {
  text-decoration: underline;
}
#menu .col.footer ul li {
  display: inline-block;
  margin-right: 10px;
}
#menu .col.footer ul li a {
  display: block;
  text-transform: uppercase;
  text-decoration: none;
}
#menu .col.footer ul li a:hover {
  text-decoration: underline;
}

#about-menu ul {
  overflow:hidden;
  max-height: fit-content;
  transition: .5s max-height ease;
  max-height: 0px;
}
#about-menu:hover ul,
#about-menu.active ul {
  max-height: 130px;
}
#about-menu ul > li > a {
  font-size: 2.1em !important;
  line-height: 1.6em;
  margin: 0 30px;
}

#about-menu ul > li {
  padding: 5px 0;
}

.wechat .qrcode img {
  width: 215px;
  height: 215px;
}

/* FORMS */
.form-container {
  width: 25%;
  height: 100vh;
  position: fixed;
  overflow-y: scroll;
  top: 0;
  right: -25%;
  padding: 40px;
  background: #F0F1F1;
  color: black;
  text-align: left;
  z-index: 100 !important;
  -moz-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}
.form-container.visible {
  right: 0;
  position: fixed;
}

/* @media screen and (max-width: 1024px) { */
/*   .form-container { */
/*     width: 50%; */
/*     right: -50%; } */
/* } */
/* @media screen and (max-width: 640px) { */
/*   .form-container { */
/*     width: 100%; */
/*     right: -100%; } */
/* } */

.form-container.visible .bg {
  width: 100vw;
  height: 100vh;
  background: transparent;
  position: fixed;
  left: 0;
  top: 0;
}
.form-container p {
  font-size: 1em;
  line-height: 1.6em;
}
.form-container form {
  width: 100%;
  float: left;
  position: relative;
}
.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  display: inline-block;
  border: 0;
  box-sizing: border-box;
  padding: 20px 0px;
  margin: 0;
  background: none;
  border-radius: 0;
  border-bottom: 1px solid #707070;
  font-size: 1.25em;
  line-height: 1.2em;
}
.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
  border-bottom: 1px solid black;
  outline: none;
}
.form-container .actions {
  width: 100%;
  float: left;
  margin-top: 40px;
}
.form-container .actions .btn.send,
.form-container .actions .btn.cancel {
  width: 49%;
  margin-right: 1%;
  float: left;
  border: 1px solid black;
  border-radius: 2px;
  padding: 20px;
  font-size: 0.9em;
  line-height: 1.2em;
  color: black;
  text-align: center;
}
.form-container .actions .btn.send:hover,
.form-container .actions .btn.cancel:hover {
  border: 1px solid black;
  background-color: black;
  color: white;
}
.form-container .actions .btn.cancel {
  border: 1px solid #F0F1F1;
  color: #707070;
}
.form-container .error, .form-container .errorlist {
  color: #AA0000;
  line-height: 2.5em;
}

/* exhibitions */
.exhibitions .col-50 .date {
  float: left;
  width: 100%;
  color: #707070;
  font-size: 2em;
  line-height: 1.3em;
  margin-bottom: 20px;
}

/* news */
.single-news .category {
  font-size: 0.6em;
}

/* store */
.store .price, .single-store .price {
  text-transform: uppercase;
  font-size: 0.9em;
}
