/*  __    _  _  _     */
/* /__|  / \|_)|_||   */
/* \_||__\_/|_)| ||__ */
/* variables: containers, margins, colors */
:root {
  --max-width: 1200px;
  --padding-page-x: max(0px, calc(calc(100vw - var(--max-width)) / 2));

  --list-gap: 24px;

  --text-color: #1E1E1E;
  --secondary-color: #707070;
  --link-color: #A4A4A4;
  --cta-color: #E8CC00;
  --off-color: #D9D9D9;

  --transition-speed: .5s;
}

/* reset */
* {
  padding: 0;
  margin: 0;
  color: var(--text-color);
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

a {
  text-decoration: none;
}

p {
  line-height: 26px;
}

/* global layout */
main {
  padding-top: 40px;
  padding-bottom: 80px;
  padding-left: var(--padding-page-x);
  padding-right: var(--padding-page-x);
  box-sizing: border-box;
}


/* generic */
strong {
  font-weight: 500;
}

/* sub, sup { */
/*   font-size: x-small; */
/* } */



/* GDPR consent banner */
.gdpr-banner {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: min(100vw, 500px);
  z-index: 100;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border: solid 1px #eee;
  flex-wrap: wrap;
  align-items: flex-end;
  box-sizing: border-box;
}

.gdpr-message {
  padding: 15px 0;
}

.gdpr-control {
  display: contents;
}

.gdpr-control .label,
.gdpr-control a {
  height: 2.5rem;
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #eee;
  padding: 10px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 50%;
  cursor: pointer;
  align-items: center;
}

.cookies table,
.cookies th,
.cookies td {
  border: 1px solid black;
}

.cookies h2 {
  margin: 1em 0em .5em 0em;
}

.cookies h3 {
  margin: 1em 0em .5em 0em;
  font-size: 16px;
}

.cookies th,
.cookies td {
  padding: .5em 1em;
}

.cookies section li {
  list-style: disc inside;
}

.cookies a {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .cookies table {
    border: initial;
  }

  .cookies table thead {
    display: none;
  }

  .cookies table tr {
    display: block;
    margin-bottom: 40px;
  }

  .cookies table td {
    display: block;
  }
}

/* _________    __ __ */
/*  |  |  | |  |_ (_  */
/*  | _|_ | |__|____) */
h1,
h2.dashed {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 51px;
}

h2 {
  font-size: 20px;
  line-height: 24px;
}

h2,
h3,
h4 {
  font-family: 'Manrope', sans-serif;
}

h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--secondary-color);
}

h1.dashed,
h2.dashed,
h3.dashed {
  font-family: 'Playfair Display', serif;
  position: relative;
  padding-left: 60px;
}

h1.dashed:before,
h2.dashed:before,
h3.dashed:before {
  position: absolute;
  content: "-";
  color: transparent;
  background-color: var(--cta-color);
  width: 40px;
  height: 4px;
  top: 55%;
  left: 0px;
  transform: translateY(0%);
}

h3.dashed {
  font-size: 32px;
  line-height: 42px;
  height: 42px;
}


/*    ___       __ */
/* |   | |\||/ (_  */
/* |___|_| ||\ __) */
.underline {
  width: max-content;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-image: linear-gradient(#000, #000);
  background-position-y: 100%;
  transition: var(--transition-speed) background-size;
}

.underline:hover {
  background-size: 100% 1px;
}

.back {
  color: var(--secondary-color);
  background-image: linear-gradient(var(--secondary-color), var(--secondary-color));
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.back img {
  height: 16px;
  vertical-align: bottom;
  margin-right: 8px;
}

/*  _    ______ _     __ */
/* |_)| | |  | / \|\|(_  */
/* |_)|_| |  | \_/| |__) */
button,
.button {
  border: 1px solid var(--cta-color);
  background: transparent;
  font-size: 12px;
  line-height: 14px;
  cursor: pointer;
  transition: var(--transition-speed) all;
  outline: none;
}

button:hover,
.button:hover {
  background-color: var(--cta-color);
}

button:hover .underline,
.button:hover .underline {
  background-size: 100% 1px;
}

button.active,
.button.active {
  background-color: var(--cta-color);
}


/*  _ ___ _     _     _       ___       */
/* | \ | |_||V|/ \|\|| \   |   | |\||/  */
/* |_/_|_| || |\_/| ||_/   |___|_| ||\  */
.bitonio {
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-color);
  position: relative;
  transition: var(--transition-speed) color;
}

.bitonio:after {
  content: "◆";
  position: absolute;
  border-bottom: 2px solid var(--secondary-color);
  width: 24px;
  text-align: right;
  line-height: 2px;
  height: 2px;
  top: 40%;
  transform: translateY(0%);
  margin-left: 12px;
  transition: var(--transition-speed) all;
}

.bitonio:hover {
  color: var(--cta-color);
}

.bitonio:hover:after {
  width: 0;
  border-color: var(--cta-color);
  margin-left: 4px;
}


/*  __ _  _____ _       ___ __ _     __ */
/* (_ / \/   | |_||      | /  / \|\|(_  */
/* __)\_/\___|_| ||__   _|_\__\_/| |__) */
.social-network {
  display: inline-block;
  background-color: var(--cta-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.social-network img {
  height: 14px;
  width: 14px;
  margin: 8px;
}

/*     __ _  _  __ _  */
/* |_||_ |_|| \|_ |_) */
/* | ||__| ||_/|__| \ */
header#menu {
  height: 80px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--off-color);
  align-items: center;
  padding-left: var(--padding-page-x);
  padding-right: var(--padding-page-x);
  position: sticky;
  background-color: #FFF;
  top: 0px;
  z-index: 50;
}

header#menu img {
  height: 60px;
  vertical-align: bottom;
}

