* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.artist-name {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: #222;
}

/* Navigation Bar */
.navbar {
    background-color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #222;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #222;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #222;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    margin: 60px 0;
}

.featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Contact Section */
.contact {
    text-align: center;
    margin: 80px 0;
}

.contact h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #222;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background-color: #222;
    color: #fff;
}

/* Gallery Section */
.gallery {
    margin: 80px 0;
}

.gallery h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 50px;
    color: #222;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.artwork-title {
    padding: 15px;
    background-color: #fff;
    text-align: center;
    font-weight: 500;
    color: #333;
}

/* Portfolio Sections */
.portfolio-sections {
    margin: 80px 0;
}

.portfolio-sections h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 50px;
    color: #222;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
    height: 400px;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px;
    color: #fff;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    font-weight: 300;
}

/* Subpage Styles */
.subpage {
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin: 60px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #222;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.artwork-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.artwork-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.artwork-card:hover img {
    transform: scale(1.05);
}

.artwork-info {
    padding: 20px;
}

.artwork-info h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #222;
}

.artwork-info p {
    color: #666;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 80px;
}

footer p {
    font-weight: 300;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .artist-name {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact h2,
    .gallery h2,
    .portfolio-sections h2,
    .page-header h1 {
        font-size: 1.5rem;
    }

    .gallery-grid,
    .portfolio-grid,
    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }

    .contact-btn {
        justify-content: center;
    }

    .portfolio-card {
        height: 300px;
    }

    .artwork-card img {
        height: 300px;
    }

    .page-header {
        margin: 40px 0;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .artist-name {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .portfolio-overlay h3 {
        font-size: 1.4rem;
    }

    .artwork-info h3 {
        font-size: 1.1rem;
    }
}

/* Mobile usability tweaks */
/* Improve touch targets, make images flow, and reduce fixed heights on small screens */
@media (max-width: 768px) {
    /* Make gallery and artwork images scale naturally instead of fixed heights */
    .gallery-item img,
    .artwork-card img,
    .portfolio-card img,
    .featured-image {
        height: auto;
        max-height: 60vh;
        object-fit: contain;
    }

    /* Slightly larger tappable buttons and links */
    .contact-btn {
        padding: 16px 22px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .nav-links a {
        padding: 10px 12px;
        font-size: 1rem;
    }

    /* Make portfolio cards flow vertically and remove forced height */
    .portfolio-card {
        height: auto;
    }

    /* Reduce heavy shadows and transforms on small devices for performance */
    .gallery-item,
    .artwork-card,
    .portfolio-card {
        box-shadow: 0 3px 10px rgba(0,0,0,0.07);
        transition: none;
    }
}

/* Very small screens adjustments */
@media (max-width: 420px) {
    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 16px;
        font-size: 1rem;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .artist-name { font-size: 1.3rem }

    /* Slightly larger lightbox controls/text for easier tapping */
    #simple-lightbox .slb-close { padding: 10px 12px; font-size: 20px }
    #simple-lightbox .slb-caption { font-size: 15px }
}

/* Lightbox info bar (shows price/status/dimensions) */
#simple-lightbox .slb-info{
    margin-top:8px;
    display:inline-flex;
    gap:12px;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.65);
    color:#fff;
    padding:10px 14px;
    border-radius:8px;
    font-size:14px;
    max-width:95%;
}

#simple-lightbox .slb-info .slb-info-row{ display:inline-flex; gap:8px; align-items:center }

/* Mobile nav toggle styles */
.nav-toggle{
    display:none;
    background:transparent;
    border:0;
    font-size:26px;
    color:#222;
    cursor:pointer;
}

@media (max-width: 768px){
    /* Hide nav-links by default on small screens and show via toggle */
    .nav-toggle{ display:block }
    .nav-links{ display:none; width:100%; flex-direction:column; gap:12px; padding:12px 0 }
    .navbar.open .nav-links{ display:flex }
    /* Ensure nav-links occupy full width when open */
    .navbar.open { align-items: flex-start }
}

/* Status colors for lightbox */
#simple-lightbox .slb-status.available { color: #4CAF50; font-weight:600 }
#simple-lightbox .slb-status.sold { color: #E53935; font-weight:600 }

/* Lightbox styles (basic, used by lightbox.js) */
#simple-lightbox{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9999 }
#simple-lightbox.open{ display:flex }
#simple-lightbox .slb-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,0.85); display:flex; align-items:center; justify-content:center; padding:24px }
#simple-lightbox .slb-inner{ max-width:95%; max-height:95%; text-align:center }
#simple-lightbox .slb-image{ max-width:100%; max-height:80vh; border-radius:6px; box-shadow:0 12px 40px rgba(0,0,0,0.6); display:block; margin:0 auto }
#simple-lightbox .slb-caption{ margin-top:12px; color:#fff; font-size:14px }
#simple-lightbox .slb-close{ position:fixed; top:20px; right:20px; background: rgba(255,255,255,0.06); color:#fff; border:none; padding:8px 10px; font-size:18px; border-radius:6px; cursor:pointer }
body.slb-open{ overflow:hidden }
