.cv-header {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    padding: 0 0 1.5rem 0;
    background: none;
    z-index: auto;
    font-size: 1.1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: static;
}

.site-header {
    margin-bottom: 1.5rem;
    padding: 2rem 2rem 2rem 40px;
    position: relative;
}

.site-title {
    font-size: 24pt;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-left: 0;
    text-align: left;
    margin-right: 2.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: underline;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: fixed;
    left: 40px;
    top: 5rem;
    margin-top: 36px;
    z-index: 2;
}

nav a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

nav a:hover {
    color: #666;
    border-bottom: 2px solid #000;
}

.paintings-sidebar {
    position: absolute;
    left: 200px;
    top: 180px;
    display: none;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 0.5rem 1rem;
    min-width: 120px;
    z-index: 10;
    font-size: 1rem;
    flex-direction: column;
    gap: calc(1rem - 5px);
}

.paintings-sidebar a {
    color: #000;
    text-decoration: none;
}

.paintings-sidebar a:hover {
    color: #db2a41;
    text-decoration: none;
}

.site-footer {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    padding-left: 200px;
}

.cv-content {
    max-width: 1500px;
    width: calc(100% + 800px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cv-section {
    text-align: center;
}

.cv-section .cv-item {
    display: inline-block;
    text-align: left;
}

.instagram-link {
    margin-top: 500px;
    padding-top: 80px;
}

.instagram-link a {
    color: #000;
}

.merged-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.merged-nav .site-title {
    font-size: 24pt;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-left: 0;
    text-align: left;
    margin-right: 2.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.merged-nav .site-title:hover {
    text-decoration: underline;
}

.merged-nav a[href="paintings.html"]:hover {
    color: #f78922;
}

.merged-nav a[href="cv.html"]:hover {
    color: #56a10a;
}

.merged-nav a[href="contact.html"]:hover {
    color: #ef3397;
}

.merged-nav .nav-instagram:hover {
    color: #e2e200;
}

.merged-nav a[href="paintings.html"] {
    position: relative;
    z-index: 201;
}

.nav-instagram {
    margin-top: 50px;
    display: inline-block;
}

.nav-email {
    margin-top: 18px;
    display: inline-block;
    font-size: 1rem;
    color: #222;
    text-decoration: underline;
}

.vertical-scroll-gallery, .gallery-img {
    display: none !important;
}

#random-image-viewer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 360px;
    width: auto;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    z-index: 100;
    transition: left 0.3s, width 0.3s;
}

#random-image-viewer img {
    max-width: 100%;
    max-height: 100vh;
    margin: auto;
    display: block;
    border-radius: 0 !important;
    box-shadow: none;
}

@media (max-width: 900px) {
    #random-image-viewer {
        left: 0;
        width: 100vw;
        height: 100vh;
    }
    #random-image-viewer img {
        max-width: 100vw;
        max-height: 100vh;
    }
}

@media (max-width: 768px) {
    .cv-header {
        padding: 0 0 1rem 0;
        font-size: 1rem;
    }

    .site-header {
        padding: 20px;
    }

    .site-title {
        margin-left: 0;
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 1rem;
        margin-left: 0;
        text-align: left;
        margin-right: 2.5rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #000;
        text-decoration: none;
    }

    .site-title:hover {
        text-decoration: underline;
    }

    nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 36px;
        left: auto;
        top: auto;
    }
    
    .site-footer {
        position: static;
        margin: 20px;
        margin-top: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .paintings-sidebar {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 0;
    }

    .instagram-link {
        margin-top: 100px;
        padding-top: 40px;
    }

    main {
        padding: 20px;
    }

    .merged-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-instagram {
        margin-top: 20px;
    }

    .nav-email {
        margin-top: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 1100px) {
    .paintings-sidebar {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 0;
    }
}

@media (max-width: 1700px) {
    .cv-content {
        max-width: 100%;
        width: 100%;
        padding-right: 0;
    }
}
