/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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: FoxyUnitedBold;
  src: url('../fonts/FoxyUnitedSansReg-Bold.woff2') format('woff2');
}

html {
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.selected {
  text-decoration: underline;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 102;
  padding: 20px;
  height: 45px;
  color: #222;
  background-color: #fff;
  width: 100vw;
  font-family: "FoxyUnitedBold", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

header a {
  color: #222;
}

nav {
  display: inline-block;
  font-size: 2em;
  position: relative;
  order: 1;
  flex: 1 auto;
}

.submenu {
  margin-left: 50px !important;
  margin-top: 0 !important;
}

a {
  text-decoration: none;
}

#content {
  width: 100%;
  margin-top: 85px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow-x: hidden;
  background-color: #fff;
}

#logos {
  display: inline-block;
  font-size: 30px;
  font-weight: bold;
}

#logos > * {
  display: inline-block;
  padding-left: 30px;
}

#chinese-logo img {
  height: 25px;
  vertical-align: top;
  margin-top: 5px;
}

#hamburger {
  display: inline-block;
  position: relative;
  font-size: 1em;
  z-index: 103;
}

#hamburger img {
  height: 23px;
  vertical-align: top;
  margin-top: 8px;
}

#links {
  display: none;
  position: fixed;
  text-align: left;
  left: 0;
  top: 0;
  font-size: 1em;
  width: 100vw;
  height: 100vh;
  z-index: 101;
  background: #fff;
}

#links a:hover {
  text-decoration: underline;
}

#links ul {
  list-style-type: none;
  padding: 0;
  margin-left: 85px;
  margin-top: 20px;
}

/* HOMEPAGE EXHIBITION BLOCK STYLING */

#exhibition-block-wrapper {
  display: grid;
  height: calc(100vh - 85px);
  width: 100vw;
}

.exhibition-block {
  background-color: white;
  height: auto;
  position: relative;
  background-size: cover;
  background-position: center;
}

.exhibition-block-text {
  display: inline-block;
  position: absolute;
  left: 50vw;
  bottom: 2vh;
  width: 45vw;
}

.exhibition-block-text a {
  color: #222;
}

.dark-image a {
  color: #fff;
}

.dark-image {
  color: #fff;
}

.exhibition-block-text h1 {
  font-size: 5vmin;
  margin: 0;
}

.exhibition-block-text h2 {
  font-size: 3vmin;
  margin: 0;
  margin-bottom: 2vh;
}

.exhibition-block-text h3 {
  font-size: 1.5vmin;
  margin: 0;
  margin-bottom: 2vh;
}

.exhibition-block-text ol {
  list-style-type: none; 
  padding: 0;
  margin: 0;
}

.exhibition-block-text li {
  display: inline-block;
}

.exhibition-block-text li:not(:last-child):after {
  content: "," ;
}
  
/* ARTIST AND EXHIBITION LIST STYLING */

#artist-list,
#exhibition-list {
  font-size: 2em;
  position: relative;
  padding-left: 50vw;
  padding-top: 20px;
}

#artist-list ul,
#exhibition-list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#artist-list ul li {
  padding-bottom: 5px;
}

#exhibition-list ul li {
  padding-bottom: 10px;
}

#artist-list ul li a,
#exhibition-list ul li a {
  color: #222;
}

#artist-list ul li a:hover {
  text-decoration: underline;
}

.exhibition-link-block {
  display: inline-block;
  width: 75%;
}

.exhibition-link-block a:hover .hover {
  text-decoration: underline;
}

.exhibition-location {
  text-align: right;
  float: right;
  display: inline-block;
  font-size: .5em;
}

.exhibition-date {
  text-align: left;
  display: block;
  font-size: .5em;
}

#exhibition-links {
  font-size: 1.75em;
  position: fixed;
  margin-top: 25px;
  width: 45vw;
  z-index: 103;
  text-align: right;
}

#exhibition-links div {
  font-family: "FoxyUnitedBold", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  text-align: right;
  display: block;
}

#exhibition-links div a {
  color: #222;
}

#exhibition-links div a:hover {
  text-decoration: underline;
}

/* ARTIST SINGLE PAGE */

