:root {
    --primary-color: #333;
    --secondary-color: #666;
    --background-color: #fff;
    --accent-color: #888;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --nav-height: 70px;
    --footer-height: 80px;
    --burger-z-index: 2000;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: var(--nav-height);
}

#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-height));
}

main {
    flex: 1;
    padding-bottom: calc(var(--footer-height) + 4rem);
}

.home main {
    padding-bottom: calc(var(--footer-height) + 8rem);
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--burger-z-index);
    background: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: calc(var(--burger-z-index) + 1);
    position: relative;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
}

.burger-menu.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .main-nav ul {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--background-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 1rem;
        text-align: center;
        z-index: calc(var(--burger-z-index) - 1);
    }

    .main-nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .main-nav li {
        width: 100%;
        padding: 0.5rem 0;
    }    .main-nav a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--footer-height);
        padding: 1rem;
        background-color: #000;
        color: #fff;
        z-index: 1000;
    }    .artist-intro {
        min-height: 70vh;
        padding-bottom: 6rem;
        margin-bottom: 4rem;
    }    

    .home main {
        min-height: calc(100vh - var(--nav-height));
        padding-bottom: calc(var(--footer-height) + 10rem);
    }

    .home .hero {
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }

    body.home {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }#wrapper {
        padding-bottom: calc(var(--footer-height) + 1rem);
    }

    footer {
        height: auto;
        min-height: var(--footer-height);
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 0.5rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .artwork {
        height: auto;
    }

    .artwork img {
        height: 250px;
    }

    .artwork-info {
        position: static;
        transform: none;
        background: white;    }    main {
        padding-bottom: calc(var(--footer-height) + 8rem);
    }

    .artist-intro {
        min-height: 80vh;
        padding-bottom: 8rem;
        margin-bottom: 6rem;
    }    .home main {
        padding-bottom: calc(var(--footer-height) + 15rem);
    }
}
