body {
    /* font-family: 'Tempus Sans ITC', sans-serif; */
    font-family: "Handlee", "Trebuchet MS", "Lucida Sans Unicode", "Comic Sans MS", cursive;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.logo img {
    width: 140px;
    height: auto;
    margin-right: 20px;
}

.title {
    flex: 1;
    text-align: center;
}

.title h1 {
    font-size: 2.5em;
    font-style: italic;
    margin: 0;
    color: #000000;
}

.subtitle {
    font-size: 1.5em;
    font-style: italic;
    margin: 0;
}

.commissions {
    font-size: 1em;
    margin: 0;
    color: #0066cc;
}

.layout {
    display: flex;
    gap: 20px;
}

.nav {
    width: 200px;
    flex-shrink: 0;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav li {
    margin-bottom: 15px;
}

.nav a {
    text-decoration: none;
    color: #000000;
    font-size: 1.2em;
    font-style: italic;
    font-weight: bold;
    transition: color 0.3s;
}

.nav a:hover {
    color: #77797c;
}

.nav .home {
    color: #77797c;
}

.nav .active {
    color: #77797c;
    cursor: default;
}

.main {
    flex: 1;
    display: flex;
    gap: 20px;
}

.image-section {
    flex-shrink: 0;
}

.image-section img {
    width: 258px;
    height: auto;
    border: none;
    cursor: pointer;
}

.content {
    flex: 1;
}

.content p {
    font-size: 1em;
    font-style: italic;
    margin-bottom: 1em;
}

.contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.contact p {
    margin: 5px 0;
}

/* Gallery Styles */
.gallery {
    padding: 20px;
}

.gallery-instruction {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.95em;
    color: #666;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item {
/*     aspect-ratio: 1;
    overflow: hidden; */
    border: 1px solid #999;
    background: #f5f5f5;
}

/* .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
} */

.gallery-item img {
    min-width: 100px; /* Was width: 100%; Ensure images don't shrink too much */
    height: 200px; /* was 100% Fixed height for uniformity */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item.large-v {
    grid-row: span 2;
}

.gallery-item.large-h {
    grid-column: span 2;
}

.gallery-item.featured {
    grid-column: span 3;
    aspect-ratio: auto;
}

/* Profile and Studio Styles */
.profile-content {
    flex: 1;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    font-size: 1.2em;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.profile-timeline {
    margin-left: 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 15px;
}

.timeline-year {
    min-width: 60px;
    font-weight: bold;
    margin-right: 15px;
}

.timeline-content {
    flex: 1;
}

.exhibitions-list {
    columns: 2;
    column-gap: 30px;
    margin-left: 20px;
}

.exhibitions-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.profile-image {
    width: 300px;
    border: 1px solid #999;
    margin: 20px 0 20px 20px;
    float: left;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.studio-content {
    flex: 1;
    display: flex;
    gap: 20px;
}

.studio-images {
    flex-shrink: 0;
}

.studio-image {
    width: 220px;
    border: 2px solid #666;
    margin-bottom: 15px;
}

.studio-image img {
    width: 100%;
    height: auto;
    display: block;
}

.studio-text {
    flex: 1;
}

.studio-text p {
    font-size: 0.95em;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.2em;
}

/* Responsive design - Only stack on very small screens */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .layout {
        flex-direction: column;
    }

    .nav {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav li {
        margin: 0 15px 10px 0;
    }

    .main {
        flex-direction: column;
    }

    .image-section img {
        width: 100%;
        max-width: 258px;
    }

    .profile-content {
        width: 100%;
    }

    .exhibitions-list {
        columns: 1;
    }

    .studio-content {
        flex-direction: column;
        gap: 15px;
    }

    .studio-images {
        width: 100%;
    }

    .studio-image {
        width: 100%;
        max-width: 220px;
    }

    .studio-text {
        width: 100%;
    }

    .profile-image {
        width: 100%;
        max-width: 300px;
        margin-left: 0;
        float: none;
    }
}