header#menu nav ul {
  display: flex;
  list-style: none;
}

header#menu nav li {
  margin-left: 30px;
}

header#menu nav li a {
  font-size: 16px;
  font-weight: 500;
  color: var(--link-color);
  transition: var(--transition-speed) all;
}

header#menu nav li a:hover {
  color: var(--text-color);
}

/* currently visited section */
header#menu nav li a.active {
  font-weight: bold;
  color: black;
}


/*  __ _  _ ___ __ _  */
/* |_ / \/ \ | |_ |_) */
/* |  \_/\_/ | |__| \ */
#footer {
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: var(--padding-page-x);
  padding-right: var(--padding-page-x);
  background-color: #F8F8F8;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  border-top: solid 1px var(--off-color);
}

#footer p,
#footer a,
#footer p span {
  color: var(--secondary-color);
  font-size: 12px;
  line-height: 24px;
}

#footer h2 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 5px;
}

#footer h3 {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 10px;
}

#footer h3:nth-child(n+2) {
  margin-top: 1em;
}

#footer section {
  flex-basis: 33%;
}

#footer section.contact {
  flex-grow: 2;
}

#footer section.contact img {
  width: 140px;
  float: left;
  margin-right: 24px;
}

#footer button {
  padding: 16px;
}

section.copyright {
  margin: 0;
  flex-basis: 100%;
  background-color: var(--cta-color);
  text-align: center;
  line-height: 40px;
  height: 40px;
}

.newsletter-form {
  display: flex;
  height: 48px;
  gap: 10px;
  transition: var(--transition-speed) all;
}

.newsletter-form.success {
  height: 0;
  overflow: hidden;
}

#newsletter-response {
  display: block;
  opacity: 0;
  border-left: 5px solid var(--cta-color);
  padding-left: 10px;
  transition: var(--transition-speed) all;
}

#newsletter-response.posted {
  opacity: 1;
  margin-top: 8px;
}

.newsletter-form input {
  border: none;
  border-bottom: 2px solid var(--cta-color);
  background: none;
  padding: 0 10px;
}

.footer-menu ul {
  column-count: 2;
}

.footer-menu ul li {
  list-style-type: none;
}

.footer-menu ul li a {
  font-size: 14px;
  font-weight: 500;
}

.newsletter-form input:focus {
  outline: solid 1px var(--cta-color);
}

.footer-social {}

.footer-social ul li {
  list-style-type: none;
  display: inline-block;
}


/*  __ _  _  _     __ __    */
/* /  |_||_)/ \| |(_ |_ |   */
/* \__| || \\_/|_|__)|__|__ */
.list.carousel {
  margin-top: 20px;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  position: relative;
}

.carousel article {
  flex-shrink: 0;
  border: 1px solid var(--off-color);
}

.bullet-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}


.bullet {
  height: 25px;
  cursor: pointer;
  flex-grow: 1;
  border-bottom: 3px solid var(--off-color);
  transition: var(--transition-speed) border-color;
}

.bullet:last-child {
  display: none;
}

.bullet.bullet-active {
  border-color: var(--cta-color);
}

/*    ___ _____ __ */
/* |   | (_  | (_  */
/* |___|___) | __) */
/* displayed count of artist, products, exhibitions, etc. */

/* filterbar */
.filters {
  margin-top: 20px;
}

.filters .button {
  padding: 8px;
  border-radius: 4px;
  margin: 0 12px 12px 0;
}

.filters .button:hover {
  background-color: var(--off-color);
}

.filters .nomatch {
  display: none;
}

.filters .separator {
  display: inline;
  padding: 6px 0px;
  margin-right: 12px;
  border-left: 1px solid var(--off-color);
}