#artist-toggle-link {
  text-align: right;
  position: fixed;
  right: 85px;
  top: 20px;
  font-size: 2em;
  display: inline-block;
  color: #fff;
  z-index: 103;
  font-family: "FoxyUnitedBold", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

#artist-toggle-link a {
  color: #222;
  display: inline-block;
}

#artist-toggle-link a:hover {
  text-decoration: underline;
}

#name-swap {
  display: none;
}

#artist-images {
  padding: 60px 85px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  grid-gap: 250px;
}

#artist-images div {
  padding: 2rem;
  display: grid;
  place-items: start;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
}

#artist-images div::before {
  content: "";
  display: block;
  padding-bottom: 100%;
  grid-area: 1 / 1 / 2 / 2;
}

#artist-images img {
    display: none;
}

#artist-text {
  position: relative;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #222;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  z-index: 99;
  display: none;
}

#artist-text-content {
  position: relative;
  width: 45vw;
  margin: 40px 85px;
  padding-bottom: 25px;
  float: right;
}

#artist-text-content div {
  padding-bottom: 20px;
}

#artist-text-content ul {
  list-style-type: none;
  padding: 0px;
}

#artist-text-content a {
  color: #222;
}

#artist-text-content a:hover {
  text-decoration: underline;
}

#artist-exhibitions table {
  margin-top: 16px;
  margin-bottom: 16px;
  margin-left: -3px;
}

#artist-exhibitions td {
  padding-right: 20px;
}

#artist-exhibitions td br {
  display: none;
}

#artist-exhibitions em {
  font-style: normal;
}

/* EXHIBITION SINGLE PAGE */

#exhibition-toggle-link {
  text-align: right;
  position: fixed;
  right: 85px;
  top: 20px;
  font-size: 2em;
  display: inline-block;
  color: #fff;
  z-index: 103;
  font-family: "FoxyUnitedBold", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

#exhibition-toggle-link a {
  color: #222;
  display: inline-block;
}

#exhibition-toggle-link a:hover {
  text-decoration: underline;
}

#exhibition-images {
  padding: 60px 85px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  grid-gap: 250px;
  display: none;
  margin-bottom: 80px;
}

#exhibition-images div {
  padding: 2rem;
  display: grid;
  place-items: start;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
}

#exhibition-images div::before {
  content: "";
  display: block;
  padding-bottom: 100%;
  grid-area: 1 / 1 / 2 / 2;
}

#exhibition-images img {
    display: none;
}

#exhibition-text {
  position: relative;
  overflow: hidden;
  color: #222;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  z-index: 99;
  display: inline-block;
  float: right;
}

#exhibition-text-content {
  position: relative;
  width: 45vw;
  margin: 40px 85px;
  padding-bottom: 25px;
  float: right;
}

#exhibition-text-content div {
  padding-bottom: 0;
}

#exhibition-text-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#exhibition-text a {
  color: #222;
}

#exhibition-text a:hover {
  text-decoration: underline;
}

#exhibition-title {
  position: relative;
  display: inline-block;
  font-size: 2em;
  padding-left: 85px;
  padding-top: 60px;
  text-align: left;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  text-align: left;
  display: block;
  width: 45vw;
}

#exhibition-title span {
  padding-right: 30px;
  padding-bottom: 5px;
  display: block;
  height: auto;
  line-height: 1;
}

#exhibition-title-dates {
  font-size: .5em !important;
}

#exhibition-title-reception {
  font-size: .5em !important;
}

.exhibition-title em {
  font-style: normal !important;
  }

#exhibition-title-exhibition-name ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#exhibition-title-exhibition-name li {
  display: inline-block;
}

#exhibition-title-exhibition-name li:not(:last-child):after {
  content: "," ;
}

/* NEWS LINK STYLING */

#news-list {
  font-size: 1em;
  position: relative;
  padding-left: 50vw;
  padding-top: 20px;
}

#news-list ul {
  list-style-type: none;
  margin: 0;
}

#news-list ul li {
  padding-bottom: 5px;
}

#news-list ul li a {
  color: #222;
}

#news-list ul li a:hover {
  text-decoration: underline;
}

.news-link-block {
  display: inline-block;
  width: 75%;
  padding-bottom: 20px;
}

.news-link-block span {
  display: block;
}

