:root {
    --highlight: #2e344e;
}

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

.forum-regular {
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f5f5f5;
}

nav {
    background-color: var(--highlight);
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-size: 1.3em;
    font-weight: normal;
}

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-brand a:hover {
    opacity: 0.9;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    font-size: 1.1em;
}

.nav-links a:hover {
    text-decoration: underline;
}

.banner {
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
}

.banner h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner .tagline {
    color: white;
    font-size: 1.51em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

h1 {
    color: var(--highlight);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: normal;
}

.tagline {
    text-align: center;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.artwork {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.artwork img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.artwork-info {
    padding: 15px;
    text-align: center;
    background: white;
}

.artwork-title {
    font-size: 1.4em;
    color: var(--highlight);
    margin-bottom: 8px;
    font-weight: 400;
}

.artwork-details {
    font-size: 0.9em;
    color: #666;
    line-height: 1.3;
}

.artwork-details p {
    margin: 0;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #333;
    color: white;
    margin-top: 60px;
}

/* About and Contact pages */
.container.narrow {
    max-width: 900px;
    padding: 60px 20px;
}

.content {
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content h1 {
    text-align: left;
    margin-bottom: .5rem;
    font-size: 1.5rem;
}

.content p {
    line-height: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* About page intro section */
.about-intro {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.portrait-image {
    border-radius: 50%;
    max-width: 10rem;
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    flex-shrink: 0;
}

.about-text h1 {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 0;
}

/* Mobile: stack portrait above text */
@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .portrait-image {
        max-width: 8rem;
        width: 8rem;
        height: 8rem;
    }

    .content h1 {
        text-align: center;
    }

    .about-text {
        width: 100%;
    }
}

.full-width-image {
    width: calc(100% + 120px);
    margin-left: -60px;
    margin-right: -60px;
    margin-top: 40px;
    padding: 0 4rem;
}

.full-width-image img {
    width: 100%;
    display: block;
    border-radius: 1rem;
}

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}
