/* 
    Swiss Reduce Aesthetics (Restored)
*/
:root {
    --bg-color: #f7f7f5; /* Slight off-white for classic print feel */
    --text-color: #0f0f0f;
    --text-light: #555555;
    --border-color: #0f0f0f;
    --font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body, html {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    width: 100%;
    text-transform: uppercase;
    /* Removed height: 100% to fix position: sticky for header */
}

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

/* 
    Header (Swiss Style)
*/
header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    font-family: var(--font-sans);
    text-transform: none; /* Keep CheGu as normal case */
}

.series-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-btn {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.menu-btn:hover {
    text-decoration: underline;
}

/* 
    Home Gallery (Strict Grid)
*/
.home-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Strict border grid */
    border-bottom: 1px solid var(--border-color);
}

.home-gallery-item {
    position: relative;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
/* Remove right border for the last item in a row */
.home-gallery-item:nth-child(3n) {
    border-right: none;
}

.home-gallery-item .image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #eee;
    border-bottom: 1px solid var(--border-color);
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(100%);
}

.home-gallery-item:hover img {
    filter: grayscale(0%);
}

.home-gallery-item:hover .title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.home-gallery-item .item-meta {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-meta .title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.item-meta .arrow {
    font-size: 1.5rem;
    font-weight: 300;
}

/* 
    Series Page
*/
.series-page {
    /* Natural scrolling allowed */
}

.slideshow-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.series-info {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.series-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    max-width: 900px;
}

.series-info strong {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
}

/* Make the first paragraph (usually title) massive and brutalist */
.series-info p:first-of-type {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 3rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    max-width: 100%;
}

.gallery-layout {
    display: flex;
    flex-direction: row;
    height: 85vh; /* Massive gallery height */
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.hero-view {
    flex-grow: 1;
    height: 100%;
    border-right: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    background-color: #f7f7f5;
}

.hero-view img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: opacity 0.3s ease;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(247, 247, 245, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 15, 15, 0.15);
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.35;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.hero-view:hover .nav-arrow {
    opacity: 0.8;
}

.nav-arrow:hover {
    opacity: 1 !important;
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-50%) scale(1.05);
}

.left-arrow { left: 1.5rem; }
.right-arrow { right: 1.5rem; }

.thumbnail-strip-container {
    width: 180px; /* Fixed width for the right sidebar */
    height: 100%;
    padding: 2rem 1.5rem;
    background-color: var(--bg-color);
    overflow-y: auto; /* Scroll vertically */
}

/* Custom scrollbar for vertical thumbnails */
.thumbnail-strip-container::-webkit-scrollbar {
    width: 2px;
}
.thumbnail-strip-container::-webkit-scrollbar-track {
    background: #e0e0e0;
}
.thumbnail-strip-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.thumbnail-strip {
    display: flex;
    flex-direction: column; /* Stack thumbnails vertically */
    gap: 1.5rem;
    width: 100%;
}

.thumb {
    width: 100%; /* Fill container width */
    height: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 1px solid transparent;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    opacity: 1;
    border: 1px solid var(--border-color);
}

/* 
    Menu Overlay 
*/
/* 
    Static Pages (About, Contact)
*/
.static-page {
    /* natural scroll */
}
.static-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
}
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: start;
}
.about-wrapper .about-img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.static-content {
    width: 100%;
    max-width: 800px;
}
.static-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.static-content strong {
    font-weight: 700;
}
.static-content p:first-of-type {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

/* Scroll Banner */
.scroll-prompt-banner {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-color);
    background-color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.scroll-prompt-banner span {
    display: inline-block;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(3px); }
    60% { transform: translateY(1px); }
}