.filters .dropdown {
  display: inline;
  position: relative;
}

.filters ul {
  position: absolute;
  width: max-content;
  min-width: 100px;
  width: calc(100% - 12px);
  height: 0;
  overflow: hidden;
  list-style: none;
  left: 0;
  margin-top: -13px;
  margin-right: 12px;
  background-color: #FFF;
  z-index: 1;
  transition: var(--transition-speed) height;
  overflow-y: scroll;
}

.filters ul.visible {
  height: calc(7 * calc(14px + 16px));
  border: 1px solid var(--cta-color);
  border-radius: 4px;
}

.filters ul li {
  font-size: 12px;
  line-height: 14px;
  padding: 8px;
  cursor: pointer;
}

.filters ul li:hover .underline {
  background-size: 100% 1px;
}


/* counter */
.counter {
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  padding: 24px 0px;
  border-top: 1px solid var(--off-color);
}

/* list */
.list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--list-gap);
}

/* w = n x f + (n - 1) * m
where
- w = total width
- n = number of elements
- f = element width
- m = gap width
As we look for f: f = (w - (n - 1) * m) / n
- w is always 100%
- n is --column
- m is always --list-gap
Redeclare --column to adjust grids
*/
.list>article {
  --flex-gaps: calc(calc(var(--columns) - 1) * var(--list-gap));
  --flex-articles: calc(100% - var(--flex-gaps));
  flex: 0 0 calc(var(--flex-articles) / var(--columns));
  display: block;
  border: solid 1px var(--off-color);
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}

.list>article figure {
  overflow: hidden;
}

.list>article figure img {
  transition: var(--transition-speed) transform;
}

.list>article:hover figure img {
  transform: scale(102%);
}

.show-more {
  font-weight: 600;
  padding: 15px 40px;
  margin: 0 auto;
}


/* TEMPORARY HOME: COULD BE USED FOR ABOUT PAGE? */
/* main figure { */
/*   width: 100%; */
/*   display: flex; */
/*   justify-content: space-between; */
/* } */
/* main figure img { */
/*   width: 30%; */
/*   margin-bottom: 40px; */
/*   object-fit: cover; */
/* } */

/* main article.first { */
/*   width: 80%; */
/*   margin: 20px auto 80px auto; */
/*   display: block; */
/* } */

/* main article { */
/*   display: flex; */
/*   flex-wrap: nowrap; */
/*   gap: 100px; */
/* } */

/* main article figure { */
/*   flex-basis: 40%; */
/* } */
/* main article figure img { */
/*   width: 100%; */
/* } */

/* main article section { */
/*   flex-basis: 60%; */
/* } */

/* main p { */
/*   margin-bottom: 1em; */
/*   line-height: 26px; */
/* } */

#hamburger-toggle,
#hamburger {
  display: none;
}

@media screen and (max-width: 1200px) {
  :root {
    margin: 0 auto;
    --padding-page-x: 20px;
  }
}

/* small screens */
@media screen and (max-width: 812px) {

  h1,
  h2.dashed {
    font-size: 22px;
    line-height: 29px;
  }

  main {
    display: flex;
    flex-direction: column;
    --columns: 1;
    gap: 12px;
    padding-top: 20px;
  }

  .filters {
    margin-top: 10px;
  }

  .filters .separator {
    display: block;
    padding: 0px;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    padding: 10px;
  }

  header#menu img {
    height: 49px;
  }

  #hamburger-menu {
    display: block;
    position: absolute;
    width: 100vw;
    background-color: #FFF;
    left: 0px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-speed) max-height ease-in;
  }

  #hamburger-menu.visible {
    max-height: 100vh;
  }

  header#menu {
    display: block;
    margin-top: 0px;
    height: auto;
    padding: 0px;
    flex-direction: column;
  }

  header#menu nav ul {
    display: block;
    border-top: 1px solid var(--off-color);
    border-bottom: 1px solid var(--off-color);
  }

  header#menu nav ul li {
    margin: 0px 20px;
    padding: 1em 0em;
    border-top: 1px solid var(--off-color);
  }

  header#menu nav ul li:first-child {
    border-top: none;
  }

  header#menu nav ul li a {
    width: 100%;
  }

  #hamburger-toggle {
    display: flex;
    font-size: 32px;
    cursor: pointer;
  }

  #footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
  }

  #footer section {
    width: 100%;
  }

  #footer section.contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  #footer .footer-menu li {
    margin-bottom: 1em;
  }

  .bullet-container {
    gap: 4px;
  }

  .bullet {
    height: 10px;
  }

  .bullet:last-child {
    display: initial;
  }

}

.hidden {
  display: none;
}
