/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #222;
    background-color: white;
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

h2, h3, h4 {
    color:#000;
    font-weight: normal;
}

p {
    margin: 10px 0;
}

a {
    color: #444;
    text-decoration: none;
}
a:hover{
    color:#222;
    text-decoration: underline;
}

/* Navigation */
#nav {
    background-color: white;
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

#nav h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: normal;
}

#nav ul {
    list-style: none;
}

#nav li {
    margin-bottom: 0.5rem;
}

.section-title {
    color: #222;
}




#nav a {
    color: gray;
    text-decoration: none;
}

#nav a:hover {
    text-decoration: underline;
}

/* Main content */
#main_content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-content {
    padding-right: 6em;
    margin-top: 4em;
}

#main_content h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 2rem;
}

/* Shows section */
.shows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.show {
    border-bottom: 0px solid #eee;
    padding-bottom: 1rem;
}

.show h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.show p {
    color: #666;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top:1em;
}

.individual-works {
    margin-top: 2em;
}

.gallery img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-item {
    margin-bottom: 1em;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-item .caption {
    margin-top: 0.5em;
    text-align: center;
    color: #666;
}

.artwork {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artwork img {
    max-width: 100%;
    height: auto;
    display: block;
}

.artwork p {
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
footer {
    margin-top: 3rem;
    text-align: center;
}

footer a {
    color: gray;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    #nav {
        position: static;
        height: auto;
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    #nav h1 {
        margin-bottom: 0.5rem;
    }

    #nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    #nav li {
        margin-bottom: 0.25rem;
        white-space: normal;
    }

    #main_content {
        padding: 1rem;
    }

    .page-content {
        padding-right: 1em;
        margin-top: 2em;
    }

    .image-pair {
        height: 350px;
    }

    .fixed-height-image {
        height: 300px;
    }
    .bit-taller-image {
        height: 410px;
    }

    .image-quad-row {
        height: 250px;
    }

    .gallery-item {
        height: 300px;
        width: 100%;
    }

    .gallery-item img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .student-work-gallery {
        height: 300px;
    }

    .student-work-gallery img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .image-pair {
        height: 250px;
    }

    .fixed-height-image {
        height: 200px;
    }
    .bit-taller-image {
        height: 300px;
    }
    .image-quad {
        grid-template-columns: 1fr;
    }

    .image-quad-row {
        height: 200px;
    }

    .gallery-item {
        height: 200px;
        width: 100%;
    }

    .student-work-gallery {
        height: 200px;
    }
}

/* Print styles */
@media print {
    #nav {
        display: none;
    }

    body {
        grid-template-columns: 1fr;
    }

    .artwork {
        break-inside: avoid;
    }
}

/* CV and Teaching Documents Styles */
.pdf-link {
    display: inline-block;
    padding: 4px 6px;
    background-color: #aaa;
    color: black;
    text-decoration: none;
    border-radius: 6px;
    margin: 1rem 10px;
}

.pdf-link:hover {
    background-color: #555;
    color:white;
    text-decoration: none;
}

.contact-info {
    margin-bottom: 2rem;
}

.year-group {
    margin-bottom: 1.5rem;
}

.year-group h4 {
    margin-bottom: 0.5rem;
    color: #666;
}

section {
    margin-bottom: 2rem;
}

section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Teaching Documents List */
.document-list {
    list-style-type: none;
    padding-left: 0;
}

.document-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
}

.document-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* Password Protection */
.password-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.password-input {
    padding: 0.5rem;
    margin: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.password-button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.password-button:hover {
    background-color: #555;
}

.error-message {
    color: red;
    margin-top: 0.5rem;
    display: none;
}

/* Design Projects Styles */
.project {
    margin-bottom: 2rem;
    max-width: 780px;
}

.project img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.project p {
    margin: 0.5rem 0;
}

.project .quote {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

/* Image Styles */
.full-width-image {
    width: 90%;
    height: auto;
    margin: 2em 0;
}
.full-width-image img {
    width:100%;
    height:auto;
}


.fixed-height-image {
    height: 380px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    margin: 3em 0 0 0;
}
.fixed-height-image img {
    height: 100%;
    width: auto;
}

.bit-taller-image {
    height: 480px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    margin: 3em 0 0 0;
}
.bit-taller-image img {
    height: 100%;
    width: auto;
}



.image-pair {
    display: flex;
    gap: 5px;
    margin: 3em 0 0 0;
    height: 420px;
    justify-content: left;
    max-width: 100%;
    overflow: hidden;
}

.image-pair img {
    height: 100%;
    width: auto;
    object-fit: contain;
}


.image-quad {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 3em 0 0 0;
    max-width: 100%;
    overflow: hidden;
}

.image-quad-row {
    display: flex;
    gap: 5px;
    height: 350px;
    justify-content: left;
    max-width: 100%;
}

.image-quad-row img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Student Work Gallery */
.student-work-gallery {
    display: flex;
    gap: 10px;
    margin-top: 1em;
}

.student-work-gallery img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Mobile overrides placed at end to win cascade */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    #main_content {
        max-width: 100%;
    }

    .page-content {
        width: 100%;
        padding-right: 0;
    }

    /* Review page screenshot blocks */
    .screenshot-1col,
    .screenshot-2col {
        width: 100%;
        max-width: 100%;
    }

    .screenshot-1col img,
    .screenshot-2col img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Photography/Collaborative/Multimedia image stacks */
    .content img {
        max-width: 100%;
        height: auto;
    }

    .fixed-height-image {
        height: auto;
        width: 100%;
        max-width: 100%;
        margin: 1.5em 0 0 0;
    }

    .fixed-height-image img {
        width: 100%;
        height: auto;
    }

    .bit-taller-image {
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .bit-taller-image img {
        width: 100%;
        height: auto;
    }

    .image-pair {
        height: auto;
        display: block;
        gap: 0;
    }

    .image-pair img {
        width: 100%;
        height: auto;
        margin-top: 0.75em;
    }

    /* Teaching project descriptions image row */
    .student-work-gallery {
        display: block;
        height: auto;
    }

    .student-work-gallery img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 0.75em;
    }
}