/* ==========================================================================
CSS Queries
========================================================================== */

/* Viewport > 300px AND < 1000px (i.e., 301px to 999px): 2 columns */
@media (min-width: 376px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-rows: repeat(2, 1fr); /* REMOVED */
    min-height: 200px; /* Kept as a minimum */
  }
}

@media screen and (max-width: 500px) {
  .formCardBackground p{
    display: none;
  }
  .formCardBackground button{
    margin-top: 50%;
  }
}

@media screen and (max-width: 640px) {
  .egg-wrapper #residual-vision {
    bottom: 44vh;
  }
  #residual-vision img{
    width: 100px;
  }
  .shop-btn {
    padding: 15px 25px;
    font-size: 10px;
  }
  #work{
    height: 70vh;
    border-radius: 20px;
    min-height: auto;
  }
  #hero-section{
    flex-direction: column;
  }

  #partners{
    min-height: auto;
    padding-bottom: 2rem;
  }
  #partners p{
    font-size: 1em;
  }
  .partnerLogo {
    max-height: 50px;
  }
  span.partners{
    font-size: 1em;
  }
  h1.partners{
    font-size: 1rem;
  }
  #heroCaption{
    display: none;
  }
  .section-2, .section-4{
    height: 330px;
  }
  .formCardBackground h2{
    font-size: 1rem;
  }
  .formCard button{
    font-size: 1rem;
    width: 100%;
  }
  #modal{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translate(0, 0);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
  }
}

@media screen and (max-width: 992px) {
  
  #work{
    min-height: auto;
    border-radius: 15px;

  }
  #partners{
    min-height: auto;
    padding-bottom: 1rem;
  }

    .main-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }

  #why-not-cocoanuts, #STS-1, #germany, #schools-of-trust, #LCF-Circus {
    height: 450px;
  }
}

@media screen and (max-width: 991px) {
  #hero-section{
    flex-direction: column;
  }
}

@media screen and (max-width: 1200px) {
  #partnerLogos img{
    max-height: 55px;
  }
  p {
    font-size: 14px;
  }
  .thin-sep {
    display: none;
  }
  .arrow {
    display: none;
  }
  nav {
    height: auto;
    width: 100%;
    background: none;
    margin: 70px 0 0 0;
  }
  .nav-wrapper {
    background-color: #fff;
  }
  nav ul {
    width: 100%;
    display: block;
    height: auto;
    padding: 0;
  }
  nav li {
    width: 100%;
    float: left;
    position: relative;
    text-align: center;
  }
  nav ul li a {
    width: 100%;
    float: left;
    position: relative;
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    margin: 0px;
  }
  nav ul li a.last {
    border-bottom: none;
  }
  nav ul li.dot {
    display: none;
  }
  .responsive-logo {
    background: url(../img/main-logo.png) no-repeat center center;
    width: 94px;
    height: 85px;
    position: absolute;
    top: 30px;
    left: 10%;
  }

  .logo-holder {
    display: none;
  }
  .logo-2 {
    position: absolute;
    left: 50%;
    top: 50%;
  }
  .logo-3 {
    position: absolute;
    left: 50%;
    top: 50%;
  }
  .footer-leftcol p,
  .footer-rightcol p {
    text-align: center;
  }
  .footer-midcol ul {
    margin-top: 40px;
  }
  .submit-btn {
    margin-top: 10px;
  }
}
@media only screen and (max-width: 1200px) {
  nav {
    border-bottom: 0;
  }
  nav ul {
    display: none;
    height: auto;
  }
  .pullcontainer {
    width: 100%;
    text-align: right;
    padding: 20px 20px 0 0;
  }
  .pullcontainer a#pull {
    display: block;
    width: 100%;
    color: #242a2c;
  }
}

@media (min-width: 1300px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-rows: 1fr; /* REMOVED */
    min-height: 200px; /* Kept as a minimum */
  }
  .main-grid {
    padding: 0 10px;
  }
}