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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

#hero h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #ffffff;
}

#hero p {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 300;
}

section h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.artwork-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.artwork-item:hover {
    transform: scale(1.02);
}

.artwork-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
    transform: translateY(0);
}

.artwork-overlay h4 {
    font-size: 1.1rem;
    font-weight: 400;
}

#commissions {
    text-align: center;
    padding: 2rem 0;
}

.commission-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.commission-info a {
    color: #ffffff;
    text-decoration: none;
}

.commission-info a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    background-color: #000000;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    flex: 1;
    position: relative;
}

.main-image-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    padding: 0.5rem;
    max-height: 80px;
    overflow-y: auto;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.25rem;
}

.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: #ffffff;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.modal-info p {
    margin-bottom: 1rem;
    color: #ffffff;
}

.modal-meta {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.modal-links {
    margin-bottom: 1rem;
}

.modal-links a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
    border: 1px solid #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modal-links a:hover {
    background-color: #ffffff;
    color: #000000;
}

.process-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff;
}

.process-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.process-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.process-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.process-images img:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-left {
        order: 1;
    }
    
    .modal-info {
        order: 2;
    }
    
    .gallery-thumbnails {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        background: transparent;
        border-radius: 0;
        padding: 0;
        max-height: none;
        overflow-y: visible;
        margin-top: 1rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    main {
        padding: 1rem;
        margin-top: 120px;
    }
}