/* ##### HANDHELD ##### */
@media (max-width:839px) {

    /* HEADER/MENU */
    html {
        scroll-padding-top: 68px;
    }

    body {
        margin-left: 0;
        margin-right: 0;
    }

    nav.menu-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 6000;
        --nav-pr: 20px;
        padding: 12px var(--nav-pr, 20px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        background: rgba(0, 0, 0, .6);
        color: #fff;
    }

    nav.menu-bar .logo img {
        width: 200px;
        height: auto;
    }

    button.nav-toggle {
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        line-height: 1;
        border: 0;
        background: transparent;
        color: #fff;
        outline: none;
        box-shadow: none;
        cursor: pointer;
    }

    button.nav-toggle:focus,
    button.nav-toggle:active {
        outline: none;
        box-shadow: none;
    }

    nav.menu-bar>.menu-items {
        position: absolute;
        top: 100%;
        right: 0 !important;
        left: auto !important;
        width: min(60vw, 320px);
        padding: 10px var(--nav-pr, 20px) 10px 16px;
        margin: 0;
        list-style: none;
        background: rgba(0, 0, 0, .6) !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        /* ensures links can align right */
        gap: .25rem !important;
        text-align: right !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    }

    nav.menu-bar.is-open>.menu-items {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav.menu-bar.closing>.menu-items {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
    }

    nav.menu-bar>.menu-items li {
        margin: 0 !important;
        padding: 0;
        align-self: stretch !important;
    }

    nav.menu-bar>.menu-items a {
        display: block !important;
        width: 100% !important;
        padding: 8px 0;
        text-align: right !important;
        color: #fff;
        text-decoration: none;
        background: transparent !important;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .6);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility 0s linear .22s;
        z-index: 5500;
        /* below nav */
    }

    .nav-backdrop.show {
        opacity: 1;
        visibility: visible;
        transition: opacity .22s ease, visibility 0s;
    }

    /* ##### GLOBAL ##### */
    .section-head {
        padding-top: 30px;
    }

    /*##### ABOUT #####*/
    .about-wrapper {
        width: 100%;
        padding-inline: 20px;
    }

    .about-flex {
        display: block;
    }

    .about-flex::after {
        content: "";
        display: table;
        clear: both;
    }

    .about-img {
        float: left;
        width: 45%;
        max-width: none;
        margin: 0 20px 0 0;
    }

    .about-img img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* ##### PAINTINGS ##### */

    .section-head h5 {
        letter-spacing: 3px;
    }

    #paintings-grid {
        box-sizing: border-box;
        padding-inline: 20px;
        margin: 0;
    }

    #paintings-grid #gallery {
        width: 100%;
        column-gap: var(--pico-grid-gap, 1rem);
        margin: 0;
        column-count: 2;
    }

    .pswp__button--close {
        display: block !important;
        position: absolute;
        top: 60px;
        right: 12px;
        z-index: 10000;
    }

    .pswp__button--close svg {
        width: 32px;
        height: 32px;
        fill: #fff;
    }

    /* ##### EXHIBITIONS ##### */
    .exhibitions-wrapper {
        margin-left: 20px;
        margin-right: 20px;
    }

    /* ##### CONTACT ##### */
    .contact-container {
        margin-left: 20px;
        margin-right: 20px;
    }

    .contact-container {
        padding-top: 20px;
    }

    h6.contact-head {
        padding: 0;
    }

    /* ##### FOOTER ##### */
    section {
        padding-top: 0;
        margin-bottom: 0 !important;
    }

    footer {
        margin-left: 5px;
        margin-right: 5px;
    }

    footer>.container {
        padding-top: 20px;
    }

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

    footer .nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem 2rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    section .contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    section .contact-list li {
        display: flex;
        align-items: center;
        gap: .25rem;
    }

    section.footer-contact {
        display: none;
    }

}

/* ##### TABLETS ##### */
@media (min-width:820px) and (max-width:1024px) {

    .about-wrapper {
        width: 100%;
        padding-inline: 60px;
    }

    #paintings-grid {
        box-sizing: border-box;
        padding-inline: 60px;
        margin: 0;
    }

    #paintings-grid #gallery {
        width: 100%;
        column-gap: var(--pico-grid-gap, 1rem);
        margin: 0;
        column-count: 3;
    }

    .exhibitions-wrapper {
        margin-inline: 60px;
    }

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

    .contact-container {
        margin-left: 60px;
        margin-right: 60px;
    }

    footer {
        margin-left: 60px;
        margin-right: 60px;
    }

}

/* desktop */
@media (min-width:840px) {
    nav.menu-bar .nav-toggle {
        display: none;
    }

    nav.menu-bar>.menu-items {
        display: flex;
        gap: 1rem;
        position: static;
    }

}

@media (max-width: 599px) {

    .glide__arrows>button.glide__arrow.glide__arrow--left,
    .glide__arrows>button.glide__arrow.glide__arrow--right {
        display: none;
    }

    .hero-text {
        top: auto;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.25rem;
    }

    .menu-bar {
        --nav-pr: 0;
        /* your layout sets right pad to 0 */
        padding-left: 30px;
        padding-right: var(--nav-pr);
    }

    .logo {
        width: 200px;
    }

}


/* EXHIBITIONS */
/* tablets */
@media (min-width:600px) {
    .exhibitions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* desktop */
@media (min-width:900px) {
    .exhibitions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* CONTACT */
/* Stack on handheld */
@media (max-width: 768px) {
    .contact .grid.two {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .name-row {
        grid-template-columns: 1fr;
    }
}