/* iOS Only! */
@supports (-webkit-overflow-scrolling: touch) {

  /* Prevent Hover Double Click on iOS */
  .tint::before {
    content: none !important;
  }

}

/* Medium Window Widths */

@media screen and (max-width: 999px) {
  header,
  main {
    width: 90vw;
  }
  
  /* Artist Lists */
  
  .artistList.three ul {
    width: calc(50% - 50px);
  }
  

}

/* Medium Window Widths */

@media screen and (max-width: 800px) {



/* --- GLOBAL --- */

body {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  height:100%; /*A value other than height:auto needs to be set*/
}


body.laid {
  height: 100%;
  min-width: calc(100% - 0px);
}

/* Type */

article.entry,
#introduction,
.introduction {
  font-size: 1.25em;
  line-height: 1.2em;
}

.band {
  padding: .5em 0;
}


/* Layout */

header,
main,
.col,
.wide,
.inquires,
#searchResults,
#cart {
  width: 90vw !important;
  float: none;
}

main {
  padding-top: 0;
  margin-top: 0;
}

.col {
  margin-left: 0 !important;
  padding-left: 0 !important
}

.cols.two {
  columns: 1;
}

.col + .col {
  margin-top: 5em;
}

/* ---- PAGE PARTS ---- */

/* Header and Nav */

header {
  margin: 5vw 5vw;
  height: 25vw;
  position: inherit;
}


#banner {
  padding: 1em 1em .9em 1em;
  overflow: hidden;
}

#banner + #header h1 a {
  margin-top: 0;
}

h1 a {
  width: 25.2vw;
  height: 15.85vw;
  background-size: contain;
  margin-left: 0;
  margin-bottom: 12.5vw;
  top: auto;
}

nav {
  display: none;
  width: 100vw;
  min-height: calc(100% - 0px);
  font: 43px/1em Stanhope, serif;
}

nav ul {
  margin: 0 auto;
}

nav li {
  display: block;
  margin-bottom: .3em;
  margin-right: 0;
  width: 100%;
}

nav li:last-child,
nav li ul li {
  margin-bottom: 0;
}

nav.active {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  background: #95a7cb;
  float: none;
  display: flex;
  align-items: center;
  z-index: 500;
}

.hamburger,
#showSearch {
  display: block;
  position: fixed;
  right: 5vw;
  top: auto;
  padding: 0 0;
  z-index: 99999;
  width: 12vw;
  height: 12vw;
  background-size: cover;
}

.hamburger-box {
  width: 15vw;
  height: 15vw;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 12vw;
  height: 1.75vw;
}

#showSearch {
  bottom: 5vw;
  top: auto;
}
nav .icons {
  position: initial;
  right: auto;
  top: auto;
  bottom: 0;
  width: auto;
}

#showCart {
  display: inline;
  background: transparent;
  width: auto;
  height: auto;
  text-indent: 0;
  overflow: auto;
  margin-left: 0;
  background: transparent;
}

#pageNav {
  margin-top: 0;
}

#cartCount {
  display: none;
}

.butt {
  width: 100%;
}

/* Footer */

#footer {
  margin: 100px 0 0 0;
  width: 100vw;
  text-align: center;
}

#footer .col {
  margin-top: 1em;
  margin: 1em auto 0 auto !important;
}

#footer h3 {
  font-size: 1em;
}

#footer h6 {
  text-align: center;
}

/* Search */

#searchForm {
  font: 43px/1em Stanhope, serif;
}

#searchSubmit {
  display: block !important;
  position: absolute;
  top: 80vh;
  left: 0;
  width: 100%;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

#searchField {
  margin-top: -1em;
}

/* Main */

main article {
width: 100%;
}

/* Event Lists */

.col.eventList + .col.eventList {
  margin-top: 0
}

.col.eventList + .col.eventList:before {
  content: none;
}

ol.eventList + ol.eventList li:first-child .onnow {
  padding-top: 0;
}

ol.eventList + ol.eventList  li:first-child ul.onnow:before {
  content: ' ';
}

.eventList ul:after,
#onnow .eventList ul:after  {
  content: none;
}

.eventList.three {
  columns: 2;
}

.eventList.three ul.exhibitions {
  width: 100%;
}

.rows.three li:nth-child(3n+2) ul {
  margin: 0 0;
}

/* Event Table */

#eventTable .type,
#eventTable .image {
  display: none;
}

#eventTable td {
padding-right: 1em;
}


/* Shopping Cart */

#cartTable .image {
  display: none;
}

#cartTable {
}

#cartTable td {
  padding-right: 1em;
}

#totals {
  margin-top: 0;
  padding-left: 50px !important;
  border: none;
}

/* Slick */

.gallery {
  width: 100vw;
  padding: 50px 5vw 30px 5vw;
  margin-left: -5vw !important;
}

/* Overlay */

#overlay { /* Make sure Nav Sits Below Overlay */
  z-index: 0;
}

#overlay.lightbox,
#overlay.cart,
#overlay.search {
  z-index: 999;
}

#overlay > div {
margin: 150px auto;
}



/* ---- SECTIONS ---- */


/* Exhibitions */

#currentExhibitions li ul {
padding-top: 50px;
}

#pastExhibitions {
  margin-top: 50px;
}

#pastExhibitions .eventList ul {
  padding-bottom: 0;
}


/* Event Calendars */

#filters {
  font-size: 14px;
  line-height: 2em;
}

#filters li {
  display: block;
}

#filters + #eventTable {
margin-top: 3em;
}


/* Events */

.event #top {
  display: block;
  margin-left: 0;
  margin-bottom: 0;
}

.event .col + .col {
  margin-top: 1em;
}

.event h2 {
  margin: 0 0 50px 0;
}

.event .imgContainer {
  margin: 0 auto;
}

/* Shop & Auctions */

.productList ul.shop {
  width: 100%;
}

.shop .productList {
  columns: 2;
}

.productList.three ul {
  width: 100%;
}

/* Artist Lists */

.artistList.three ul {
  width: 100%;
}

/* About */

.about article .imgContainer {
  max-width: 100%;
}

.about .cols.two article .imgContainer {
max-width: 55%;
}


/* Lab */

.lab h1 a {
  width: 21vw;
  height: 21vw;
  background-size: cover;
  margin-left: 9px;
}


/* Hide Stuff */

#showLightBox,
.slick-arrow,
#hideOverlay {
  display: none !important;
}


}
