/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Header Styles - Leonardo Sani Style */
.header {
    background: rgba(255,255,255,1);
    position: relative;
    z-index: 1000;
    padding: 40px 8vw 20px 8vw;
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo {
    display: inline-block;
}

.header-logo h1 {
    font-family: 'Antic Didone', monospace;
    font-size: 1.8em;
    letter-spacing: 0.072em;
    text-transform: uppercase;
    font-weight: normal;
    margin: 0;
    color: #333;
}

.header-logo h1 a {
    text-decoration: none;
    color: #333;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-family: 'Antic Didone', monospace;
    font-size: 1em;
    letter-spacing: 0.07em;
    font-weight: normal;
    line-height: 0.65em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
    margin-left: 40px;
}


.lang-btn {
    background: none;
    border: none;
    color: #666;
    padding: 0;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Antic Didone', monospace;
    text-transform: none;
    letter-spacing: 0.07em;
}

.lang-btn:hover {
    color: #333;
}

.lang-btn.active {
    color: #333;
    font-weight: normal;
}

.lang-separator {
    color: #666;
    font-family: 'Antic Didone', monospace;
    font-size: 1em;
    letter-spacing: 0.07em;
    margin: 0 0.5em;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.3s;
    display: block;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: normal;
}

/* Slideshow Section */
.slideshow-section {
    padding: 4vh 2.5vw 0vh 2.5vw;
    height: 80vh;
    position: relative;
    overflow: hidden;
    background-color: white;
    box-sizing: border-box;
    margin-top: 0em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    max-height: 70vh;
    min-height: 400px;
    background-color: white;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}




/* Blank Menu Section */
.blank-menu-section {
    padding: 4vh 0;
    background-color: white;
    text-align: center;
}

.blank-menu-content {
    /* Intentionally minimal for Leonardo Sani style */
    min-height: 1px;
}

/* Quote Section */
.quote-section {
    padding: 6vh 8vw;
    background-color: rgba(255,255,255,1);
    text-align: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-content {
    width: 100%;
    max-width: 1000px;
}

.main-quote {
    font-family: 'Antic Didone', monospace;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0;
    color: #333;
    animation: fadeInQuote 1s ease forwards;
    opacity: 0;
}

.quote-author {
    display: block;
    margin-top: 20px;
    font-size: 0.9em;
    font-style: normal;
    letter-spacing: 1px;
}

@keyframes fadeInQuote {
    to {
        opacity: 1;
    }
}


/* Bio Page - Leonardo Sani Style */
.bio-page-section {
    min-height: 100vh;
    padding: 0 8vw 8vh;
    background-color: white;
    display: flex;
    align-items: flex-start;
}

.bio-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.bio-page-content {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    max-width: 600px;
}

.bio-page-text p {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 0.83em;
    line-height: 1.6em;
    letter-spacing: 0.05em;
    color: #333;
    margin-bottom: 2em;
    text-align: left;
}

.bio-achievements {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #eee;
}

.bio-achievements h3 {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 1em;
}

.bio-achievements ul {
    list-style: none;
    padding: 0;
}

.bio-achievements li {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 12px;
    line-height: 1.6em;
    color: #333;
    margin-bottom: 0.8em;
}

.bio-achievements > div {
    margin-bottom: 2em;
}

.bio-achievements h3 {
    font-family: 'Antic Didone', monospace;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: normal;
    margin-bottom: 1em;
    color: #333;
}

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

.bio-achievements li {
    padding-left: 1em;
    position: relative;
    margin-bottom: 0.5em;
}

.bio-achievements li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #999;
}

.bio-achievements li span {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}


.bio-page-image {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.bio-page-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Footer Styles - Unified */
.footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 2rem 3rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left span {
    font-family: 'Antic Didone', monospace;
    font-size: 1em;
    color: #333;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(7,0,0,1);
    text-decoration: none;
    font-family: 'Antic Didone', monospace;
    font-size: 1em;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* Slide-in Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
}

.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Hero Text Section */
.hero-text {
    padding: 0vh 8vw 8vh 8vw;
    background-color: white;
    text-align: center;
}

.hero-quote {
    font-family: 'Antic Didone', monospace;
    font-size: 1.36em;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    color: #333;
}

.hero-quote-author {
    display: block;
    margin-top: 20px;
    font-size: 0.9em;
    font-style: normal;
    letter-spacing: 1px;
}

/* Hero Gallery Section */
.hero-gallery {
    padding: 0vh 8vw 8vh 8vw;
    background-color: white;
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 42px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-gallery-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.hero-gallery-item:hover {
    opacity: 0.7;
}

.hero-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}


/* Masonry Grid for Fine Art */
.masonry-grid {
    columns: 3;
    column-gap: 30px;
    margin-top: 50px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: scale(1.02);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.masonry-item:hover img {
    opacity: 0.8;
}

/* Bio Section */
.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 50px;
}

.bio-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
    font-size: 1.1rem;
}

.bio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Awards Section */
.awards-list {
    max-width: 1000px;
    margin: 50px auto 0;
}

.award-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.award-item:hover {
    background-color: #f9f9f9;
}

.award-year {
    font-size: 1.2rem;
    font-weight: bold;
    width: 100px;
    flex-shrink: 0;
    letter-spacing: 1px;
    color: #333;
}

.award-details h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #333;
}

