/* Bellow 1200px (Landscape tablets) */

@media (max-width: 75em) {
  /* 9px / 16px */
  html {
    font-size: 56.25%;
  }

  .header__text-box {
    width: 100%;
    padding-left: 4rem;
  }

  .gallery__item img {
    height: 20rem;
  }
}

/* Bellow 950px (Tablets) */

@media (max-width: 59.4em) {
  /* 8px / 16px */
  html {
    font-size: 50%;
  }

  .btn:link,
  .btn:visited {
    font-size: 2.4rem;
  }

  .grid {
    column-gap: 9.6rem;
  }

  .grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__logo-col {
    grid-row: 2;
  }

  .footer__social-links {
    margin-bottom: 1.6rem;
  }

  .feature__img {
    width: 50%;
  }
}

/* Bellow 750px (Small tablets) */

@media (max-width: 46.8em) {
  /*MOBILE NAVIGATION*/

  .navbar__btn {
    display: block;
    z-index: 3000;
  }

  .nav-open .navbar__icon--times {
    display: block;
    color: #333;
  }

  .nav-open .navbar__icon--bars {
    display: none;
  }

  .navbar__main {
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    z-index: 2000;

    /* Hide navigation */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .navbar__main ul {
    flex-direction: column;
    gap: 4.8rem;
  }

  .navbar__link:link,
  .navbar__link:visited {
    color: #333;
    font-size: 3rem;
  }

  .nav-open .navbar__main {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .feature__img {
    width: 70%;
  }

  .feature__img-half {
    width: 55%;
  }
}

/* Bellow 600px (Phones) */

@media (max-width: 37.5em) {
  .heading-primary {
    line-height: 1.2;
    font-size: 4.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .grid--3-cols {
    grid-template-columns: 1fr;
  }

  .header__text-box {
    padding-left: 1rem;
  }

  .header__btn-spacing {
    margin-bottom: 1.6rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item img {
    height: 25rem;
  }

  .card {
    width: 80%;
    justify-self: center;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .footer {
    font-size: 1.4rem;
  }

  .footer__logo-col {
    grid-column: 1/2;
    grid-row: 3;
  }

  .feature__img-box-2 {
    grid-column: 1/2;
    grid-row: 4;
  }
}

/* Bellow 400px (Small phones) */

@media (max-width: 25em) {
  .card {
    width: 100%;
  }

  .contact__text-box {
    padding: 3.2rem 1.2rem 4.8rem 1.2rem;
    color: #420a00;
  }
}

/****************************
**** FLEXBOX GAP FIX
*****************************/

.no-flexbox-gap .navbar__main ul li:not(:last-child) {
  margin-right: 3.2rem;
}

.no-flexbox-gap .footer__social-links li:not(:last-child) {
  margin-right: 2.4rem;
}

.no-flexbox-gap .footer__nav li:not(:last-child) {
  margin-bottom: 2.4rem;
}

.no-flexbox-gap .feature__img-box .feature__img-half:not(:last-child) {
  margin-right: 2rem;
}

.no-flexbox-gap .meal__attribute:not(:last-child) {
  margin-bottom: 2rem;
}

.no-flexbox-gap .form__group:not(:last-child) {
  margin-bottom: 2.4rem;
}

@media (max-width: 46.8em) {
  .no-flexbox-gap .navbar__main ul li:not(:last-child) {
    margin-bottom: 4.8rem;
  }
}