.news-link-block a:hover .hover {
  text-decoration: underline;
}

.news-post-date {
  padding-bottom: 10px;
  font-weight: bold;
}

/* GALLERY STYLING */

#gallery-info {
  font-size: 1em;
  position: relative;
  padding-left: 85px;
  padding-top: 20px;
}

#gallery-info-left-wrapper {
  display: inline-block;
  width: calc(50vw - 85px);
  float: left;
}

#gallery-info-address {
  font-size: 2em;
}

#gallery-info-text {
  display: inline-block;
  width: calc(50vw - 85px);
  float: left;
  padding-bottom: 50px;
}

#gallery-info-text a {
  color: #222;
}

#gallery-info-text a:hover {
  text-decoration: underline;
}

#small-icons {
  display: block;
}

.small-gallery-icon {
  display: inline-block;
}

.small-gallery-icon img {
  width: 30px;
  display: inline-block;
  padding-right: 10px;
}

.large-gallery-icon img {
  width: 200px;
  display: block;
  padding-bottom: 10px;
}

#email-circle-wrapper {
  height: 50vh;
  position: fixed;
  width: calc(50vw - 185px);
  bottom: 20px;
  left: 85px;
}

#mobile-email-circle-wrapper {
  display: none;
}

.email-circle {
  width: 250px;
  height: 65px;
  line-height: 65px;
  font-size: 1.5em;
  color: #fff;
  text-align: center;
  background: #000;
  position: absolute;
  bottom: 20px;
}

.email-circle a {
  color: #fff;
}

.email-circle a:hover {
  text-decoration: underline;
}

#large-icons {
  padding: 20px 0px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  grid-gap: 20px;
}

#large-icons div {
  padding: 2rem;
  display: grid;
  place-items: start;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
}

#large-icons div::before {
  content: "";
  display: block;
  padding-bottom: 100%;
  grid-area: 1 / 1 / 2 / 2;
}

/* LIGHTBOX STYLING */

.goverlay {
  background: #fff;
}

