/*  */
/*  */
/* MEDIA QUERIES */
/*  */
@media screen and (max-width: 992px) {
  .topnav {
    padding: 1em;
  }

  .page {
    /* margin-left: 2em;
    margin-right: 2em; */
    width: 90%;
    margin: auto;
    display: block;
  }

  .project-page {
    margin-left: 3em;
    margin-right: 3em;
  }

  .project-intro p {
    font-size: 1.5em;
  }

  .gd-horiz {
    flex-direction: column;
  }
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.25em;
  }

  .page {
    margin-left: 0.5em;
    margin-right: 0.5em;
  }

  .index-spacing {
    margin-top: 3em;
  }

  .project-page {
    margin-left: 0.5em;
    margin-right: 0.5em;
  }

  .project-content {
    width: 90%;
    display: block;
    margin: 0 auto;
  }

  .home-intro {
    width: 100%;
  }

  .project-container {
    display: flex;
    flex-direction: column;
  }

  .project-card {
    width: 100%;
  }

  .project-card-single {
    max-width: 100%;
  }

  .intro-container {
    flex-direction: column-reverse;
  }

  .project-intro {
    width: 100%;
    margin: 1em 1em;
    font-weight: 550;
    font-size: 1.25em;
  }

  .intro-image {
    width: 100%;
  }

  .project-intro p {
    font-size: 0.75em;
  }

  .large-text {
    margin: 13em 1em;
    color: #555;
    /* margin: 3em 10em; */
  }

  .large-text h1 {
    font-size: 2em;
  }

  .large-text p {
    font-size: 0.5em;
  }

  .vid-type-box {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  .CM-mockups {
    /* need to zoom into vids */
  }

  .about-page {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .about-text-flex {
    width: 100%;
    padding-right: 1em;
    padding-top: 1em;
  }

  .my-image {
    max-width: 100%;
    padding-left: 1em;
    padding-top: 1em;
  }

  /* GALLERY */
  .gallery-page {
    flex-direction: column;
    width: 90%;
  }

  .gallery-column {
    width: 100%;
  }

  .gallery-column img {
    width: 100%;
  }

  .img-caption:hover p {
    colour: blue;
  }

  .img-caption {}

  .gd-horiz {
    flex-direction: column;
  }

  /* FOOTER  */
  .footer {
    height: 6em;
    flex-direction: column-reverse;
    padding-bottom: 3em;
  }

  .footer .footer-item div {
    margin-top: 1em;
    margin-bottom: 0;
  }

  /* BACK TO TOP BUTTON */
  #myBtn {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 99;
    font-size: 0.75em;
    border: none;
    outline: none;
    background-color: #ddd;
    color: black;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    display: block;
    font-family: 'Open Sans', Arial, sans-serif;
  }

  #top-text {
    display: none;
  }
}

/* QUERIES FOR NAV BAR */
@media screen and (max-width: 600px) {
  .topnav {
    padding: 0;
  }

  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
    padding: 1em;
    color: black;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
  }
}