/* Contact Page Styles */
.contact-wrapper {
    width: 100%;
    max-width: 800px;
}
.contact-header {
    margin-bottom: 5rem;
}
.contact-header h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.contact-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 2rem;
}
.contact-item {
    display: flex;
    flex-direction: column;
}
.contact-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.contact-link, .contact-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}
.contact-link:hover {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-header h1 {
        font-size: 3rem;
    }
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.menu-header span {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.close-menu {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

.close-menu:hover {
    text-decoration: underline;
}

.menu-nav {
    flex-grow: 1;
    overflow-y: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.nav-links a {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--text-color);
    display: block;
    padding: 1rem 0;
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s, color 0.4s;
}

.nav-links a:hover, .nav-links a.active {
    padding-left: 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* 
    Lightbox Modal (Clean & Non-Intrusive)
*/
.lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(247, 247, 245, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: calc(100vw - 160px);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.lb-arrow {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 200;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.15;
    transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
    z-index: 1005;
}

.lb-arrow:hover {
    opacity: 0.85;
    background: rgba(15, 15, 15, 0.04);
}

.lb-prev {
    left: 0;
}

.lb-next {
    right: 0;
}

.close-lightbox {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.2rem;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    z-index: 1010;
    color: var(--text-color);
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.close-lightbox:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .home-gallery { grid-template-columns: 1fr; }
    .home-gallery-item { border-right: none !important; }
    .nav-links a { font-size: 2.5rem; }
    
    .slideshow-container {
        flex-direction: column;
    }
    .series-info {
        width: 100%;
        height: auto;
        border-right: none;
        padding: 2rem 1.5rem;
    }
    .series-info p:first-of-type {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    .gallery-layout {
        flex-direction: column;
        height: auto;
    }
    .hero-view { 
        height: 60vh; 
        padding: 1rem; 
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .thumbnail-strip-container {
        width: 100%;
        height: auto;
        overflow-y: hidden;
        overflow-x: auto;
        padding: 1rem;
    }
    .thumbnail-strip-container::-webkit-scrollbar {
        height: 2px;
        width: auto;
    }
    .thumbnail-strip {
        flex-direction: row;
        width: max-content;
    }
    .thumb {
        height: 80px;
        width: auto;
    }
    .lightbox-content {
        max-width: 94vw;
        max-height: 82vh;
    }
    .lb-arrow {
        width: 48px;
        font-size: 1.6rem;
        opacity: 0.35;
    }
    .close-lightbox {
        top: 1rem;
        right: 1.25rem;
        font-size: 1.8rem;
    }
}

/* Tablet / Medium Screen dynamic adaptation */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-gallery { grid-template-columns: repeat(2, 1fr); }
    .home-gallery-item:nth-child(2n) { border-right: none; }
    .home-gallery-item:nth-child(3n) { border-right: 1px solid var(--border-color); }
    
    .gallery-layout {
        height: 60vh;
    }
    .series-info p:first-of-type {
        font-size: 2.5rem;
    }
}

/* Video Page Styles */
.video-header-intro {
    padding: 3.5rem 2rem 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.video-header-intro h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.video-header-intro p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 800px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.video-card {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.video-card:nth-child(2n) {
    border-right: none;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-meta {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.video-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.video-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-light);
    text-transform: uppercase;
    white-space: nowrap;
}

.video-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    text-transform: none;
    font-family: var(--font-sans);
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .video-card {
        border-right: none;
    }
    .video-header-intro h1 {
        font-size: 2.2rem;
    }
    .video-meta {
        padding: 1.25rem 1.5rem;
    }
}

.video-section-header {
    padding: 3rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.video-section-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .video-section-header {
        padding: 2rem 1.5rem 1.25rem 1.5rem;
    }
    .video-section-title {
        font-size: 1.8rem;
    }
}

/* Series Sub-Navigation Tabs */
.series-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.9rem 2rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}
.subnav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.subnav-link:hover {
    color: var(--text-color);
}
.subnav-link.active {
    color: var(--text-color);
    font-weight: 700;
    border-bottom: 2px solid var(--text-color);
}

/* Menu Overlay Nested Sub-Links */
.nav-links li.sub-link {
    padding-left: 1.5rem;
    font-size: 0.9em;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.nav-links li.sub-link:hover {
    opacity: 1;
}

/* About Additional Sections */
.about-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.about-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}
.about-section p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Series Chapter Grid (When main series has sub-pages) */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2.5rem 3vw;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}
.chapter-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}
.chapter-card:hover {
    transform: translateY(-2px);
}
.chapter-card .image-wrapper {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #181818;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}
.chapter-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.chapter-card:hover .image-wrapper img {
    transform: scale(1.03);
}
.chapter-card .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
}
.chapter-card .item-meta .count {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

