/* ****************************** */
/* Below 1600px (medium desktops) */
/* ****************************** */

@media (max-width: 1600px){
    
    .modal {
        width: 70%;
    }

   .modal-image-carousel-box {
        height: 65vh;
   }

}

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

@media (max-width: 1344px){
    .hero {
        max-width: 120rem;
    }

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

/* ****************************** */
/* Below 1200px (Landscape Tablets) */
/* ****************************** */
@media (max-width: 1200px){
    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: 2.8rem;
    }

    .hero {
        gap: 4.8rem;
    }

    .modal {
        width: 55%;
    }

    .close-modal {
        top: .8%;
        right: 1%;
        display: inline-block;
        width: 3rem;
        height: 3rem;
        background-color: var(--primary-color);
        border-radius: 50%;
        color: #fff;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }

    .modal-content > * {
        grid-column: 1;
    }

    .class-title {
        grid-row: row-start 2 / row-end 2;
        margin-bottom: 2rem;
    }

    .modal-image-carousel-box {
        grid-row: row-start 1 / row-end 1;
        height: 35vh;
    }

    .modal-text-box {
        grid-row: row-start 3 / row-end 3;
        max-height: 40rem;
    }

    .modal-btns {
        grid-row: row-start 4 / row-end 4;
    }
}

/* ****************************** */
/* Below 944px (Tablets) */
/* ****************************** */
@media(max-width: 944px){
    
    html {
        font-size: 50%;
    }

    .section-hero {
        height: auto;
        background-image: linear-gradient(
                    to right bottom, 
                    rgb(135, 206, 235, .6), 
                    rgb(216, 245, 251, .8)
    ), url(../images/main/hero-background.jpg);
        background-position: center top;
    }

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

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

    .hero-description {
        text-align: left;
        font-size: 1.8rem;
    }

    .hero-img {
        width: 90%;
    }

    .btns {
        justify-content: center;
    }

    .hero-addnote {
        justify-content: center;
    }

    .addnote-text {
        font-size: 1.8rem;
        text-align: center;
    }

    .addnote-text span {
        font-size: 2rem;
    }

    .theme-title {
        text-align: center;
    }

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

    .top-fixed {
        position: fixed;
        top: 1.5rem;
        right: 3rem;
        /* z-index: 9999; */
        z-index: 9998;

        background-color: #fff;
        height: 6rem;
        width: 6rem;
        padding: 1rem;
        border-radius: 50%;
        box-shadow: 0 0 1rem rgba(0,0,0,.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        background-color: rgba(255, 255, 255, .97);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 120vh;
        transform: translateX(100%);
        z-index: 9998;

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

        margin-top: -15rem;

        opacity: 0;
        pointer-events: none;
        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;
        align-items: center;
        gap: 7.2rem;
    }

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

    .btn-order-small:link,
    .btn-order-small:visited {
        padding: 2rem 4rem;
        font-size: 2rem;
    }

    .hero-addnote {
        flex-direction: column;
        gap: 2rem;
    }

    .theme-description {
        font-size: 2rem;
    }

    /* Modal */

    .class-description, 
    .class-schedule {
        font-size: 1.8rem;
        line-height: 1.5;
    }
}

/**************************  */
/* Below 770px */
/**************************  */

@media(max-width: 770px){

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

    .grid {
        row-gap: 2rem;
    }

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

    .theme-text-box {
        padding: 0 2.5rem;
    }

    .theme-image {
        width: 70%;
    }

    .pricing-type {
        width: 70%;
        justify-self: center;
    }

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

    .modal {
        position: fixed;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        overscroll-behavior-y: contain;
    }

    .btn-close {
        
        display: flex;
        justify-content: center;
        align-items: center;

        width: 3.5rem;
        height: 3.5rem;
        background-color: var(--primary-color);
        border-radius: 0;
    }

    .btn-close {
        font-size: 2rem;
        color: #fff;
    }

    .btn-close:focus {
        box-shadow: none;
    }

    .modal-text-box {
        max-height: 38rem;
        padding: 2rem;
    }

    .modal-image-carousel-box {
        height: 35vh;
    }
}

/* ****************************** */
/* Below 544px (Phones) */
/* ****************************** */

@media(max-width: 544px){

    .hero {
        row-gap: 2.4rem;
    }
    .heading-primary {
        font-size: 4rem;
    }

    .hero-img {
        width: 100%;
    }

    .hero-addnote {
        margin-top: 5.5rem;
    }

    .theme-text-box {
        padding: 0 1.2rem;
    }

    .theme-image {
        width: 100%;
    }

    .pricing-type {
        width: 100%;
    }

    .class-radio-groups {
        width: 100%;
    }
}