/* all mobiles and tablets */
@media (-moz-touch-enabled), (pointer:coarse), (hover:none) {
  .mobile-only { display: inline-block; }
  .desktop-only { display: none!important; }
  input { -webkit-appearance: none; }

  .mobile-popup-close-btn {
    position: absolute;
    top: 12vmin;
    right: 12vmin;
    width: 20px;
    height: 20px;
    background-image: url("../images/close-cross-icon.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  #controls-wrap-mobile {
    display: inline-flex;
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    height: 36px;
    width: 120px;
    justify-content:center;
  }

  footer .logo { left: 2%; }
  .copyright {
    position: absolute;
    right: 6%;
    min-width: 88px;
    line-height: 1.5em;
    text-align: left;
    font-size: 3.5vmin;
    top: 22px;
  }

  .navigation-button {
    z-index: 10;
    position: absolute;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
    background-image: url("../images/navigation-tab-mobile.png");
    width: 22vmax;
    height: 10vmax;
  }
  .about-button {
    z-index: 10;
    position: absolute;
    left: 0;
    bottom: 78px;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    background-image: url("../images/about-tab-mobile.png");
    width: 14vmax;
    height: 8vmax;
  }

  .popup {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: white;
    color: black;
  }
  .popup-close-button {
    position: absolute;
    right: 2vmax;
    top: 2vmax;
    background-image: url("../images/close-cross-icon.svg"); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 5vmax;
    height: 5vmax;
  }
  .popup h2 {
    text-transform: uppercase;
    font-size: 2em;
  }
  .popup p {
    font-size: 1.5em;
    text-align: left;
  }
  .popup-content-wrap {
    margin-left: auto;
    margin-right: auto;
    width: 70vw;
  }

  #navigation-popup {
    height: calc(100% - 78px);
  }
}

.social-media-menu-button {
  position: absolute;
  bottom: 60vh;
  right: 0;
  z-index: 10;
  width: 6vmax;
  height: 6vmax;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  background-image: url("../images/share-mobile.png");
}

#share-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-column-gap: 10%;
  grid-row-gap: 10%;
  height: 60vmin;
  width: 60vmin;
  margin: auto;
  margin-bottom: 8vmin;
}
#share-buttons-container div {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  cursor: pointer;
}
#facebook-mobile { background-image: url("../images/facebook-mobile.png"); }
#twitter-mobile  { background-image: url("../images/twitter-mobile.png"); }
#email-mobile  { background-image: url("../images/email-mobile.png"); }
#linkedin-mobile  { background-image: url("../images/linked-in-mobile.png"); }

#navigation-container {
  overflow-y: scroll;
  height: 90%;
}

@media only screen and (orientation: portrait) {
  .copyright {
    width: 24vw;
  }

  #navigation-container {
    margin-top: 10vmin;
    margin-left: auto;
    margin-right: auto;
    width: 65vw;
  }
  figure {
    display: inline-block;
  }
  .popup-content-wrap {
    margin-top: 30%;
  }
}
figcaption {
  font-size: 1.2em;
  text-transform: uppercase;
  color:#a39161;
  font-family: 'Times New Roman', Times, serif;
}
figure {
  display: inline-block;
}
figure img{
  width: 100%;
}

@media (-moz-touch-enabled), (pointer:coarse), (hover:none) and (min-width: 420px) and (orientation: portrait) {
  .copyright {
    width: 16%;
    font-size: 110%;
  }
}

@media (-moz-touch-enabled), (pointer:coarse), (hover:none) and (orientation: landscape) {
  #navigation-container {
    margin-top: 10vmin;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  figure {
    display: inline-block;
    width: 35vw;
  }
  #navigation-container > figure:nth-child(odd) {
    margin-right: 20px;
  }
  #navigation-container > figure:nth-child(even) {
    margin-left: 20px;
  }
  .popup-content-wrap {
    margin-top: 8%;
  }

  .copyright {
    width: 12vw;
  }
}
