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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navigation {
    background-color: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Banner Section */
.banner {
    width: 100%;
    height: 70vh;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    background-image: url('images/banner/banner-image.jpeg');
    background-size: cover;
    background-position: center calc(50% + 100px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23333"/></svg>');
    background-size: 200px 200px;
    opacity: 0.8;
}

.banner-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.artist-name {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.artist-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #b0b0b0;
    letter-spacing: 0.05em;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
}

.gallery-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.gallery-container::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.gallery-item {
    flex: 0 0 300px;
    height: 300px;
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-image::before {
    content: '';
    width: 80%;
    height: 80%;
    background: repeating-linear-gradient(
        45deg,
        #4a4a4a,
        #4a4a4a 10px,
        #3a3a3a 10px,
        #3a3a3a 20px
    );
    opacity: 0.3;
}

/* Gallery Images */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-image-zoomed {
    transform: scale(1.225);
    transform-origin: center-350px;
}

/* Gallery Page Main Layout */
.gallery-container-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Page Sections */
.home-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    border-top: 1px solid #2a2a2a;
}

.home-section:nth-of-type(even) {
    background-color: #141414;
}

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

.home-section-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

.home-intro-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #d0d0d0;
}

.home-intro-highlight {
    font-weight: 500;
    color: #ffffff;
}

.home-intro-meta {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-top: 1.5rem;
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background-color: #222;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.home-button.primary {
    background-color: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

.home-button.secondary {
    background-color: transparent;
}

.home-button.tertiary {
    background-color: #2a2a2a;
}

.home-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background-color: #333333;
}

.home-button.primary:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.home-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.home-series-card {
    background-color: #222222;
    border-radius: 6px;
    border: 1px solid #333333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: #555555;
}

.home-series-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.home-series-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-series-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.home-series-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.home-series-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #c8c8c8;
    margin-bottom: 1.25rem;
}

.home-series-meta {
    font-size: 0.9rem;
    color: #9a9a9a;
}

.home-link-inline {
    color: #f0f0f0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.home-link-inline:hover {
    color: #ffffff;
}

.gallery-main-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.gallery-filter-section {
    margin-bottom: 4rem;
}

.gallery-filter-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: #e0e0e0;
    text-transform: uppercase;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 1rem;
}

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

.gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item-link:hover .gallery-item {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item-link .gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff;
    padding: 1.5rem 1rem 1rem;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Detail Pages (Series/Year) */
.detail-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    flex: 1;
    min-height: calc(100vh - 200px);
}

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

.detail-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.detail-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    align-items: start;
}

.detail-gallery .gallery-item {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-gallery .gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Scale images based on their actual dimensions (1cm ≈ 12px for display) */
.detail-gallery .gallery-image[data-width][data-height] {
    /* Images will scale proportionally based on data attributes */
    width: auto;
    height: auto;
}

/* Detail works layout */
.detail-work {
    margin-bottom: 3rem;
    border-top: 1px solid #2a2a2a;
    padding-top: 2rem;
}

.detail-work:first-of-type {
    border-top: none;
    padding-top: 0;
}

.detail-separator {
    border-bottom: 1px solid #2a2a2a;
    margin: 3rem 0;
}

.detail-row {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.detail-row-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-row .detail-work {
    border-top: none;
    padding-top: 0;
    margin-bottom: 0;
}

.detail-work-info {
    margin-bottom: 1.5rem;
}

.detail-work-title {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.detail-work-meta {
    font-size: 1rem;
    color: #b0b0b0;
}

.detail-gallery-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-image-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #c0c0c0;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #0f0f0f;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #2a2a2a;
}

.footer p {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* About Page */
.about-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    flex: 1;
}

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

.about-main {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #ffffff;
    text-transform: uppercase;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 0 0 400px;
}

.artist-photo {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.artist-photo::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, #4a4a4a 0%, #3a3a3a 100%);
    border-radius: 50%;
    opacity: 0.5;
}

.artist-photo::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 35%;
    width: 30%;
    height: 25%;
    background: #4a4a4a;
    border-radius: 50%;
    opacity: 0.7;
}

/* Artist Photo as Image Tag */
.about-image img.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.about-additional {
    max-width: 100%;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
}

.about-additional p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.about-additional a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.about-additional a:hover {
    color: #b0b0b0;
}

/* Contact Page */
.contact-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    flex: 1;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.contact-form {
    background-color: #2a2a2a;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-file {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.form-file::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.form-file::file-selector-button:hover {
    background-color: #4a4a4a;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.form-submit:hover:not(:disabled) {
    background-color: #4a4a4a;
    transform: translateY(-2px);
}

.form-submit:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #2a4a2a;
    border: 1px solid #3a6a3a;
    color: #a0e0a0;
}

.form-message.error {
    display: block;
    background-color: #4a2a2a;
    border: 1px solid #6a3a3a;
    color: #e0a0a0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-media {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-placeholder {
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-placeholder::before {
    width: 70%;
    height: 70%;
}

.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #4a4a4a;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.lightbox-close:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .artist-name {
        font-size: 2.5rem;
    }

    .artist-subtitle {
        font-size: 1.2rem;
    }

    .banner {
        height: 50vh;
    }

    .gallery-item {
        flex: 0 0 220px;
        height: 220px;
    }

    .gallery-section {
        padding: 2rem 1rem;
    }

    .home-section {
        padding: 2.5rem 1.5rem;
    }

    .home-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-button {
        flex: 1 1 100%;
        justify-content: center;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .about-main {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about-image {
        flex: 1;
        width: 100%;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-section {
        padding: 2rem 1rem;
    }

    .about-additional {
        padding-top: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .gallery-main-title {
        font-size: 2rem;
    }

    .gallery-filter-title {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item-label {
        padding: 1rem 0.5rem 0.5rem;
        font-size: 0.95rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-description {
        font-size: 1rem;
    }

    .detail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .detail-gallery .gallery-image[data-width][data-height] {
        max-width: 100%;
        width: auto !important;
        height: auto;
    }

    .detail-row-three {
        grid-template-columns: 1fr;
    }

    .detail-row-two {
        grid-template-columns: 1fr;
    }
}

