/* Below 1200 for landscape tablets */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .logo-text {
    font-size: 1.8rem;
  }
  .main-nav-item span {
    font-size: 1.4rem;
  }
  .hero__nav-list {
    font-size: 2.5rem;
  }
}
/* Below 944 for tablets */
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }
  .logo-text {
    font-size: 1.6rem;
  }
  .main-nav-item span {
    font-size: 1.2rem;
  }
  .hero-section-services {
    font-size: 2rem;
  }
  .grid {
    column-gap: 4rem;
  }
  .transport-card {
    width: 100%;
  }
  .card-btn {
    margin-top: 3rem;
  }
  .STO-gallery,
  .gallery-imgs {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal {
    width: 70rem;
  }
  .hero__nav-item {
    font-size: 2.4rem;
  }
}

/* Below 704 for smaller tablets */
@media (max-width: 44em) {
  .transport-card-container {
    padding: 3.2rem 3.8rem 4.8rem 3.8rem;
  }
  .STO-gallery {
    grid-template-rows: repeat(3, 1fr);
  }
  .gallery-imgs {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--2-cols {
    grid-template-columns: repeat(1, 1fr);
  }
  .transport-card {
    width: 80%;
    justify-self: center;
  }
  .location-section .heading-secondary {
    grid-column: 1;
  }
  .location-section {
    grid-template-columns: 1fr;
    row-gap: 4.8rem;
    padding: 9.8rem 3.2rem 9.6rem;
  }
  .location-maps {
    height: 40rem;
  }
  /* mobile navigation */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }
  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(100%);
  }
  .main-nav__list {
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 3rem;
    padding: 0 2.4rem;
  }
  .menu-icon {
    font-size: 4.4rem;
  }
  .main-nav__item {
    gap: 2rem;
  }
  .main-nav__item--column {
    gap: 2rem;
  }
  .main-nav__item span {
    font-size: 2rem;
  }
  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
    transition: all 0.5s ease-in;
  }
  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }
  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }
  .logo-text {
    font-size: 2rem;
  }
  .strong-emphasis {
    font-size: 3rem;
  }
}

/* Below 544 for phones */
@media (max-width: 34em) {
  .hero-section-background {
    background-image: linear-gradient(
        rgba(34, 34, 34, 0.1),
        rgba(34, 34, 34, 0.1)
      ),
      url(/img/hero-image-small.jpg);
  }
  .entrance-gallery,
  .STO-gallery,
  .gallery-imgs {
    grid-template-columns: 1fr;
  }
  .transport-card-container {
    padding: 3.2rem 3.2rem 3.2rem 3.2rem;
  }
  .card-title {
    font-size: 2.4rem;
  }
  .btn {
    font-size: 1.6rem;
    padding: 1.2rem 2.4rem;
  }
  .location-adress-card {
    padding: 4.8rem;
    margin: 0;
  }
  .strong-emphasis {
    font-size: 2.5rem;
  }
  .hero__nav-list {
    width: 100%;
    gap: 3rem;
    top: 30%;
  }
  .hero__nav-item {
    padding: 2rem;
  }
}
/* Below 320 for tall phones */
@media (max-width: 20em) {
  .location-adress-card {
    padding: 2.5rem;
  }
  .transport-card-container {
    padding: 3.2rem 2rem 3.2rem 2rem;
  }
  .card-title {
    font-size: 1.8rem;
  }
  .card-attribute {
    font-size: 1.6rem;
    gap: 1rem;
  }
  .btn {
    font-size: 1.4rem;
    padding: 1.2rem 1.6rem;
  }
}

/* Horizontal phone */
@media (max-height: 40em) {
  .hero__nav-list {
    position: absolute;
    top: 40%;
    flex-direction: row;
    width: 100%;
    gap: 5rem;
    flex-wrap: wrap;
    padding: 0 3rem;
  }
}
