 :root {
            --cream: #F5F2EB;
            --charcoal: #1A1A1A;
            --accent: #D4AF37;
            --gray: #666666;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--cream);
            color: var(--charcoal);
            line-height: 1.6;
        }

        h1, h2, h3 {
            font-family: 'Space Grotesk', sans-serif;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(245, 242, 235, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(26, 26, 26, 0.1);
            z-index: 1000;
            padding: 1.5rem 5%;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            text-decoration: none;
            color: var(--charcoal);
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--charcoal);
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Header */
        .page-header {
            padding: 140px 5% 60px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .page-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--gray);
            margin-bottom: 1rem;
            display: block;
        }

        .page-header h1 {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            margin-bottom: 1rem;
            line-height: 1.1;
        }

        .page-header h1 span {
            font-weight: 300;
            font-style: italic;
            color: var(--gray);
        }

        /* Filter */
        .filter-bar {
            padding: 0 5% 3rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .filter-list {
            display: flex;
            gap: 2rem;
            list-style: none;
            border-bottom: 1px solid rgba(26, 26, 26, 0.1);
            padding-bottom: 1rem;
            flex-wrap: wrap;
        }

        .filter-list a {
            text-decoration: none;
            color: var(--gray);
            font-size: 0.9rem;
            font-weight: 500;
            position: relative;
            padding-bottom: 1.2rem;
            margin-bottom: -1.2rem;
        }

        .filter-list a.active {
            color: var(--charcoal);
        }

        .filter-list a.active::after {
            content: '';
            position: absolute;
            bottom: 1px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--accent);
        }

        /* MASONRY GRID - The Fix */
        .portfolio-masonry {
            padding: 0 5% 100px;
            max-width: 1400px;
            margin: 0 auto;
            
            /* CSS Columns for true masonry */
            column-count: 2;
            column-gap: 2.5rem;
        }

        .portfolio-item {
            /* Prevent breaking across columns */
            break-inside: avoid;
            margin-bottom: 2.5rem;
            
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            transition: transform 0.4s, box-shadow 0.4s;
            position: relative;
            cursor: pointer;
        }

        .portfolio-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        }

        /* Image Container - NO FIXED HEIGHT */
        .portfolio-image {
            width: 100%;
            line-height: 0; /* Removes gap below image */
            overflow: hidden;
            position: relative;
        }

        /* The actual image - FULL SIZE, NO CROP */
        .portfolio-image img {
            width: 100%;
            height: auto; /* KEY: Natural height */
            display: block;
            transition: transform 0.6s ease;
        }

        .portfolio-item:hover .portfolio-image img {
            transform: scale(1.03);
        }

        /* Hover Overlay */
        .image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.4s;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 2rem;
            color: white;
        }

        .portfolio-item:hover .image-overlay {
            opacity: 1;
        }

        .view-btn {
            width: 50px;
            height: 50px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--charcoal);
            font-size: 1.2rem;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.3s;
        }

        .portfolio-item:hover .view-btn {
            transform: translate(-50%, -50%) scale(1);
        }

        .overlay-content h3 {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .overlay-content p {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .item-info {
            padding: 1.5rem;
        }

        .item-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .item-tag {
            background: var(--cream);
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }

        .item-year {
            color: var(--gray);
            font-size: 0.9rem;
        }

        .item-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
            a{
                text-decoration: none;
                color: var(--charcoal);
                text-decoration: underline;
            }
        }

        @media (max-width: 768px) {
            .portfolio-masonry {
                column-count: 1;
                column-gap: 1.5rem;
            }
            
            .filter-list {
                gap: 1rem;
                font-size: 0.85rem;
            }
        }

        /* CTA Section */
        .cta {
            padding: 100px 5%;
            background: var(--charcoal);
            color: var(--cream);
            text-align: center;
        }

        .cta h2 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
        }

        .cta h2 span {
            color: var(--accent);
            font-style: italic;
            font-weight: 300;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2.5rem;
            background: var(--cream);
            color: var(--charcoal);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            margin-top: 1rem;
            transition: transform 0.3s;
        }

        .cta-btn:hover {
            transform: translateY(-3px);
        }

        footer {
            padding: 2rem 5%;
            text-align: center;
            color: var(--gray);
            font-size: 0.9rem;
        }