.glightbox-clean .gslide-media {
  box-shadow: none;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev,
.glightbox-clean .gclose {
  background-color: rgb(0,0,0,0);
  filter: invert();
  opacity: 1;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover,
.glightbox-clean .gclose:hover {
  background-color: rgb(0,0,0,0);
  filter: invert();
  opacity: 1;
}

.glightbox-clean .gdesc-inner {
  padding: 0;
  font-size: .85em;
}

.simple-lightbox {
    color: #222;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    line-height: 1.5;
    font-size: .9em;
}

.sl-wrapper .sl-image .sl-caption {
    text-align: center;
    float: none;
    background: #fff;
    color: #222;
    font-size: .9em;
}

.sl-wrapper .sl-close {
    font-size: 2rem;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.sl-wrapper .sl-navigation button.sl-next,
.sl-wrapper .sl-navigation button.sl-prev {
    font-size: 2.5rem;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.sl-wrapper .sl-navigation button.sl-next:hover,
.sl-wrapper .sl-navigation button.sl-prev:hover {
    opacity: 1;
}

.sl-wrapper .sl-counter {
    font-size: .9em;
}

.sl-image:hover {
  cursor: zoom-in;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * 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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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: 600px) {
  /* Style adjustments for viewports that meet the condition */

  header {
    background: #000;
    height: 30px;
  }

  header a {
    color: #fff;
  }

  nav {
    width: calc(100vw - 40px);
    display: flex;
    flex-basis: auto;
  }

  #content {
    margin-top: 70px;
  }

  #hamburger {
    float: left;
    flex: 0 0 auto;
    font-size: 20px;
  }

  #chinese-logo img {
    height: 15px;
    vertical-align: top;
    margin-top: 5px;
    filter: invert();
  }

  #hamburger img {
    height: 15px;
    vertical-align: top;
    margin-top: 5px;
    filter: invert();
  }

  #links {
    top: 85px;
  }

  #links a {
    color: #222;
  }

  #logos {
    font-size: 20px;
    float: left;
    text-align: left;
    display: flex;
    flex: 1 1 auto;
  }

  #english-logo {
    text-align: right;
  }

  #chinese-logo {
    text-align: right;
  }

  #logos span {
    padding: 0;
    flex: 1 1 auto;
  }

  #exhibition-block-wrapper {
  height: calc(100vh - 70px);
  }

  .exhibition-block-text {
    left: 5vw;
    width: 90vw;
  }

  .exhibition-block-text h1 {
    font-size: 2em;
    margin: 0;
  }

  .exhibition-block-text h2 {
    font-size: 1em;
    margin: 0;
    margin-bottom: 20px;
  }

  .exhibition-block-text h3 {
    font-size: .75em;
    margin: 0;
    margin-bottom: 20px;
  }

  #artist-list {
    padding-left: 5vw;
    font-size: 1.5em;
    padding-top: 35px;
  }

  #artist-images {
    padding: 5vw;
    display: inline-block;
    width: 90vw;
  }

  #exhibition-images {
    padding: 5vw;
    display: inline-block;
    width: 90vw;
    display: none;
  }

  #artist-images div,
  #exhibition-images div {
    padding: 0;
    display: inline-block;
    background-image: none;
  }

  #artist-images img,
  #exhibition-images img {
    display: inline-block;
    width: 90vw;
    padding-bottom: 5vw;
  }

  #artist-images div::before,
  #exhibition-images div::before {
    padding-bottom: 0;
  }

  #artist-toggle-link,
  #exhibition-toggle-link {
    display: block;
    position: relative;
    right: auto;
    top: auto;
    padding: 20px 5vw 0 5vw;
    font-size: 1.5em;
    text-align: right;
    z-index: 99;
  }

  #artist-text-content {
    margin: 0 5vw;
    width: 90vw;
  }

  #exhibition-links {
    position: relative;
    display: block;
    width: 90vw;
    font-size: 1.5em;
    z-index: 99;
    padding: 20px 5vw 0 5vw;
    margin-top: 0;
  }

  #exhibition-list {
    padding: 5vw;
    width: 90vw;
    font-size: 1.5em;
  }

  .exhibition-link-block {
    width: 100%;
  }

  .exhibition-link-block span {
    display: block;
  }

  #exhibition-title {
    font-size: 1.5em;
    padding: 5vw;
    width: 90vw;
  }

  #mobile-artist-name {
    font-size: 1.5em;
    padding: 5vw 5vw 0 5vw;
    width: 90vw;
  }

  #exhibition-text {
    padding: 0 5vw;
    width: 90vw;
  }

  #exhibition-text-content {
    width: 90vw;
    margin: 0;
  }

  #news-list {
    padding: 35px 5vw;
    width: 90vw;
  }

  #news-list ul {
    padding: 0;
  }

  #gallery-info {
    padding: 0 5vw;
    width: 90vw;
  }

  #gallery-info-left-wrapper {
    display: block;
    width: 90vw;
    padding-top: 10vw;
  }

  #gallery-info-address {
    font-size: 1.5em;
  }

  #email-circle-wrapper {
    display: none;
  }

  .email-circle {
    position: relative;
    bottom: auto;
    float: left;
  }

  #mobile-email-circle-wrapper {
    height: 30vh;
    position: relative;
    width: 90vw;
    padding-top: 20px;
    display: block;
  }

  #gallery-info-text {
    display: block;
    width: 90vw;
    padding-top: 5vw;
  }

  #gallery-info-text .email-circle a {
    color: #fff;
  }

  .glightbox-mobile .goverlay {
    background: #fff;
  }

  .glightbox-mobile .glightbox-container .gslide-description {
    background: #fff;
  }

  .glightbox-container .gslider {
    transition: none !important;
  }

  .glightbox-container .gslide {
    transition: none !important;
  }

  .glightbox-container .gslide.current {
    transition: none !important;
  }

  .gslide-image img {
    max-width: 96vw;
  }

  .glightbox-mobile .glightbox-container .gslide-title {
    color: #222;
  }

  .glightbox-clean .gslide-title {
    margin-bottom: 0;
  }

  .glightbox-mobile .glightbox-container .gslide-description {
    padding: 0;
    max-width: 100vw !important;
    background: #222;
    padding-bottom: 50px;
  }

  .glightbox-clean .gdesc-inner {
    background: #fff;
    padding: 0px 20px 10px 20px;
  }

  h4 { 
    margin: 0; 
  }

}

@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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

