@media (max-width: 84em) {
    .main {
        max-width: 120rem;
    }

    .heading-primary {
        font-size: 4.4rem;
    }
}

@media (max-width: 75em) {
    html {
        font-size: 56.25%;
    }

    .header {
        padding: 0 3.2rem;
    }

    .main-nav-list {
        gap: 2.4rem;
    }

    .heading-secondary {
        font-size: 3.2rem;
    }

    .heading-tertiary {
        font-size: 2.8rem;
    }

    .testimonials {
        width: 240px;
    }

    .testimonial {
        width: 240px;
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.2rem;
    }

    .grid--testimonial {
        gap: 0.2rem;
        padding: 0.8rem;
    }

    .about-me-spacer {
        width: 91%;
    }
}

@media (max-width: 59em) {
    html {
        font-size: 50%;
    }

    .main {
        gap: 5.2rem;
    }

    .header-logo {
        font-size: 2.4rem;
    }

    .btn,
    .btn:link,
    .btn:visited {
        font-size: 1.8rem;
    }

    .grid--testimonial {
        flex-direction: column;
        position: relative;
    }

    .gallery {
        align-self: center;
    }

    .gallery-container {
        align-self: center;
    }

    .testimonials {
        display: flex;
        flex-direction: column;
        align-self: center;
        width: 240px;
        height: 100%;
    }

    .testInner {
        position: relative;
    }

    .testimonial {
        width: 240px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cta {
        grid-column: 1 / 3;
    }

    .about-me-spacer {
        width: 91%;
    }
}

@media (max-width: 49em) {
    .main {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .img-main {
        width: 50%;
    }

    .main-img-box {
        display: flex;
        justify-content: center;
    }

    .about-me-spacer {
        width: 91%;
    }

    /* mobile navigation */
    .btn-mobile-nav {
        display: block;
        z-index: 9999;
    }

    .main-nav {
        opacity: 0;
        background-color: rgba(253, 223, 134, 0.18);
        backdrop-filter: blur(4px);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        transform: translateX(100%);

        display: flex;
        flex-direction: column;
        transition: all 0.5s ease-in;

        pointer-events: none;
        visibility: hidden;
        padding-top: 7.2rem;
        padding-left: 4rem;
    }

    .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: 3.2rem;
    }

    .main-nav-link:link,
    .main-nav-link:visited {
        font-size: 3rem;
    }


}

@media (max-width: 42em) {
    .contact-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .header {
        padding: 0 1.6rem;
    }

    .contact-cta {
        grid-column: auto;
    }

    .grid--left-img,
    .grid--right-img {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .work-img-box {
        padding: 0.8rem;
        display: flex;
        justify-content: center;
    }

    .img-work {
        width: 50%;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--right-img .work-img-box {
        grid-row: 1 / 2;
    }

    .about-me-spacer {
        width: 91%;
    }
}

@media (max-width: 23em) {
    html {
        font-size: 43.75%;
    }

    .section-main {
        padding: 2.4rem 0 4.8rem 0;
        max-width: 100vw;
    }

    .heading-primary {
        font-size: 3.8em;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-me-spacer {
        width: 80%;
    }

    .main {
        padding: 0 0 3.2rem 1.6rem;
    }
}
