@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* PP Fragment Serif */
@font-face {
    font-family: 'PP Fragment Serif';
    src: url('./fonts/PP Fragment/otf/PPFragment-SerifLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Serif';
    src: url('./fonts/PP Fragment/otf/PPFragment-SerifLightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'PP Fragment Serif';
    src: url('./fonts/PP Fragment/otf/PPFragment-SerifRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Serif';
    src: url('./fonts/PP Fragment/otf/PPFragment-SerifRegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'PP Fragment Serif';
    src: url('./fonts/PP Fragment/otf/PPFragment-SerifExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Serif';
    src: url('./fonts/PP Fragment/otf/PPFragment-SerifExtraBoldItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

/* PP Fragment Sans */
@font-face {
    font-family: 'PP Fragment Sans';
    src: url('./fonts/PP Fragment/otf/PPFragment-SansLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Sans';
    src: url('./fonts/PP Fragment/otf/PPFragment-SansLightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'PP Fragment Sans';
    src: url('./fonts/PP Fragment/otf/PPFragment-SansRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Sans';
    src: url('./fonts/PP Fragment/otf/PPFragment-SansRegularitalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'PP Fragment Sans';
    src: url('./fonts/PP Fragment/otf/PPFragment-SansExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Sans';
    src: url('./fonts/PP Fragment/otf/PPFragment-SansExtraBoldItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

/* PP Fragment Glare */
@font-face {
    font-family: 'PP Fragment Glare';
    src: url('./fonts/PP Fragment/otf/PPFragment-GlareLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Glare';
    src: url('./fonts/PP Fragment/otf/PPFragment-GlareLightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'PP Fragment Glare';
    src: url('./fonts/PP Fragment/otf/PPFragment-GlareRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Glare';
    src: url('./fonts/PP Fragment/otf/PPFragment-GlareRegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'PP Fragment Glare';
    src: url('./fonts/PP Fragment/otf/PPFragment-GlareExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'PP Fragment Glare';
    src: url('./fonts/PP Fragment/otf/PPFragment-GlareExtraBoldItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

:root {
    --bg-primary: #070707;
    --bg-secondary: #121212;
    --bg-card: #181818;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --text-muted: #6e6e73;
    --accent: #ffffff; /* Monochrome White */
    --accent-hover: #e5e5e5;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'PP Fragment Serif', 'PP Fragment', 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'PP Fragment Sans', 'PP Fragment', 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    /* PP Fragment Sans as the universal body font */
    font-family: 'PP Fragment Sans', 'PP Fragment', system-ui, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Navigation uses the Glare variant for a refined editorial feel */
.logo, header nav, .nav-links a {
    font-family: 'PP Fragment Glare', 'PP Fragment Serif', serif;
}

/* All body copy: PP Fragment Sans Light */
p, li, blockquote, .bio-text, .contact-text, .footer-copy, label, input, textarea {
    font-family: 'PP Fragment Sans', system-ui, sans-serif;
    font-weight: 300;
}

/* Headings: PP Fragment Serif */
h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Section labels / subtitles: PP Fragment Glare */
.section-subtitle, .lineage-meta, .lineage-title, .hero-subtitle, .filter-btn {
    font-family: 'PP Fragment Glare', serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Layout container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 7, 7, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                opacity 0.5s ease;
}

/* Hidden above the hero — slides up out of view */
header.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(7, 7, 7, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    height: 60px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

/* Mobile Menu Trigger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-smooth);
        pointer-events: none;
        border-top: 1px solid var(--border);
    }

    header.scrolled .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 20px;
}

/* =====================================================
   Hero Title Morph Animation
   ===================================================== */

/* The container: establishes the stacking context */
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    position: relative;
    display: block;
    /* Reserve height from the tallest variant (ExtraBold) */
    min-height: 1.1em;
}

/* Each layer is absolutely stacked on top of each other */
.hero-title-layer {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    white-space: nowrap;
    transition: none;
    will-change: opacity;
    letter-spacing: -0.01em;
}

/* First layer is the "resting" reference for document flow */
.hero-title-layer:first-child {
    position: relative;
    opacity: 0;
}

/* Individual font styles for each layer */
.hero-title-layer[data-variant="serif-light"]          { font-family: 'PP Fragment Serif', serif; font-weight: 300; font-style: normal; }
.hero-title-layer[data-variant="serif-light-italic"]   { font-family: 'PP Fragment Serif', serif; font-weight: 300; font-style: italic; }
.hero-title-layer[data-variant="serif-regular"]        { font-family: 'PP Fragment Serif', serif; font-weight: 400; font-style: normal; }
.hero-title-layer[data-variant="serif-regular-italic"] { font-family: 'PP Fragment Serif', serif; font-weight: 400; font-style: italic; }
.hero-title-layer[data-variant="serif-bold"]           { font-family: 'PP Fragment Serif', serif; font-weight: 800; font-style: normal; }
.hero-title-layer[data-variant="serif-bold-italic"]    { font-family: 'PP Fragment Serif', serif; font-weight: 800; font-style: italic; }
.hero-title-layer[data-variant="sans-light"]           { font-family: 'PP Fragment Sans', sans-serif; font-weight: 300; font-style: normal; }
.hero-title-layer[data-variant="sans-light-italic"]    { font-family: 'PP Fragment Sans', sans-serif; font-weight: 300; font-style: italic; }
.hero-title-layer[data-variant="sans-regular"]         { font-family: 'PP Fragment Sans', sans-serif; font-weight: 400; font-style: normal; }
.hero-title-layer[data-variant="sans-bold"]            { font-family: 'PP Fragment Sans', sans-serif; font-weight: 800; font-style: normal; }
.hero-title-layer[data-variant="sans-bold-italic"]     { font-family: 'PP Fragment Sans', sans-serif; font-weight: 800; font-style: italic; }
.hero-title-layer[data-variant="glare-light"]          { font-family: 'PP Fragment Glare', serif; font-weight: 300; font-style: normal; }
.hero-title-layer[data-variant="glare-light-italic"]   { font-family: 'PP Fragment Glare', serif; font-weight: 300; font-style: italic; }
.hero-title-layer[data-variant="glare-bold"]           { font-family: 'PP Fragment Glare', serif; font-weight: 800; font-style: normal; }
.hero-title-layer[data-variant="glare-bold-italic"]    { font-family: 'PP Fragment Glare', serif; font-weight: 800; font-style: italic; }

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}


.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #070707;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    margin-left: 20px;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .btn {
        display: block;
        text-align: center;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background-color: var(--border-strong);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transform: translateX(-100%);
    animation: scroll-anim 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scroll-anim {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Sections General */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 3rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* Biography & Lineage Section */
.bio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 992px) {
    .bio-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 300;
}

.bio-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.bio-quote {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.3;
    font-style: italic;
    color: var(--accent);
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--accent);
}

.bio-portrait {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    filter: grayscale(15%);
}

@media (max-width: 768px) {
    .bio-quote {
        font-size: 1.7rem;
    }
}

.lineage-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 40px;
    position: relative;
}

.lineage-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.lineage-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.lineage-highlight {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    margin-top: 25px;
}

.lineage-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 5px;
}

.lineage-subject {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* ─── Past Exhibitions ─────────────────────────────────────── */
.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .exhibitions-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.exhibition-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exhibition-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-secondary);
}

.exhibition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibition-card:hover .exhibition-image {
    transform: scale(1.04);
}

.exhibition-year-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background-color: rgba(7, 7, 7, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-family: 'PP Fragment Glare', serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
}

.exhibition-info {
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.exhibition-label {
    display: block;
    font-family: 'PP Fragment Glare', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.exhibition-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.exhibition-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}


.gallery-filters {
    display: flex;
    gap: 30px;
    list-style: none;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 5px 0;
    position: relative;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.filter-btn.active {
    color: var(--text-primary);
}

.filter-btn.active::after {
    width: 100%;
}

/* Masonry Grid */
.gallery-grid {
    column-count: 3;
    column-gap: 24px;
    width: 100%;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.gallery-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0d0d0d;
}

.gallery-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
    background-color: var(--bg-card);
}

.gallery-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.gallery-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-year {
    color: var(--accent);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 7, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay-icon {
    transform: scale(1);
    background-color: var(--accent);
    color: #070707;
    border-color: var(--accent);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(7, 7, 7, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2010;
    padding: 20px;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.lightbox-nav:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-close {
        right: 20px;
        top: 20px;
    }
    .lightbox-nav {
        display: none; /* Hide visual nav on mobile, use swipe / bottom controls */
    }
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 85%;
    position: relative;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open .lightbox-image-container img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-info {
    text-align: center;
    margin-top: 30px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.lightbox.open .lightbox-info {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.lightbox-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lightbox-details span {
    color: var(--accent);
}

.lightbox-mobile-controls {
    display: none;
    margin-top: 20px;
    gap: 30px;
}

@media (max-width: 768px) {
    .lightbox-mobile-controls {
        display: flex;
    }
    
    .lightbox-mobile-btn {
        background: none;
        border: 1px solid var(--border-strong);
        color: var(--text-primary);
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

/* Contact / Inquiries Section */
.contact-layout {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 300;
}

.contact-item span {
    color: var(--accent);
    font-family: var(--font-serif);
    font-style: italic;
}

.contact-item:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Scroll Fade In Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}
