* {
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.artist-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
}

.artist-name a {
    text-decoration: none;
    color: #000000;
}

.main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.main-nav.active {
    max-height: 200px;
}

.main-nav ul {
    list-style: none;
    width: fit-content;
    margin:1rem auto;
    padding: 0;
}

.main-nav li {
    text-align: center;
}

.main-nav li a {
    display: block;
    padding: 0.4rem;
    text-decoration: none;
    color: #000000;
    font-style: italic;
}

.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #000000;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: black;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

main {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
}

.painting {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    margin: 1rem 2rem;
    width: calc(100dvw - 4rem);
    height: calc(100dvh - 6rem);
}

.painting.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.painting img {
    width: 100%;
    height: calc(100% - 5rem);
    object-fit: contain;
}

.painting-info {
}

.painting-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #666;
}
.painting-info p.title {
    font-weight: bold;
    font-size: 1rem;
    color: black;
}

.desktop-nav {
    display: block;
    position: relative;
    xtop: 1rem;
    z-index: 50;
    margin: 0 auto;
}

.desktop-nav button {
    position: absolute;
    top: calc(50dvh - 5rem);
    cursor: pointer;
    border: solid black;
    border-width: 0 0.25rem 0.25rem 0;
    display: inline-block;
    padding: 3px;
    background-color: transparent;
    outline: none;
    padding: 0.5rem;
    width: 1rem;
    height: 1rem;
}

.desktop-nav button.left {
    left: 0.75rem;
    transform: rotate(135deg); /* Rotates for a left-pointing arrow */
    -webkit-transform: rotate(135deg); /* For Webkit browsers */
}

.desktop-nav button.right {
    right: 0.75rem;
    transform: rotate(-45deg); /* Rotates for a right-pointing arrow */
    -webkit-transform: rotate(-45deg); /* For Webkit browsers */
}

main#about {
    margin: 2rem;
}

main#contacts {
    margin: 2rem;
}
main#contacts p {
    text-align: center;
}
main#contacts a {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 2rem 2rem;
    padding: 1rem 1rem 1rem 3rem;
    color: #000000;
    text-decoration: none;
    border: 1px dotted #FFFFFF;
}
main#contacts a:hover {
    border: 1px dotted #000000;
}
main#contacts a.email {
    background-image: url('/m.png');
}
main#contacts a.instagram {
    background-image: url('/ig.png');
}

/* --- Tablet / Desktop Styles --- */
@media (min-width: 768px) {

.painting {
    width: calc(100dvw - 6rem);
}
.desktop-nav button {
    width: 2rem;
    height: 2rem;
}
.desktop-nav button.left {
    left: 1rem;
}
.desktop-nav button.right {
    right: 1rem;
}

}