.award-details p {
    color: #666;
    font-size: 1rem;
    font-style: italic;
}

/* Exhibitions Section */
.exhibitions-list {
    max-width: 1000px;
    margin: 50px auto 0;
}

.exhibition-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    position: relative;
}

.exhibition-item:hover {
    background-color: #f9f9f9;
}

.exhibition-year {
    font-size: 1.2rem;
    font-weight: bold;
    width: 100px;
    flex-shrink: 0;
    letter-spacing: 1px;
    color: #333;
}

.exhibition-details {
    flex: 1;
    position: relative;
}

.exhibition-details h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #333;
}

.exhibition-details p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
}

.exhibition-type {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #666;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #666;
    text-decoration: underline;
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 20px 0;
    height: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 4vw;
        min-height: 70px;
    }

    .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: 50px !important;
    }

    .hamburger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 50px !important;
        width: 40px !important;
        background-color: transparent !important;
        cursor: pointer !important;
        flex-direction: column !important;
        gap: 3px !important;
        padding: 10px 5px !important;
        z-index: 1001 !important;
        box-sizing: border-box !important;
        order: 1 !important;
    }

    .hamburger .hamburger-line {
        width: 20px !important;
        height: 2px !important;
        background-color: #333 !important;
        margin: 0 !important;
        display: block !important;
        border-radius: 0 !important;
        flex-shrink: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1002 !important;
        transition: none !important;
        transform: none !important;
    }

    .hamburger.active .hamburger-line:nth-child(1),
    .hamburger.active .hamburger-line:nth-child(2),
    .hamburger.active .hamburger-line:nth-child(3) {
        opacity: 1 !important;
        transform: none !important;
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        height: 50px;
        flex: 1;
        order: 2;
    }

    .header-logo h1 {
        font-size: 1.3em !important;
        letter-spacing: 0.02em !important;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1;
    }

    .language-selector {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 2px !important;
        height: 50px !important;
        width: 80px !important;
        padding: 0 5px !important;
        order: 3 !important;
    }

    .lang-btn {
        font-size: 0.65em;
        padding: 0;
        min-width: 0;
    }

    .lang-separator {
        font-size: 0.65em;
    }

    .nav {
        display: none !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background-color: white !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 40px 0 !important;
        gap: 30px !important;
        z-index: 9999 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;

        /* Hidden by default - FORCE OVERRIDE */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: red !important;
        border: 5px solid blue !important;
    }

    .nav-link {
        font-size: 1.46em;
        line-height: 1.7em;
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .slideshow-section {
        padding: 2vh 2.5vw 0vh 2.5vw;
        height: 70vh;
    }

    /* Mobile responsive adjustments */
    .slideshow-container {
        aspect-ratio: 3/2;
        max-height: 60vh;
    }

    .blank-menu-section {
        padding: 3vh 0;
    }

    .quote-section {
        padding: 4vh 5vw;
        min-height: 25vh;
    }

    .main-quote {
        font-size: 1.0em;
        line-height: 1.3;
    }


    .bio-page-section {
        padding: 0 6vw 6vh;
    }

    .bio-page-container {
        grid-template-columns: 1fr;
        gap: 6vh;
    }

    .bio-page-text p {
        font-size: 0.75em;
        line-height: 1.5em;
    }


    .bio-page-image img {
        height: auto;
        max-width: 100%;
    }

    .footer {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .slide-content {
        bottom: 30px;
        left: 20px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }


    .masonry-grid {
        columns: 2;
        column-gap: 20px;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 1;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .horizontal-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Series Page Styles */
.series-page-section {
    min-height: 100vh;
    padding: 12vh 5vw 8vh;
    background-color: #fff;
}

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

.series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
    margin-top: 4vh;
}

.series-item {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.series-item:nth-child(1) { animation-delay: 0.1s; }
.series-item:nth-child(2) { animation-delay: 0.2s; }
.series-item:nth-child(3) { animation-delay: 0.3s; }
.series-item:nth-child(4) { animation-delay: 0.4s; }

.series-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.series-item a:hover {
    transform: translateY(-5px);
}

.series-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 1.5em;
}

.series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.series-item a:hover .series-image img {
    opacity: 0.85;
}

.series-info h3 {
    font-family: 'Antic Didone', monospace;
    font-size: 1.2em;
    font-weight: normal;
    color: #333;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.series-info p {
    font-family: 'Antic Didone', monospace;
    font-size: 0.9em;
    line-height: 1.5em;
    color: #666;
    margin-bottom: 0.5em;
}

.series-info p:first-of-type {
    color: #999;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile Styles for Series Page */
@media (max-width: 768px) {
    .series-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 8vw !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .series-page-section {
        padding: 10vh 5vw 6vh;
    }

    .series-item {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
        float: none !important;
    }

    .series-item:nth-child(1) { grid-row: 1; grid-column: 1; }
    .series-item:nth-child(2) { grid-row: 2; grid-column: 1; }
    .series-item:nth-child(3) { grid-row: 3; grid-column: 1; }
    .series-item:nth-child(4) { grid-row: 4; grid-column: 1; }

    /* 画像とテキストのモバイル調整 */
    .series-item img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .series-item h3,
    .series-item p {
        text-align: center !important;
        width: 100% !important;
    }
}

/* Individual Project Page Styles */
.project-header-section {
    padding: 12vh 5vw 8vh;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.project-header-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2vw;
}

.project-title h1 {
    font-family: 'Antic Didone', monospace;
    font-size: 2.01em;
    font-weight: normal;
    color: #333;
    margin-bottom: 0.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-year {
    font-family: 'Antic Didone', monospace;
    font-size: 1em;
    color: #999;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2em;
}

.project-description p {
    font-family: 'Antic Didone', monospace;
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
    margin-bottom: 1.5em;
    text-align: left;
}

/* Project Gallery Styles */
.project-gallery-section {
    padding: 3.5vh 8vw 8vh;
    background-color: #fff;
}

.project-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw 1.5vw;
    margin-top: 3em;
    margin-bottom: 0em;
    grid-auto-rows: 1fr;
}

.gallery-item {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.gallery-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(even) {
    animation-delay: 0.2s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Horizontal images span 2 columns like Leonardo Sani */
.gallery-item.horizontal {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

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

.gallery-item:hover img {
    opacity: 0.9;
}

/* Serie Page - Leonardo Sani Exact Structure */
.serie-title-section {
    text-align: center;
    padding: 8vh 0 6vh;
}

.serie-page-title {
    font-size: 2.01em;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(2,0,0,1);
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
}

.serie-page-section {
    padding: 0 8vw 8vh;
}

.serie-page-container {
    width: 100%;
}

.serie-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
    margin-top: 3em;
    margin-bottom: 0em;
}

.serie-page-item {
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.serie-page-item:hover {
    opacity: 0.7;
}

.serie-page-item a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.serie-page-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 1em;
}

.serie-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.serie-page-caption {
    text-align: center;
    padding: 0;
}

.serie-page-caption h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    color: rgba(2,0,0,1);
}

.serie-page-caption p {
    font-size: 0.9rem;
    color: rgba(2,0,0,0.7);
    line-height: 1.4em;
    font-family: 'Antic Didone', monospace;
}

/* Animation for Serie Page */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles for Project Pages */
@media (max-width: 768px) {
    .project-header-container {
        grid-template-columns: 1fr;
        gap: 4vh;
    }

    .project-title h1 {
        font-size: 2em;
    }

    .project-description p {
        font-size: 0.9em;
        text-align: left;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    /* Serie Page Mobile Styles */
    .serie-title-section {
        padding: 4vh 0 4vh;
    }

    .serie-page-title {
        font-size: 1.5em;
    }

    .serie-page-section {
        padding: 0 6vw 6vh;
    }

    .serie-page-grid {
        grid-template-columns: 1fr !important;
        gap: 6vw !important;
        margin-top: 2em;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .serie-page-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .serie-page-image {
        margin-bottom: 1em;
        width: 100%;
    }

    .serie-page-image img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .serie-page-caption h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }

    .serie-page-caption p {
        display: none !important;
    }

    .project-header-section {
        padding: 10vh 5vw 6vh;
    }

    .contact-page-section {
        padding: 0 6vw 6vh;
    }

    .contact-page-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
        order: 2;
    }

    .contact-form-section {
        order: 1;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .contact-name {
        font-size: 1.5rem;
    }
}

/* Contact Page Styles - Leonardo Sani Structure */
.contact-page-section {
    min-height: 70vh;
    padding: 0 8vw 8vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-page-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
    align-items: flex-start;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* Contact Information Section */
.contact-info {
    flex: 1;
    text-align: right;
}

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

.contact-name {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.location,
.email {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.email a {
    color: inherit;
    text-decoration: none;
}

.email a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    margin-top: 0.5rem;
}

.social-icon {
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 0.8rem;
    text-decoration: none;
    color: rgba(2, 0, 0, 1);
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.social-icon:hover {
    color: #089FDA;
}

/* Contact Form Section */
.contact-form-section {
    flex: 1;
    max-width: 800px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 0;
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 1.1em;
    border: 0;
    border-bottom: 1px solid rgba(2, 0, 0, 0.2);
    background-color: transparent;
    color: rgba(2, 0, 0, 1);
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-textarea {
    width: 100%;
    padding: 0.8rem 0;
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 1.1em;
    border: 0;
    border-bottom: 1px solid rgba(2, 0, 0, 0.2);
    background-color: transparent;
    color: rgba(2, 0, 0, 1);
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 120px;
    resize: vertical;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    border-bottom-color: #089FDA;
}

.form-button {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-family: 'Antic Didone', 'Noto Serif JP', serif;
    font-size: 1.2em;
    background-color: rgba(2, 0, 0, 1);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-button:hover {
    background-color: #089FDA;
}

/* News Section - Series Title Style */
.news-section {
    padding: 0;
    background: #ffffff;
}

.news-title-section {
    padding: 5vh 0 1vh 6rem;
    text-align: left;
    max-width: none;
    margin: 0;
    width: 100%;
}

.news-title {
    font-family: 'Antic Didone', serif;
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 1.5em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(74,74,74,1);
}

.news-container {
    padding: 0 3rem 5vh;
    max-width: none;
    margin: 0;
    margin-top: -1vh;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 65%;
    margin: 0 1.25% 0 19%;
}

.news-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.91em;
    line-height: 1.8em;
    color: rgba(74, 74, 74, 1);
    padding: 1.5rem;
    border-left: 3px solid rgba(74, 74, 74, 0.3);
    background: rgba(74, 74, 74, 0.02);
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.8em;
}

.news-item:empty {
    display: none;
}

@media screen and (max-width: 768px) {
    .news-title-section {
        padding: 3vh 1rem 2vh 2rem;
    }

    .news-title {
        font-size: 1.4em;
        margin-bottom: 1.2em;
        letter-spacing: 0.05em;
    }

    .news-container {
        padding: 0 1rem 3vh;
        margin-top: -1vh;
    }

    .news-content {
        width: 75%;
        margin-left: 10%;
        padding-right: 0.625%;
    }

    .news-item {
        font-size: 0.85em;
        line-height: 1.6em;
        padding: 1rem;
        margin-bottom: 1.4em;
    }
}

/* Series Project Page Text Styles */
.series-description {
    width: 65%;
    margin: 0 1.25% 0 19%;
    line-height: 1.8em;
    font-size: 0.91em;
    color: rgba(74,74,74,1) !important;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 300;
    visibility: visible !important;
    opacity: 1 !important;
}

.series-description p {
    margin-bottom: 1.8em;
    color: rgba(74,74,74,1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.series-description p:last-child {
    margin-bottom: 0.5em;
}

.series-header {
    padding: 5vh 0 1vh 6rem;
    text-align: left;
    max-width: none;
    margin: 0;
    width: 100%;
}

.series-title {
    font-family: 'Antic Didone', serif;
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 1.5em;
    color: rgba(74,74,74,1);
    letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
    .series-description {
        font-size: 0.85em;
        line-height: 1.6em;
        width: 75%;
        margin-left: 10%;
        padding-right: 0.625%;
    }

    .series-description p {
        margin-bottom: 1.4em;
    }

    .series-header {
        padding: 3vh 1rem 2vh 2rem;
    }

    .series-title {
        font-size: 1.4em;
        margin-bottom: 1.2em;
        letter-spacing: 0.05em;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
