:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --heading-color: #E6E6FA;
    /* Default Lavender */
    --accent-color: #E6E6FA;
    --header-bg: rgba(0, 0, 0, 0.95);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: 90px;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
}

#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    z-index: 800;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border-right: 2px solid white;
    padding: 20px 8px;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
}

.donation-banner span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: white;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.donation-banner:hover {
    padding-right: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.donation-banner:hover span {
    opacity: 1;
}

@media (max-width: 768px) {
    .donation-banner {
        padding: 15px 5px;
    }

    .donation-banner span {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.5rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    letter-spacing: 0.15em;
    color: white;
    text-transform: none;
    white-space: nowrap;
    text-align: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-divider {
    color: var(--text-color);
    opacity: 0.3;
    font-size: 0.75rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s;
    font-weight: 500;
    opacity: 0.6;
}

.main-nav a:hover {
    color: var(--accent-color);
    opacity: 1;
    letter-spacing: 0.25em;
}

/* HERO Section - Fixed while sliding */
.hero-fixed {
    text-align: center;
    padding: 1rem 1rem 0;
    max-width: 90%;
    margin: 0 auto;
}

.hero-fixed h1,
.hero-fixed p {
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-hidden {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(10px);
}

.hero-fixed h1 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--heading-color);
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.hero-fixed p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.hero-fixed p {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

/* SLIDER ARCHITECTURE */
.main-slider {
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    width: 300vw;
    /* 3 galleries */
}

.gallery-pane {
    width: 100vw;
    flex-shrink: 0;
    padding-top: 1rem;
}

/* Mosaic Gallery Layout */
.gallery {
    column-count: 4;
    column-gap: 8px;
    padding: 0 8px;
    max-width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 8px;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease, filter 0.5s ease;
    cursor: zoom-in;
    filter: brightness(1.05) contrast(0.95) sepia(0.1);
}

.gallery-item img:hover {
    transform: scale(1.02);
}

/* Floating Selector */
.gallery-selector {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    padding: 10px 15px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: fit-content;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-header {
    text-align: center;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--heading-color);
    margin-bottom: 6px;
    font-weight: 700;
    opacity: 0.9;
}

.selector-inner {
    display: flex;
    gap: 5px;
}

.selector-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.selector-btn.active {
    background: var(--heading-color);
    color: #fff;
}

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 8rem auto;
    padding: 0 2rem;
    text-align: center;
}

.content-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-style: italic;
}

footer {
    text-align: center;
    padding: 3rem;
    font-size: 0.7rem;
    color: var(--heading-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 30px 60px rgba(136, 14, 79, 0.2);
    object-fit: contain;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--heading-color);
    cursor: pointer;
    padding: 2rem;
    user-select: none;
}

.lightbox-nav.prev {
    left: 0;
}

.lightbox-nav.next {
    right: 0;
}

.close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--heading-color);
}

@media (max-width: 1024px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
        padding: 0 5px;
        column-gap: 5px;
    }

    .gallery-item {
        margin-bottom: 5px;
    }

    .hero-fixed h1 {
        font-size: 2.5rem;
    }

    .gallery-selector {
        bottom: 20px;
        width: calc(100% - 30px);
        padding: 12px 10px;
    }

    .selector-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .selector-btn {
        padding: 8px 4px;
        font-size: 0.6rem;
    }

    .lightbox-nav {
        display: none;
    }
}