/* --- iOS ONLY --- */

@supports (-webkit-overflow-scrolling: touch) {

* {
  -webkit-appearance: none;
}

body {
  -webkit-overflow-scrolling: touch;
}

}


/* --- TABLET AND MOBILE --- */

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

  /* --- HIDE THINGS --- */

  #quickLinks a,
  #shopNav #shopNavGenres,
  #imageNav {
    display: none !important;
  }


  /* --- RESIZE TYPE --- */
  input, select { font-size: 100%; }


  /* --- RESIZE LAYOUT --- */

  #container {
    min-width: auto;
    width: calc(100vw - 100px);
    padding: 50px 50px 0 50px;
    border: 0;
  }

  #entry {
    min-height: 0 !important;
  }

  .col.full,
  .col.max,
  .full img,
  .home .full img,
  .wide,
  .half,
  .col,
  #enlarged img,
  #footer ul {
    width: 100%;
    min-width: 0;
    float: none;
    margin-left: 0 !important;
  }

  .col + .col {
    margin-top: 25px;
  }

  .columnized.three {
    -webkit-column-count: 2;
    column-count: 2;
  }

  #switch.switched li,
  #switch.switched img  {
    position: relative;
    top: auto;
  }

  /* --- COMPONENTS --- */

  /* Thumbs */

  .thumbs {
    padding: 0 0;
  }
  .thumbs img {
    margin: 10px;
  }
  
  #banner {
    width: 100vw;
    position: absolute;
    position: relative;
    margin-left: -50px;
    margin-top: -50px;
    margin-bottom: 20px;
    height: 40px;
    white-space: normal;
  }
  
  #banner {
    xxmargin-left: -25px;
    xmargin-top: -25px;
    height: auto;
  }
  
  #header {
    position: relative;
  }
  
  #quickLinks {
    top: 0;
    left: 0;
    width: 100%;
  }

  #quickLinks .navLink,
  #quickLinks .cartLink {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
  }
  
  #quickLinks .cartLink {
    left: auto;
    right: 0;
  }

  #quickLinks .navLink {
    background-image: url('/images/site/burger.svg');
  }

  .closeFloater {
    display: block;
    position: absolute;
    top: 50px;
    left: 50px;
    width: 35px;
    height: 35px;
    text-indent: -100em;
    background: transparent url('/images/site/close.svg') no-repeat;
    background-size: contain;
    transition: opacity .5s;
    cursor: pointer;
    z-index: 10000;
  }

  .closeFloater:hover {
    opacity: .8;
  }

  #cart {
    background: black;
    width: 100vw;
    height: 100vh;
    position: absolute;
  }

  #switch.switched > li {
    opacity: 1;
    visibility: visible;
    margin-bottom: 25px;
  }

  /* Header */

  #header {
    margin-bottom: 50px;
  }
  
  #banner #header {
  }

  h1 {
    position: relative;
    width: 150px;
    margin: 0 auto;
  }

  h1 a {
    display: block;
    width: 100%;
    height: 100%;
  }

  #header nav,
  #cart {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: -0;
    top: -0;
    display: none;
    z-index: 20000;
  }

  #cart {
    width: calc(100vw - 100px);
    height: calc(100vh - 250px);
  }

  #header nav {
    font-weight: bold;
    padding-top: calc(50px + 50px + 35px)
  }

  #header #cart {
    padding: 100px 50px 150px 50px;
  }

  nav .floater {
    position: relative;
    padding: 0;
    background: transparent;
    display: block;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    margin-left: 50px !important;
    font-size: 16px;
  }

  .floater {
    opacity: 1;
  }

  .floater:hover {
    cursor: default;
  }

  .overlayVisible {
    height: 100vh;
    position:fixed;
    overflow: hidden;
  }

  .overlayVisible #header.navVisible nav,
  .overlayVisible #header.cartVisible #cart {
    display: block;
  }

  .overlayVisible #quickLinks {
    display: none;
  }

  nav #sections {
    text-align: left;
    font-size: 24px;
  }

  nav div  {
    margin-top: 25px;
  }

  nav div div {
    margin-top: 0;
  }


  /* Cart */

  #cart form > div,
  #header #cart .face.front, {
    /* height: calc(100vh - 100px); */
    height: calc(100vh - 170px);
    padding-bottom: 0;
  }

  #cart form div {
    height: calc(100vh - 250px);
    padding-bottom: 0;
  }

  #header #cart .face {
    xwidth: calc(100vw - 100px);
  }

  #cart .flip .card {
    xwidth: calc(100vw - 100px);
  }

  #cart .scrollers,
  #cart #checkoutLink {
    bottom: 0;
    position: absolute;
    left: 0;
  }

  #cartItems {
    height: auto;
    max-height: calc(100vh - 120px - 15em);
  }

  #checkoutFour #cartItems {
    max-height: calc(100vh - 120px - 20em);
  }

  /* Shop Nav */

  #shopNav .col {
    width: calc(50% - 15px);
    float: left;
  }

  #shopNav .col + .col {
    margin-top: 0;
    margin-left: 30px !important;
  }

  #shopNav label {
    display: none;
  }

  #shopNav dl {
    height: auto;
  }

  .shopItem #shopNav {
    display: none;
  }


  /* Footer */

  #footer {
    margin-left: -50px !important;
    width: calc(100vw - 100px);
    height: auto;
    padding: 50px 50px 0 50px;
  }

  #footer ul  {
    padding: 0 0;
    margin-bottom: 1.3em;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    width: 50%;
    float: left;
  }

  #footer nav {
    clear: both;
    padding-top: 2em;
  }

  #footer #infoAddress {
    padding:  0 0;
  }

  #footer h5 {
    margin: 0;
    display: none;
  }

  #info {
    padding-top: 100px;
    width: 100%;
    background: transparent url(/images/site/am.png) no-repeat center 0;
    background-size: 100px auto;
  }

  #footer #map {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
    margin-left: 0;
    display: none;
  }

  #footer #map img {
    width: 100%;
  }

  #footer #support {
    float: none;
    width: 100%;
    height: auto;
    padding-right: 0;
    column-span: all;
  }

  #footer #funders {
    position: relative;
    left: auto;
    width: 100%;
    margin-top: 50px;
  }

  #funders li {
    margin: 25px 5% !important;
    display: block;
    background-size: contain !important;
    float: left;
    background-position: center center;
    width: 40%;
    background-size: contain !important;
    float: left;
    height: 43px !important;
  }

  #funders #map {
    display: none;
  }

  /* Shop */

  #addToCart {
    left: calc(100% - 160px);
  }

  #addToCart + .col h5 + h4,
  #addToCart + .col h5 + h4 + dl,
  #addToCart + .col h5 + h4 + dl + dl {
    width: calc(100% - 180px);
  }



}



/* --- SMALL WINDOW WIDTHS --- */

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

  .mobile {
    display: inherit;
  }

  .desktop {
    display: none;
  }

  /* TYPE */

  h3:before {
    content: none;
  }

  h3:after {
    content: none;
  }

  /* --- LAYOUT --- */

  #container {
    padding: 25px 25px 0 25px;
    width: calc(100vw - 50px);
  }
  
  #banner {
    margin-left: -25px;
    margin-top: -25px;
    height: auto;
  }

  #footer {
    margin-left: -25px !important;
    width: calc(100vw - 50px);
    padding: 50px 25px 0 25px;
  }



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


}


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

  #header nav {
    padding-top: calc(50px + 35px)
  }

}
