/* ****************************** */
/* Below 1488px */
/* ****************************** */
@media (max-width: 93em) {
    .modal-content {
        display: grid;
        grid-template-columns: 5fr 4fr;
    }
}

/* ****************************** */
/* Below 1344px (Smaller desktops) */
/* ****************************** */

@media (max-width: 84em){
    .hero {
        max-width: 120rem;
    }

    .heading-primary {
        font-size: 4.4rem;
    }

   .modal {
       width: 80%;
   }

}

/* ****************************** */
/* Below 1200px (Landscape Tablets) */
/* ****************************** */

@media (max-width: 75em){
    html {
        font-size: 56%;
    }
    .grid {
        column-gap: 4.8rem;
    }

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

    .heading-tertiary {
        font-size: 2.4rem;
    }

    .header {
        padding: 0 3.2rem;
    }

    .main-nav-list {
        gap: 3.2rem;
    }

    .hero {
        gap: 4.8rem;
    }


}

/* ****************************** */
/* Below 944px (Tablets) */
/* ****************************** */

@media(max-width: 59em){
    html {
        font-size: 50%;
    }

    .hero-text-box,
    .hero-img-box {
        text-align: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 0 8rem;
        gap: 6.4rem;
    }

    .hero-description {
        text-align: left;
    }

    .hero-img {
        width: 100%;
    }

    .building {
        justify-content: center;
        margin-top: 3.2rem;
    }

    /* Mobile Navigation */
    .btn-mobile-nav {
        display: block;
        z-index: 9999;
    }

    .main-nav {
        background-color: rgba(255,255,255,.7);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);

        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .5s ease-in;

        /* Hide navigation */

        /* 1) Hide it visually */
        opacity: 0;

        /* 2) Make it unaccessible to mouse and keyboard */
        pointer-events: none;

        /* 3) Hide it from screen readers */
        visibility: hidden;
    }

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

    .nav-open .icon-mobile-nav[name="close-outline"] {
        display: block;
    }

    .nav-open .icon-mobile-nav[name="menu-outline"] {
        display: none;
    }


    .main-nav-list {
        flex-direction: column;
        gap: 4.8rem;
    }

    .main-nav-link:link,
    .main-nav-link:visited {
        font-size: 3rem;
    }
}

/* ****************************** */
/* Below 704px (Smaller Tablets) */
/* ****************************** */

@media(max-width: 44em){
    .grid--3-cols, .grid--4-cols, .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal {
        overflow-y: scroll;
        overflow-x: hidden;
        width: 90%;
        max-height: 60rem;
    }

    .close-modal {
        position: fixed;
        top: 0;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-title {
        font-size: 2.4rem;
    }

    .modal-text-box {
        padding: 2.4rem;
        
    }

    .class-description {
        font-size: 1.6rem;
    }

    .class-schedule {
        font-size: 1.2rem;
    }

    .modal-img-box {
        height: 24rem;
        grid-row: 1;
    }

    .modal-img-box .modal-img-top {
        height: 100%;
    }

    .modal-img-box .modal-img-bottom {
        display: none;
    }

    .heading-secondary {
        margin-bottom: 4.8rem;
    }

    .pricing-type {
        width: 100%;
    }
}

/* ****************************** */
/* Below 544px (Phones) */
/* ****************************** */
@media(max-width: 34em){

    .grid {
        row-gap: 4.8rem;
    }
    .grid--2-cols,
    .grid--3-cols,
    .gallery {
        grid-template-columns: 1fr;
    }

    .btn,
    .btn:link,
    .btn:visited {
        padding: 2.4rem 1.6rem;
    }

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

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

    .section-hero {
        padding: 2.4rem 0 6.4rem 0;
    }

    .hero {
        padding: 0 3.2rem;
    }

    .hero-img {
        width: 95%;
    }

    .building-text {
        text-align: left;
    }

    .theme-img-scene-box {
        grid-row: 4;
    }

    /* Gallery Section */
    .gallery-item{
        text-align: center;
        margin-bottom: 1.6rem;
    }

    .gallery-img {
        width: 75%;
    }

    /* Section Student Works */
    
    .works-classbtns {
        gap: 1rem;
    }
    .works-classbtn {
        padding: 1.2rem 2.8rem;
    }
}

/*
- FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/

/* ****************************** */
/* Fixing Safari flexbox gap */
/* ****************************** */

.no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 4.8rem;
  }
  
  .no-flexbox-gap .classguide-btn:not(:last-child) {
    margin-right: 1.6rem;
  }
  
  .no-flexbox-gap .classbtn:not(:last-child) {
    margin-right: .8rem;
  }
  
  .no-flexbox-gap .builidng-imgs {
    margin-right: 1.6rem;
  }
   
  .no-flexbox-gap .logo-col *:not(:last-child) {
    margin-right: 1.6rem;
  }
  
  
  @media (max-width: 75em) {
    .no-flexbox-gap .main-nav-list li:not(:last-child) {
      margin-right: 3.2rem;
    }
  }
  
  @media (max-width: 59em) {
    .no-flexbox-gap .main-nav-list li:not(:last-child) {
      margin-right: 0;
      margin-bottom: 4.8rem;
    }
  }