/* Chris Follows Art: styles for every page.
   Shared rules apply everywhere. Rules for particular pages are marked with
   :where(.pg-<page>), e.g. :where(.pg-paintings), matching the class on that page's <html>. */

/* Images keep their proportions; the width/height on each <img> lets the browser reserve the space before it loads */
img { max-width: 100%; height: auto; }


/* ---- only on: process ---- */

		
		
		
		
		
		    /* Add the new CSS rules here, just before the closing style tag */
        /* Add padding to the top of the body to account for fixed header */
        :where(.pg-process) body {
            padding-top: 70px; /* Adjust based on your header height */
        }

        
        /* Adjust header styling */
        :where(.pg-process) header {
            background: var(--primary-color);
            color: var(--text-color);
            padding: 1rem var(--spacing);
            position: fixed;
            width: 100%;
            z-index: 1000;
            transition: background 0.3s ease;
            border-bottom: 1px solid var(--border-color);
            top: 0;
            height: auto;
        }

        
        /* Adjust scroll padding for smoother anchor navigation */
        html:where(.pg-process) {
            scroll-padding-top: 80px; /* Should be slightly larger than header height */
        }

        
        /* If you're using section IDs for navigation, add some extra padding */
        :where(.pg-process) section[id] {
            padding-top: 80px;
            margin-top: -80px;
        }

        
        /* Make sure the hero section aligns correctly with fixed header */
        :where(.pg-process) .hero {
            margin-top: -70px; /* Match body padding-top */
        }

        /* Modern CSS Reset */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }


        /* Variables */
        :root {
            /* Dark theme (default) */
            --primary-color: #000000;
            --accent-color: #333333;
            --text-color: #ffffff;
            --dark-bg: #111111;
            --muted-color: rgba(255, 255, 255, 0.68);
            --border-color: rgba(255, 255, 255, 0.12);
            --border-strong: rgba(255, 255, 255, 0.4);
            --header-scrolled: rgba(0, 0, 0, 0.92);
            --chip-bg: rgba(255, 255, 255, 0.1);
            --chip-bg-hover: rgba(255, 255, 255, 0.2);
            --hero-tint: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
            --spacing: 2rem;
            color-scheme: dark;
        }


        :root[data-theme="light"] {
            --primary-color: #f7f6f2;
            --accent-color: #d9d6cf;
            --text-color: #141414;
            --dark-bg: #ecebe6;
            --muted-color: rgba(20, 20, 20, 0.66);
            --border-color: rgba(0, 0, 0, 0.12);
            --border-strong: rgba(0, 0, 0, 0.4);
            --header-scrolled: rgba(247, 246, 242, 0.92);
            --chip-bg: rgba(0, 0, 0, 0.06);
            --chip-bg-hover: rgba(0, 0, 0, 0.12);
            --hero-tint: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
            color-scheme: light;
        }

		
		/* Global link styling */
        a {
            color: var(--text-color);
            text-decoration: none;
        }

		
		a:hover {
            text-decoration: underline;
        }

/* ---- only on: index, framed-prints, projects, events, art-journey, paintings, exhibitions, art-on-chain ---- */

		

        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background: var(--primary-color);
            padding-top: 70px; /* Add padding to account for fixed header */
        }

/* ---- only on: process ---- */

		

        :where(.pg-process) body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background: var(--primary-color);
        }


		
		
		
		/* Add this to your CSS stylesheet */
:where(.pg-process) .text-content {
    padding: var(--spacing);
    background: var(--dark-bg);
}

		
		
		
		
		
		
        /* Header Styles */
        :where(.pg-process) header {
            background: var(--primary-color);
            color: var(--text-color);
            padding: var(--spacing);
            position: fixed;
            width: 100%;
            z-index: 1000;
            transition: background 0.3s ease;
            border-bottom: 1px solid var(--border-color);
        }


        /* Header Styles */
        header {
            background: var(--primary-color);
            color: var(--text-color);
            padding: 1rem var(--spacing);
            position: fixed;
            width: 100%;
            z-index: 1000;
            transition: background 0.3s ease;
            border-bottom: 1px solid var(--border-color);
            top: 0;
            height: auto;
        }


        header.scrolled {
            background: var(--header-scrolled);
            backdrop-filter: blur(5px);
        }


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


        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            letter-spacing: 2px;
        }


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


        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }


        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            bottom: -5px;
            left: 0;
            background-color: var(--text-color);
            transition: width 0.3s ease;
        }


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


        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.5rem;
            cursor: pointer;
        }

/* ---- only on: index ---- */


        /* Hero Section */
        :where(.pg-index) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/landscape-hero.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: process ---- */


        /* Hero Section */
        :where(.pg-process) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/landscape-hero-process.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
        }

/* ---- only on: framed-prints ---- */


        /* Hero Section */
        :where(.pg-framed-prints) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/orchard-red.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: projects ---- */


        /* Hero Section */
        :where(.pg-projects) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/project_img/accelerate-group.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: events ---- */


        /* Hero Section */
        :where(.pg-events) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/events/u2u_team.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: art-journey ---- */


        /* Hero Section */
        :where(.pg-art-journey) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/home/2k-atmospheric-Isabella.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: paintings ---- */


        /* Hero Section */
        :where(.pg-paintings) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/artwork_img/paintings/ing-boat.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: exhibitions ---- */


        /* Hero Section */
        :where(.pg-exhibitions) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/artwork_img/exhibitions/exhibition-chelsea-pano.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }

/* ---- only on: art-on-chain ---- */


        /* Hero Section */
        :where(.pg-art-on-chain) .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-tint), url('images/mesh-paintings-on-tezos.jpg');
            background-size: cover;
            background-position: center;
            color: var(--text-color);
            position: relative;
            margin-top: -70px; /* Match body padding-top */
        }


        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, transparent 100%);
        }


        .hero-content {
            max-width: 800px;
            padding: var(--spacing);
            position: relative;
            z-index: 1;
        }


        .hero h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            letter-spacing: 4px;
            text-transform: uppercase;
        }


        .hero p {
            font-size: 1.2rem;
            opacity: 0.8;
        }


        /* Featured Work */
        .featured-work {
            padding: var(--spacing);
            background: var(--dark-bg);
        }


        .featured-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);

            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }


        .featured-item {
            position: relative;
            overflow: hidden;
            width: 100%;
            aspect-ratio: 1/1;
        }


        /* Featured Work 2 */
        .featured-grid-square {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }


        /* Featured Work 3 - Grid with 4 columns */
        #featured3 .featured-grid-square {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }

/* ---- only on: index, framed-prints, projects, events, art-journey, paintings, exhibitions, art-on-chain ---- */


        /* New Featured Section - Grid with 6 columns */
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #new-section .featured-grid-square {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }


        .featured-item-square {
            position: relative;
            overflow: hidden;
            width: 100%;
            aspect-ratio: 1/1;
        }


        .featured-item-square img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background: var(--dark-bg);
        }


        .featured-item-square .featured-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            background: linear-gradient(transparent, rgba(0,0,0,0.9));
            color: var(--text-color);
            transform: translateY(100%);
            transition: transform 0.5s ease;
        }


        .featured-item-square:hover .featured-content {
            transform: translateY(0);
        }


        .featured-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: var(--dark-bg);
        }


        .featured-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            background: linear-gradient(transparent, rgba(0,0,0,0.9));
            color: var(--text-color);
            transform: translateY(100%);
            transition: transform 0.5s ease;
        }


        .featured-item:hover .featured-content {
            transform: translateY(0);
        }


        /* Masonry Gallery */
        .masonry-gallery-container {
            padding: var(--spacing);
            background: var(--primary-color);
        }

        
        .masonry-gallery {
            columns: 3;
            column-gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--spacing);
        }


        .masonry-gallery-container .section-header {
            text-align: center;
            margin-bottom: 3rem;
            padding-top: 3rem;
        }


        .masonry-item {
            break-inside: avoid;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }


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


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


        /* About Section */
        .about {
            padding: calc(var(--spacing) * 2);
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }


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


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


        /* Bottom Navigation for Mobile */
        .bottom-nav {
            display: block;
            background: var(--primary-color);
            padding: 1rem 0;
            text-align: center;
            border-top: 1px solid var(--border-color);
        }


        .bottom-nav-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }


        .bottom-nav-links a {
            color: var(--text-color);
            text-decoration: none;
            padding: 0.5rem;
            font-weight: bold;
        }


        /* Social Media Links */
        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }


        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--chip-bg);
            transition: all 0.3s ease;
        }


        .social-links a:hover {
            background: var(--chip-bg-hover);
            transform: translateY(-3px);
        }


        .social-links svg {
            width: 20px;
            height: 20px;
            fill: var(--text-color);
        }


        /* Section Headers */
        .section-header {
            text-align: center;
            margin-bottom: 3rem;
            padding-top: 3rem;
        }


        .section-header h2 {
            font-size: 2.5rem;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

/* ---- only on: process ---- */


        /* Responsive Design */
        @media (max-width: 992px) {
            :where(.pg-process) #featured3 .featured-grid-square {
                grid-template-columns: repeat(2, 1fr);
            }
        }


		
		
		
		
		
		
  /* Update the media query for smaller screens */
@media (max-width: 768px) {
    /* Show mobile menu button */
    :where(.pg-process) .mobile-menu-btn {
        display: block;
    }
    
    /* Hide desktop nav links by default */
    :where(.pg-process) .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--header-scrolled);
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Class to show mobile nav when toggled */
    :where(.pg-process) .nav-links.active {
        display: flex;
    }

    :where(.pg-process) .hero h1 {
        font-size: 2.5rem;
    }

    :where(.pg-process) .masonry-gallery {
        columns: 2;
    }

    :where(.pg-process) .featured-grid {
        grid-template-columns: 1fr;
    }
    
    /* Change this to single column instead of 2 columns */
    :where(.pg-process) .featured-grid-square {
        grid-template-columns: 1fr;
    }
    
    :where(.pg-process) #featured3 .featured-grid-square {
        grid-template-columns: 1fr;
    }
        }


        /* Adjust scroll padding for smoother anchor navigation */
        html {
            scroll-padding-top: 80px; /* Should be slightly larger than header height */
        }

        
        /* If you're using section IDs for navigation, add some extra padding */
        section[id] {
            padding-top: 80px;
            margin-top: -80px;
        }


        /* Text Content Container */
        .text-content {
            padding: var(--spacing);
            background: var(--dark-bg);
        }

/* ---- only on: index, framed-prints, projects, events, art-journey, paintings, exhibitions, art-on-chain ---- */


        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .text-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 1rem 0 2rem;
        }


        /* Responsive Design */
        @media (max-width: 992px) {
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #featured3 .featured-grid-square {
                grid-template-columns: repeat(2, 1fr);
            }
            
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #new-section .featured-grid-square {
                grid-template-columns: repeat(2, 1fr);
            }
        }


        /* Update the media query for smaller screens */
        @media (max-width: 768px) {
            /* Show mobile menu button */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .mobile-menu-btn {
                display: block;
            }
            
            /* Hide desktop nav links by default */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                background: var(--header-scrolled);
                padding: 1rem;
                border-bottom: 1px solid var(--border-color);
            }
            
            /* Class to show mobile nav when toggled */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .nav-links.active {
                display: flex;
            }

            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .hero h1 {
                font-size: 2.5rem;
            }

            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .masonry-gallery {
                columns: 2;
            }

            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .featured-grid {
                grid-template-columns: 1fr;
            }
            
            /* Change this to single column instead of 2 columns */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .featured-grid-square {
                grid-template-columns: 1fr;
            }
            
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #featured3 .featured-grid-square {
                grid-template-columns: 1fr;
            }

            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #new-section .featured-grid-square {
                grid-template-columns: 1fr;
            }
        }


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

/* ---- only on: index, framed-prints, projects, events, art-journey, paintings, exhibitions, art-on-chain ---- */


        /* Mobile-friendly header and menu positioning */
        @media (max-width: 768px) {
            /* Adjust body padding for mobile */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) body {
                padding-top: 60px; /* Slightly smaller for mobile */
            }
            
            /* Adjust fixed header for mobile */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) header {
                padding: 0.8rem var(--spacing);
            }
            
            /* Mobile nav links when active */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .nav-links.active {
                display: flex;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                background: var(--header-scrolled);
                backdrop-filter: blur(5px);
                padding: 1rem;
                border-bottom: 1px solid var(--border-color);
                z-index: 1001; /* Higher than header */
            }
            
            /* Make nav links more touch-friendly on mobile */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .nav-links a {
                padding: 0.8rem 0;
                display: block;
                width: 100%;
            }
            
            /* Adjust scroll padding for mobile */
            html:where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) {
                scroll-padding-top: 70px;
            }
            
            /* Increase tap target size for mobile menu button */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .mobile-menu-btn {
                padding: 0.5rem;
                font-size: 1.8rem;
            }
            
            /* Fixed position for bottom nav on mobile */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .bottom-nav {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 999;
                background: var(--header-scrolled);
                backdrop-filter: blur(5px);
            }
            
            /* Add padding to footer to prevent content being hidden by fixed bottom nav */
            :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) footer {
                padding-bottom: calc(2rem + 80px); /* Extra space for bottom nav */
            }
        }

		
		
		  /* Enhanced mobile fixes */
    
    /* Increased scroll padding specifically for mobile */
    @media (max-width: 768px) {
        html:where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) {
            scroll-padding-top: 100px !important; /* Force higher value for mobile */
        }
        
        /* Target each section ID explicitly */
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #featured,
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #new-section,
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #featured2,
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) #featured3 {
            padding-top: 100px !important;
            margin-top: -100px !important;
        }
        
        /* Adjust section headers for better visibility */
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) .section-header {
            padding-top: 60px !important; 
        }
        
        /* Fixed header adjustments */
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) header {
            height: auto;
            min-height: 60px;
        }
        
        /* Prevent section content from being hidden */
        :where(.pg-index, .pg-framed-prints, .pg-projects, .pg-events, .pg-art-journey, .pg-paintings, .pg-exhibitions, .pg-art-on-chain) section {
            position: relative;
            z-index: 1;
        }
        }

/* ---- only on: process ---- */

		
		
		
		
		
		
		/* Landscape grid styles */

/* New landscape grid styles */
:where(.pg-process) .featured-grid-landscape {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
}


:where(.pg-process) .featured-item-landscape {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Landscape orientation */
    aspect-ratio: 16/9;
}


:where(.pg-process) .featured-item-landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--dark-bg);
}


:where(.pg-process) .featured-item-landscape .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--text-color);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}


:where(.pg-process) .featured-item-landscape:hover .featured-content {
    transform: translateY(0);
}


/* Responsive Design for landscape grid */
@media (max-width: 768px) {
    :where(.pg-process) .featured-grid-landscape {
        grid-template-columns: 1fr;
    }
        }


		
		
		/* Text Content Container */
:where(.pg-process) .text-container {
    max-width: 1100px !important; /* Use important to override inline styles */
    margin: 0 auto;
    padding: 1rem 0 2rem;
}


/* You can also update the text-content section if needed */
:where(.pg-process) .text-content {
    padding: var(--spacing);
    background: var(--dark-bg);
    max-width: 100%;
}

		
		
		
		
		
		  /* Enhanced mobile fixes */
    
    /* Increased scroll padding specifically for mobile */
    @media (max-width: 768px) {
        html:where(.pg-process) {
            scroll-padding-top: 100px !important; /* Force higher value for mobile */
        }
        
        /* Target each section ID explicitly */
        :where(.pg-process) #featured,
        :where(.pg-process) #featured2,
        :where(.pg-process) #featured3 {
            padding-top: 100px !important;
            margin-top: -100px !important;
        }
        
        /* Adjust section headers for better visibility */
        :where(.pg-process) .section-header {
            padding-top: 60px !important; 
        }
        
        /* Fixed header adjustments */
        :where(.pg-process) header {
            height: auto;
            min-height: 60px;
        }
        
        /* Prevent section content from being hidden */
        :where(.pg-process) section {
            position: relative;
            z-index: 1;
        }
        }


    /* Mobile text overlay fix */

/* Mobile text overlay fix - shows text on images */
@media (max-width: 768px) {
    /* For featured items */
    .featured-item .featured-content {
        /* Show content by default on mobile */
        transform: translateY(0);
        /* Add a semi-transparent background for better readability */
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        /* Reduce padding to take less space */
        padding: 1rem;
        /* Ensure text is readable */
        font-size: 0.9rem;
    }
    
    /* For square featured items */
    .featured-item-square .featured-content {
        /* Show content by default on mobile */
        transform: translateY(0);
        /* Add a semi-transparent background for better readability */
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        /* Reduce padding to take less space */
        padding: 1rem;
        /* Ensure text is readable */
        font-size: 0.9rem;
    }
    
    /* Make content appear at the bottom */
    .featured-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .featured-content p {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
}


        /* ===== Theme toggle ===== */
        body {
            transition: background-color 0.3s ease, color 0.3s ease;
        }


        nav { gap: 0.75rem; }

        .logo { order: 1; }

        .nav-links { order: 2; margin-left: auto; }


        .theme-toggle {
            order: 3;
            margin-left: 1.75rem;
            width: 38px;
            height: 38px;
            flex-shrink: 0;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-color);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }


        .theme-toggle:hover {
            border-color: var(--border-strong);
            background: var(--chip-bg);
        }


        .theme-toggle svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }


        .theme-toggle .icon-moon { display: none; }

        :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

        :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }


        /* Text over images stays white in both themes */
        .hero,
        .featured-content,
        .featured-item .featured-content,
        .featured-item-square .featured-content,
        .featured-item-landscape .featured-content,
        .featured-content a {
            color: #ffffff;
        }


        .featured-item .featured-content,
        .featured-item-square .featured-content,
        .featured-item-landscape .featured-content {
            background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.88) 100%);
            text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        }


        .featured-content p { color: rgba(255, 255, 255, 0.9); }


        /* Hero tint: dark mode keeps the tint, light mode shows the image untinted */
        :root[data-theme="light"] .hero::before { background: none; }

        :root[data-theme="light"] .hero-content {
            text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
        }


        /* ===== About section ===== */
        #about {
            margin-top: 0;
            padding: 6rem var(--spacing) 5rem;
            max-width: none;
            text-align: left;
        }


        .about-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            gap: 4rem;
            align-items: start;
        }


        .about-eyebrow,
        .about-subhead {
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--muted-color);
        }


        .about-eyebrow { margin-bottom: 0.75rem; }


        .about h2 {
            font-size: 2.5rem;
            line-height: 1.1;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }


        .about-lead {
            font-size: 1.25rem;
            line-height: 1.55;
        }


        .about-body p {
            color: var(--muted-color);
            font-size: 1.02rem;
            line-height: 1.75;
            margin-bottom: 1.25rem;
            max-width: 62ch;
        }


        .about-body p a {
            color: var(--text-color);
            text-decoration: underline;
            text-decoration-color: var(--border-strong);
            text-underline-offset: 3px;
        }


        .about-subhead { margin: 2.5rem 0 0.75rem; }


        .about-list {
            list-style: none;
            border-top: 1px solid var(--border-color);
        }


        .about-list li {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.8rem 0;
            border-bottom: 1px solid var(--border-color);
        }


        .about-list li span:last-child {
            color: var(--muted-color);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }


        .about-links {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 2.5rem;
        }


        .about-card {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            padding: 1.25rem 1.5rem;
            border: 1px solid var(--border-color);
            background: var(--dark-bg);
            transition: border-color 0.2s ease, transform 0.2s ease;
        }


        .about-card:hover {
            border-color: var(--border-strong);
            transform: translateY(-2px);
            text-decoration: none;
        }


        .about-card-label {
            font-size: 0.72rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--muted-color);
        }


        .about-card-title { font-weight: 600; }


        .about-card-desc {
            font-size: 0.9rem;
            color: var(--muted-color);
        }


        /* About: two rows, exhibitions level with further reading */
        .about-inner { row-gap: 3rem; }

        .about-exhibitions .about-subhead,
        .about-reading .about-subhead { margin-top: 0; }

        .about-links { grid-template-columns: 1fr; margin-top: 0; }

        .about-body p:last-child { margin-bottom: 0; }

/* ---- only on: process ---- */


        /* Inline figures */
        :where(.pg-process) .figure { max-width: 1000px; margin: 1rem auto 2.5rem; }

        :where(.pg-process) .figure img { width: 100%; height: auto; display: block; background: var(--dark-bg); }


        /* ===== Global menu with dropdowns ===== */
        .nav-links { align-items: center; }


        .nav-group { position: relative; }


        .nav-group-btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: none;
            border: 0;
            padding: 0;
            font: inherit;
            color: var(--text-color);
            cursor: pointer;
        }


        .nav-group-btn svg {
            width: 11px;
            height: 11px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: transform 0.2s ease;
        }


        .nav-group-btn::after {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            bottom: -5px;
            left: 0;
            background-color: currentColor;
            transition: width 0.3s ease;
        }


        .nav-group:hover .nav-group-btn::after,
        .nav-group.is-current .nav-group-btn::after,
        .nav-links > a[aria-current="page"]::after {
            width: 100%;
        }


        .nav-menu {
            position: absolute;
            top: calc(100% + 16px);
            left: 50%;
            transform: translate(-50%, 6px);
            min-width: 200px;
            display: flex;
            flex-direction: column;
            padding: 0.5rem;
            background: var(--primary-color);
            border: 1px solid var(--border-color);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
            z-index: 1002;
        }


        /* invisible bridge so the menu doesn't close while moving the mouse down */
        .nav-menu::before {
            content: '';
            position: absolute;
            top: -18px;
            left: 0;
            right: 0;
            height: 18px;
        }


        .nav-group:hover .nav-menu,
        .nav-group:focus-within .nav-menu,
        .nav-group.open .nav-menu {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, 0);
        }


        .nav-group:hover .nav-group-btn svg,
        .nav-group.open .nav-group-btn svg { transform: rotate(180deg); }


        .nav-links .nav-menu a {
            padding: 0.55rem 0.85rem;
            white-space: nowrap;
        }


        .nav-links .nav-menu a::after { display: none; }


        .nav-links .nav-menu a:hover {
            background: var(--chip-bg);
            text-decoration: none;
        }


        .nav-links .nav-menu a[aria-current="page"] { font-weight: 600; }


        @media (max-width: 768px) {
            .nav-links.active {
                max-height: calc(100vh - 70px);
                overflow-y: auto;
                align-items: stretch;
                gap: 0;
                padding: 0.5rem var(--spacing) 1.25rem;
                background: var(--primary-color);
                backdrop-filter: none;
                box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
            }

            .nav-links > a::after { display: none; }

            .bottom-nav { padding: 0.6rem 0; }
            .bottom-nav-links { gap: 0.25rem 0.9rem; margin-bottom: 0; }
            .bottom-nav-links a { padding: 0.4rem 0.2rem; font-size: 0.9rem; }

            .hero h1 { font-size: 2.1rem; letter-spacing: 2px; overflow-wrap: break-word; }
            .section-header h2 { font-size: 1.8rem; letter-spacing: 1.5px; overflow-wrap: break-word; }

            .nav-group { width: 100%; }

            .nav-group-btn {
                pointer-events: none;
                width: 100%;
                padding: 1rem 0 0.35rem;
                font-size: 0.75rem;
                letter-spacing: 0.18em;
                text-transform: uppercase;
                color: var(--muted-color);
            }

            .nav-group-btn svg,
            .nav-group-btn::after { display: none; }

            .nav-menu,
            .nav-group:hover .nav-menu,
            .nav-group.open .nav-menu {
                position: static;
                transform: none;
                opacity: 1;
                visibility: visible;
                min-width: 0;
                padding: 0;
                background: none;
                border: 0;
                box-shadow: none;
            }

            .nav-menu::before { display: none; }

            .nav-links .nav-menu a { padding: 0.6rem 0 0.6rem 0.9rem; }
        }


        @media (max-width: 768px) {
            .logo { font-size: 1.2rem; letter-spacing: 1.5px; }
            .theme-toggle { order: 2; margin-left: auto; }
            .mobile-menu-btn { order: 3; margin-left: 0.5rem; }

            #about { padding: 4rem 1.25rem 3rem; }
            .about-inner { grid-template-columns: 1fr; gap: 2rem; }
            .about h2 { font-size: 2rem; }
            .about-links { grid-template-columns: 1fr; }
        }


        .footer-email { margin-bottom: 0.5rem; }

/* ---- only on: projects, events, art-journey, art-on-chain ---- */

        /* ===== Content pages ===== */
        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .hero.hero-short { height: 65vh; min-height: 420px; }


        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .text-container p { line-height: 1.75; }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .text-container p + p { margin-top: 1.1rem; }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .text-container a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .text-container h3 { font-size: 1.4rem; margin: 2.5rem 0 1rem; letter-spacing: 1px; }


        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .figure { max-width: 1000px; margin: 1rem auto 2.5rem; }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .figure img { width: 100%; height: auto; display: block; background: var(--dark-bg); }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .figure figcaption { color: var(--muted-color); font-size: 0.9rem; margin-top: 0.75rem; text-align: center; font-style: italic; }


        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .grid-auto {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }


        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .image-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .image-grid a { display: block; overflow: hidden; }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .image-grid img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }

        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .image-grid a:hover img { transform: scale(1.03); }


        :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .footer-email { margin-bottom: 0.5rem; }


        @media (max-width: 768px) {
            :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .image-grid { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; }
            :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .grid-auto { grid-template-columns: 1fr; }
            :where(.pg-projects, .pg-events, .pg-art-journey, .pg-art-on-chain) .hero.hero-short h1 { font-size: 2rem; letter-spacing: 2px; overflow-wrap: break-word; }
        }

/* ---- only on: paintings, exhibitions ---- */

        /* ===== Content pages ===== */
        :where(.pg-paintings, .pg-exhibitions) .hero.hero-short { height: 65vh; min-height: 420px; }


        :where(.pg-paintings, .pg-exhibitions) .text-container p { line-height: 1.75; }

        :where(.pg-paintings, .pg-exhibitions) .text-container p + p { margin-top: 1.1rem; }

        :where(.pg-paintings, .pg-exhibitions) .text-container a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

        :where(.pg-paintings, .pg-exhibitions) .text-container h3 { font-size: 1.4rem; margin: 2.5rem 0 1rem; letter-spacing: 1px; }


        :where(.pg-paintings, .pg-exhibitions) .figure { max-width: 1000px; margin: 1rem auto 2.5rem; }

        :where(.pg-paintings, .pg-exhibitions) .figure img { width: 100%; height: auto; display: block; background: var(--dark-bg); }

        :where(.pg-paintings, .pg-exhibitions) .figure figcaption { color: var(--muted-color); font-size: 0.9rem; margin-top: 0.75rem; text-align: center; font-style: italic; }


        :where(.pg-paintings, .pg-exhibitions) .grid-auto {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }


        :where(.pg-paintings, .pg-exhibitions) .image-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing);
        }

        :where(.pg-paintings, .pg-exhibitions) .image-grid a { display: block; overflow: hidden; }

        :where(.pg-paintings, .pg-exhibitions) .image-grid img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }

        :where(.pg-paintings, .pg-exhibitions) .image-grid a:hover img { transform: scale(1.03); }


        :where(.pg-paintings, .pg-exhibitions) .footer-email { margin-bottom: 0.5rem; }


        @media (max-width: 768px) {
            :where(.pg-paintings, .pg-exhibitions) .image-grid { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; }
            :where(.pg-paintings, .pg-exhibitions) .grid-auto { grid-template-columns: 1fr; }
            :where(.pg-paintings, .pg-exhibitions) .hero.hero-short h1 { font-size: 2rem; letter-spacing: 2px; overflow-wrap: break-word; }
        }


        /* ===== Paintings / Exhibitions ===== */
        :where(.pg-paintings, .pg-exhibitions) .figure video { width: 100%; height: auto; display: block; background: #000; }


        :where(.pg-paintings, .pg-exhibitions) .work { max-width: 1000px; margin: 0 auto 4.5rem; }

        :where(.pg-paintings, .pg-exhibitions) .work .figure { margin-bottom: 1.25rem; }

        :where(.pg-paintings, .pg-exhibitions) .work-caption { max-width: 800px; margin: 0 auto; }

        :where(.pg-paintings, .pg-exhibitions) .work-caption h3 { font-size: 1.35rem; letter-spacing: 0.5px; margin-bottom: 0.25rem; }

        :where(.pg-paintings, .pg-exhibitions) .work-meta {
            font-size: 0.78rem;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--muted-color);
            margin-bottom: 0.9rem;
        }

        :where(.pg-paintings, .pg-exhibitions) .work-caption p { line-height: 1.75; color: var(--muted-color); }

        :where(.pg-paintings, .pg-exhibitions) .work-caption p + p { margin-top: 1rem; }

        :where(.pg-paintings, .pg-exhibitions) .work-caption a { color: var(--text-color); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }


        :where(.pg-paintings, .pg-exhibitions) .work-quote {
            margin: 1rem 0 0;
            padding-left: 1.25rem;
            border-left: 2px solid var(--border-strong);
            color: var(--muted-color);
            line-height: 1.75;
            font-style: italic;
        }

        :where(.pg-paintings, .pg-exhibitions) .work-quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.85rem; }


        :where(.pg-paintings, .pg-exhibitions) .plain-card .featured-content { transform: translateY(0); }


        :where(.pg-paintings, .pg-exhibitions) .timeline { list-style: none; max-width: 900px; margin: 0 auto; border-top: 1px solid var(--border-color); }

        :where(.pg-paintings, .pg-exhibitions) .timeline li {
            display: grid;
            grid-template-columns: 7.5rem 1fr;
            gap: 1.5rem;
            padding: 0.95rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        :where(.pg-paintings, .pg-exhibitions) .tl-date { color: var(--muted-color); font-variant-numeric: tabular-nums; white-space: nowrap; }

        :where(.pg-paintings, .pg-exhibitions) .tl-body { line-height: 1.6; }

        :where(.pg-paintings, .pg-exhibitions) .tl-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

        :where(.pg-paintings, .pg-exhibitions) .tl-note { display: block; color: var(--muted-color); font-size: 0.92rem; margin-top: 0.2rem; }

        :where(.pg-paintings, .pg-exhibitions) .timeline-heading { max-width: 900px; margin: 3rem auto 1rem; }


        @media (max-width: 768px) {
            :where(.pg-paintings, .pg-exhibitions) .work { margin-bottom: 3rem; }
            :where(.pg-paintings, .pg-exhibitions) .timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
        }


        /* ===== Header socials ===== */
        .nav-social { display: none; }


        .nav-social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--muted-color);
            transition: color 0.2s ease;
        }

        .nav-social a:hover { color: var(--text-color); text-decoration: none; }

        .nav-social a::after { display: none; }


        .nav-social svg,
        .social-links svg { width: 16px; height: 16px; fill: currentColor; }


        .nav-social svg.icon-stroke,
        .social-links svg.icon-stroke {
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }


        @media (min-width: 1100px) {
            .nav-social {
                display: flex;
                align-items: center;
                gap: 0.85rem;
                padding-left: 1.5rem;
                border-left: 1px solid var(--border-color);
            }
        }


        /* ===== Footer with site map ===== */
        .site-footer {
            text-align: left;
            padding: 4rem var(--spacing) 2rem;
            border-top: 1px solid var(--border-color);
        }


        .footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            gap: 4rem;
        }


        .footer-logo { font-size: 1.25rem; font-weight: 700; letter-spacing: 2px; }

        .footer-tagline { color: var(--muted-color); margin: 0.75rem 0 1.25rem; max-width: 34ch; line-height: 1.6; }

        .site-footer .footer-email { margin-bottom: 1.25rem; }

        .site-footer .footer-email a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }


        .site-footer .social-links { justify-content: flex-start; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

        .site-footer .social-links a { width: 38px; height: 38px; color: var(--text-color); }


        .sitemap {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 2rem;
            max-width: none;
            margin: 0;
            align-items: start;
        }


        .sitemap-col { display: flex; flex-direction: column; gap: 0.6rem; }

        .sitemap-col h4 {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--muted-color);
            margin-bottom: 0.4rem;
        }

        .sitemap-col a { color: var(--text-color); }


        .footer-copy {
            max-width: 1100px;
            margin: 3rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            color: var(--muted-color);
            font-size: 0.85rem;
        }


        @media (max-width: 768px) {
            .nav-links.active .nav-social {
                display: flex;
                gap: 1.1rem;
                margin-top: 1rem;
                padding-top: 1.1rem;
                border-top: 1px solid var(--border-color);
            }
            .nav-links .nav-social a { width: auto; padding: 0.35rem 0; display: inline-flex; }
            .nav-social svg { width: 18px; height: 18px; }

            .site-footer { padding: 3rem 1.25rem 2rem; }
            .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
            .sitemap { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
            .sitemap-col:last-child { grid-column: 1 / -1; }
        }

/* ---- only on: framed-prints ---- */


        /* More on Arno cards */
        :where(.pg-framed-prints) #arno-collections .text-container { text-align: center; }

        :where(.pg-framed-prints) #arno-collections .text-container a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

/* ---- only on: paintings ---- */



        /* Works: text above the image, aligned to the image's left edge */
        :where(.pg-paintings) .work-caption { max-width: none; margin: 0 0 1.25rem; }

        :where(.pg-paintings) .work-caption p,
        :where(.pg-paintings) .work-quote { max-width: 72ch; }

        :where(.pg-paintings) .work .figure { margin: 0; max-width: none; }

        :where(.pg-paintings) #haydons { margin-top: 0; padding-top: 4.5rem; }

        @media (max-width: 768px) { :where(.pg-paintings) #haydons { padding-top: 3rem; }
        }

/* ---- only on: exhibitions ---- */



        /* Works: text above the image, aligned to the image's left edge */
        :where(.pg-exhibitions) .work-caption { max-width: none; margin: 0 0 1.25rem; }

        :where(.pg-exhibitions) .work-caption p,
        :where(.pg-exhibitions) .work-quote { max-width: 72ch; }

        :where(.pg-exhibitions) .work .figure { margin: 0; max-width: none; }

        :where(.pg-exhibitions) #highlights { margin-top: 0; padding-top: 4.5rem; }

        @media (max-width: 768px) { :where(.pg-exhibitions) #highlights { padding-top: 3rem; }
        }


        /* ===== Mobile layout: full-width images, captions below, tighter spacing ===== */
        @media (max-width: 768px) {
            .featured-work,
            .text-content { padding: 1.25rem 1rem; }

            .section-header { padding-top: 1.75rem !important; margin-bottom: 1.25rem; }

            .featured-grid,
            .featured-grid-square,
            #featured3 .featured-grid-square,
            #new-section .featured-grid-square,
            .grid-auto,
            .featured-grid-landscape {
                grid-template-columns: 1fr;
                gap: 2rem;
                padding: 0.5rem 0 1rem;
            }

            .image-grid { padding: 0.5rem 0 1rem; }

            /* thumbnails show the whole image at its natural shape */
            .featured-item,
            .featured-item-square,
            .featured-item-landscape {
                aspect-ratio: auto !important;
                max-width: none !important;
                overflow: visible;
            }

            .featured-item img,
            .featured-item-square img,
            .featured-item-landscape img {
                height: auto;
                object-fit: initial;
                display: block;
            }

            /* caption sits under the image instead of covering it */
            .featured-item .featured-content,
            .featured-item-square .featured-content,
            .featured-item-landscape .featured-content {
                position: static;
                transform: none;
                background: none;
                text-shadow: none;
                color: var(--text-color);
                padding: 0.8rem 0 0;
            }

            .featured-item .featured-content a,
            .featured-item-square .featured-content a,
            .featured-item-landscape .featured-content a { color: var(--text-color); }

            .featured-item .featured-content p,
            .featured-item-square .featured-content p,
            .featured-item-landscape .featured-content p {
                color: var(--muted-color);
                font-size: 0.92rem;
                line-height: 1.55;
            }

            .featured-content h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }

            .text-container { padding: 0.5rem 0 1rem; }
            .figure { margin: 0.5rem auto 1.75rem; }

            /* stop sections overlapping each other on phones (anchors still offset via scroll-padding) */
            section[id]:not(#about),
            #featured, #new-section, #featured2, #featured3 {
                margin-top: 0 !important;
                padding-top: 1.25rem !important;
            }
            #haydons, #highlights { padding-top: 2.5rem !important; }
        }


        /* ===== One consistent content width on every page (matches the Process page) ===== */
        .text-container { max-width: 1100px !important; }

        .figure,
        .work,
        .timeline,
        .timeline-heading { max-width: 1100px; }

        .work-caption p, .work-quote { max-width: none; }

/* ---- only on: index ---- */


        /* Link to the experimental Art On-Chain page */
        :where(.pg-index) .onchain-cta {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 0.5rem 1rem;
            max-width: 1136px;
            margin: 0 auto 0.5rem;
            padding: 1.1rem 1.5rem;
            border: 1px solid var(--border-color);
            background: var(--primary-color);
            transition: border-color 0.2s ease;
        }

        :where(.pg-index) .onchain-cta:hover { border-color: var(--border-strong); text-decoration: none; }

        :where(.pg-index) .onchain-cta-tag { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid currentColor; padding: 0.15rem 0.5rem; }

        :where(.pg-index) .onchain-cta-title { font-weight: 700; font-size: 1.1rem; }

        :where(.pg-index) .onchain-cta-desc { color: var(--muted-color); font-size: 0.95rem; }


        /* ===== Home: Art On-Chain latest mints ===== */
        :where(.pg-index) .home-mints {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 1.25rem;
            max-width: 1136px;
            margin: 0 auto 1.5rem;
        }

        :where(.pg-index) .home-mints:empty { display: none; }

        :where(.pg-index) .home-mint { display: flex; flex-direction: column; gap: 0.4rem; }

        :where(.pg-index) .home-mint[hidden] { display: none; }

        :where(.pg-index) .home-mint:hover { text-decoration: none; }

        :where(.pg-index) .home-mint-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--primary-color); border: 1px solid var(--border-color); }

        :where(.pg-index) .home-mint-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }

        :where(.pg-index) .home-mint:hover .home-mint-img img { transform: scale(1.03); }

        :where(.pg-index) .home-mint-name { font-weight: 600; font-size: 0.92rem; line-height: 1.35; }

        :where(.pg-index) .home-mint-meta { font-size: 0.76rem; color: var(--muted-color); }

        :where(.pg-index) #on-chain .onchain-cta { margin-top: 0; }

        @media (max-width: 900px) { :where(.pg-index) .home-mints { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }

        @media (max-width: 768px) { :where(.pg-index) .home-mints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
        }

/* ---- only on: art-journey ---- */


        /* ===== Art Journey: editorial layout (this page only) ===== */
        :where(.pg-art-journey) .journey { max-width: 720px; margin: 0 auto; padding: 1.5rem 0 2rem; }

        :where(.pg-art-journey) .journey .figure { max-width: none; margin: 2.5rem 0; }


        :where(.pg-art-journey) .journey-milestones {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0;
            margin: 0 0 1rem;
            border-top: 1px solid var(--border-color);
            border-left: 1px solid var(--border-color);
        }

        :where(.pg-art-journey) .journey-milestones li {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            padding: 0.9rem 1rem;
            border-right: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        :where(.pg-art-journey) .ms-key { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.5px; }

        :where(.pg-art-journey) .ms-label { font-size: 0.82rem; color: var(--muted-color); line-height: 1.4; }


        :where(.pg-art-journey) .journey-chapter { margin: 3rem 0 0; }

        :where(.pg-art-journey) .chapter-num {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            color: var(--muted-color);
            margin-bottom: 0.35rem;
        }

        :where(.pg-art-journey) .journey-chapter h3 {
            font-size: 1.6rem;
            line-height: 1.2;
            letter-spacing: 0.5px;
            margin-bottom: 1rem;
        }

        :where(.pg-art-journey) .journey-chapter p {
            font-size: 1.08rem;
            line-height: 1.85;
            color: var(--text-color);
        }

        :where(.pg-art-journey) .journey-chapter p + p { margin-top: 1.15rem; }


        :where(.pg-art-journey) .drop-cap::first-letter {
            float: left;
            font-size: 4.2rem;
            line-height: 0.85;
            font-weight: 700;
            padding: 0.35rem 0.6rem 0 0;
        }


        :where(.pg-art-journey) .pull-quote {
            position: relative;
            margin: 3.25rem 0 0;
            padding: 0.25rem 0 0.25rem 1.75rem;
            border-left: 3px solid var(--text-color);
        }

        :where(.pg-art-journey) .pull-quote::before {
            content: '\201C';
            position: absolute;
            left: 1.5rem;
            top: -2.4rem;
            font-size: 5rem;
            line-height: 1;
            font-weight: 700;
            color: var(--border-strong);
        }

        :where(.pg-art-journey) .pull-quote p {
            font-size: 1.5rem;
            line-height: 1.45;
            font-weight: 500;
            letter-spacing: 0.2px;
        }


        :where(.pg-art-journey) .journey-highlight {
            margin: 2.5rem 0 0;
            padding: 1.75rem 2rem;
            background: var(--primary-color);
            border: 1px solid var(--border-color);
            border-top: 3px solid var(--text-color);
        }

        :where(.pg-art-journey) .journey-highlight-label {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--muted-color);
            margin-bottom: 0.75rem;
        }

        :where(.pg-art-journey) .journey-highlight p:last-child { font-size: 1.12rem; line-height: 1.8; }


        @media (max-width: 768px) {
            :where(.pg-art-journey) .journey { padding: 0.5rem 0 1rem; }
            :where(.pg-art-journey) .journey-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            :where(.pg-art-journey) .journey-chapter { margin-top: 2.25rem; }
            :where(.pg-art-journey) .journey-chapter h3 { font-size: 1.35rem; }
            :where(.pg-art-journey) .journey-chapter p { font-size: 1rem; line-height: 1.75; }
            :where(.pg-art-journey) .pull-quote { padding-left: 1.25rem; margin-top: 2.75rem; }
            :where(.pg-art-journey) .pull-quote::before { left: 1rem; font-size: 4rem; top: -2rem; }
            :where(.pg-art-journey) .pull-quote p { font-size: 1.22rem; }
            :where(.pg-art-journey) .journey-highlight { padding: 1.25rem 1.25rem; }
            :where(.pg-art-journey) .drop-cap::first-letter { font-size: 3.4rem; }
        }

/* ---- only on: art-on-chain ---- */


        /* ===== Art On-Chain (experimental) ===== */
        :where(.pg-art-on-chain) .onchain-intro { max-width: 1100px; margin: 0 auto; }

        :where(.pg-art-on-chain) .onchain-intro p { line-height: 1.75; color: var(--muted-color); }

        :where(.pg-art-on-chain) .onchain-intro p strong { color: var(--text-color); }


        :where(.pg-art-on-chain) .platforms {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 1rem;
            max-width: 1100px;
            margin: 1.5rem auto 0;
        }

        :where(.pg-art-on-chain) .platforms .about-card { background: var(--primary-color); }


        :where(.pg-art-on-chain) .gallery-toolbar {
            max-width: 1100px;
            margin: 0 auto 1.5rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }

        :where(.pg-art-on-chain) .chip {
            font: inherit;
            font-size: 0.85rem;
            padding: 0.45rem 0.9rem;
            border-radius: 999px;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-color);
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        :where(.pg-art-on-chain) .chip:hover { border-color: var(--border-strong); }

        :where(.pg-art-on-chain) .chip[aria-pressed="true"] { background: var(--text-color); color: var(--primary-color); border-color: var(--text-color); }

        :where(.pg-art-on-chain) .chip .count { opacity: 0.6; margin-left: 0.3rem; }

        :where(.pg-art-on-chain) .gallery-status { color: var(--muted-color); font-size: 0.9rem; margin-left: auto; }


        :where(.pg-art-on-chain) .gallery {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.25rem;
        }

        :where(.pg-art-on-chain) .token { display: flex; flex-direction: column; gap: 0.5rem; }

        :where(.pg-art-on-chain) .token-img {
            aspect-ratio: 1 / 1;
            background: var(--dark-bg);
            border: 1px solid var(--border-color);
            overflow: hidden;
        }

        :where(.pg-art-on-chain) .token-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }

        :where(.pg-art-on-chain) .token:hover .token-img img { transform: scale(1.03); }

        :where(.pg-art-on-chain) .token-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }

        :where(.pg-art-on-chain) .token-meta { font-size: 0.78rem; color: var(--muted-color); letter-spacing: 0.04em; }

        :where(.pg-art-on-chain) .token:hover { text-decoration: none; }


        :where(.pg-art-on-chain) .skeleton .token-img { animation: pulse 1.4s ease-in-out infinite; }

        :where(.pg-art-on-chain) .skeleton .token-name,
        :where(.pg-art-on-chain) .skeleton .token-meta { height: 0.8rem; background: var(--dark-bg); border-radius: 3px; }

        :where(.pg-art-on-chain) .skeleton .token-meta { width: 60%; }

        @keyframes pulse { 50% { opacity: 0.5; } }


        :where(.pg-art-on-chain) .gallery-more { text-align: center; margin: 2rem 0 0; }

        :where(.pg-art-on-chain) .gallery-more button {
            font: inherit;
            padding: 0.75rem 1.5rem;
            border: 1px solid var(--border-strong);
            background: transparent;
            color: var(--text-color);
            cursor: pointer;
        }

        :where(.pg-art-on-chain) .gallery-more button:hover { background: var(--chip-bg); }


        :where(.pg-art-on-chain) .gallery-error {
            max-width: 1100px;
            margin: 0 auto;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            background: var(--primary-color);
        }

        :where(.pg-art-on-chain) .gallery-error a { text-decoration: underline; text-underline-offset: 3px; }


        :where(.pg-art-on-chain) .experimental-tag {
            display: inline-block;
            font-size: 0.7rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            border: 1px solid currentColor;
            padding: 0.2rem 0.55rem;
            margin-bottom: 1rem;
        }


        @media (max-width: 900px) { :where(.pg-art-on-chain) .platforms { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 768px) {
            :where(.pg-art-on-chain) .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
            :where(.pg-art-on-chain) .gallery-status { width: 100%; margin-left: 0; }
            :where(.pg-art-on-chain) .token-name { font-size: 0.88rem; }
        }


        /* Chain cards */
        :where(.pg-art-on-chain) .chain-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.25rem;
            max-width: 1100px;
            margin: 1.5rem auto 0;
        }

        :where(.pg-art-on-chain) .chain-card { display: flex; flex-direction: column; gap: 0.35rem; }

        :where(.pg-art-on-chain) .chain-card:hover { text-decoration: none; }

        :where(.pg-art-on-chain) .chain-card-media {
            display: block;
            aspect-ratio: 1 / 1;
            overflow: hidden;
            background: var(--primary-color);
            border: 1px solid var(--border-color);
            margin-bottom: 0.4rem;
        }

        :where(.pg-art-on-chain) .chain-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }

        :where(.pg-art-on-chain) .chain-card:hover .chain-card-media img { transform: scale(1.03); }

        :where(.pg-art-on-chain) .chain-card-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--muted-color);
            background: repeating-linear-gradient(90deg, var(--dark-bg) 0 10px, var(--primary-color) 10px 20px);
        }

        :where(.pg-art-on-chain) .chain-card-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-color); }

        :where(.pg-art-on-chain) .chain-card-title { font-weight: 600; }

        :where(.pg-art-on-chain) .chain-card-desc { font-size: 0.88rem; color: var(--muted-color); line-height: 1.5; }


        :where(.pg-art-on-chain) .chain-jump { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem; margin: 1.25rem 0 0; max-width: none; }

        :where(.pg-art-on-chain) .chain-jump .chip:hover { text-decoration: none; }


        :where(.pg-art-on-chain) #chains { padding-top: 3.5rem; margin-top: 0; }


        @media (max-width: 768px) {
            :where(.pg-art-on-chain) .chain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
            :where(.pg-art-on-chain) .chain-card-desc { font-size: 0.82rem; }
        }


        /* Jump buttons (stand out) */
        :where(.pg-art-on-chain) .chain-jump { gap: 0.75rem; margin-top: 1.75rem; }

        :where(.pg-art-on-chain) .jump-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.8rem 1.35rem;
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 0.3px;
            background: var(--text-color);
            color: var(--primary-color);
            border: 1px solid var(--text-color);
            transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
        }

        :where(.pg-art-on-chain) .jump-btn:hover {
            text-decoration: none;
            background: transparent;
            color: var(--text-color);
            transform: translateY(-2px);
        }

        :where(.pg-art-on-chain) .jump-arrow { font-size: 1.05rem; line-height: 1; }


        /* Filter chips: top 10 + More */
        :where(.pg-art-on-chain) .chip-more { border-style: dashed; }

        :where(.pg-art-on-chain) .chip[hidden] { display: none; }


        @media (max-width: 768px) {
            :where(.pg-art-on-chain) .chain-jump { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
            :where(.pg-art-on-chain) .jump-btn { justify-content: space-between; padding: 0.75rem 1rem; font-size: 0.95rem; }
        }


        /* ===== Chain bar (sticky) ===== */
        :where(.pg-art-on-chain) .chain-tabs {
            position: sticky;
            top: var(--header-h, 71px);
            z-index: 900;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            max-width: none;
            margin: 0;
            padding: 0.75rem max(var(--spacing), calc((100% - 1100px) / 2));
            gap: 0.75rem;
            background: var(--dark-bg);
            border-bottom: 1px solid var(--border-color);
        }

        :where(.pg-art-on-chain) .chain-tab {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            padding: 0.85rem 1.1rem;
            background: var(--primary-color);
            border: 1px solid var(--border-color);
            border-top: 3px solid var(--border-color);
            transition: border-color 0.2s ease, transform 0.15s ease;
        }

        :where(.pg-art-on-chain) .chain-tab:hover { text-decoration: none; border-color: var(--border-strong); }

        :where(.pg-art-on-chain) .chain-tab.is-active { border-top-color: var(--text-color); }

        :where(.pg-art-on-chain) .chain-tab-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.5px; }

        :where(.pg-art-on-chain) .chain-tab-sub { font-size: 0.8rem; color: var(--muted-color); line-height: 1.35; }


        :where(.pg-art-on-chain) .live-heading {
            max-width: 1100px;
            margin: 0 auto 1rem;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--muted-color);
        }

        :where(.pg-art-on-chain) .tezos-live { padding-top: 0.5rem !important; margin-top: 0 !important; }

        :where(.pg-art-on-chain) #tezos { padding-bottom: 1rem; }


        :where(.pg-art-on-chain) .chain-card-media.no-img {
            display: flex;
            align-items: center;
            justify-content: center;
            background: repeating-linear-gradient(90deg, var(--dark-bg) 0 10px, var(--primary-color) 10px 20px);
        }

        :where(.pg-art-on-chain) .chain-card-media.no-img::after {
            content: attr(data-label);
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--muted-color);
        }


        :where(.pg-art-on-chain) .gallery-project-link { max-width: 1100px; margin: -0.5rem auto 1.25rem; font-size: 0.9rem; }

        :where(.pg-art-on-chain) .gallery-project-link a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }


        :where(.pg-art-on-chain) .token-img.no-img {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1rem;
            font-size: 0.8rem;
            color: var(--muted-color);
            background: repeating-linear-gradient(90deg, var(--dark-bg) 0 8px, var(--primary-color) 8px 16px);
        }


        @media (max-width: 768px) {
            :where(.pg-art-on-chain) .chain-tabs { top: var(--header-h, 77px); padding: 0.5rem 1rem; gap: 0.5rem; }
            :where(.pg-art-on-chain) .chain-tab { padding: 0.6rem 0.7rem; align-items: center; text-align: center; }
            :where(.pg-art-on-chain) .chain-tab-name { font-size: 0.98rem; }
            :where(.pg-art-on-chain) .chain-tab-sub { display: none; }
        }


        :where(.pg-art-on-chain) .gallery .token[hidden] { display: none; }

        :where(.pg-art-on-chain) .gallery-empty { grid-column: 1 / -1; color: var(--muted-color); padding: 1rem 0; }


        /* Sections no longer overlap each other (in-page links are offset by script and scroll-padding) */
        section[id] { margin-top: 0; padding-top: var(--spacing); }

/* ---- only on: process ---- */
/* The Process page header keeps its slightly taller padding */
:where(.pg-process) header { padding-top: var(--spacing); padding-bottom: var(--spacing); }

/* ===== Videos inside figures (all pages) ===== */
.figure video { width: 100%; height: auto; display: block; background: #000; }

/* ===== Tate Events: film intro and Recent Tate Events cards ===== */
.event-film-title { font-size: 1.25rem; margin: 0 0 0.75rem; letter-spacing: 0.3px; }
.event-film-credit { font-style: italic; color: var(--muted-color); }
.event-film-links a, .event-card-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

.recent-heading {
    max-width: 1100px;
    margin: 2.5rem auto 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-color);
}
.event-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}
.event-card { display: flex; flex-direction: column; gap: 0.5rem; }
.event-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.event-card-img:hover img { transform: scale(1.03); }
.event-card-date { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-color); }
.event-card h4 { font-size: 1.15rem; line-height: 1.35; }
.event-card p { line-height: 1.65; color: var(--muted-color); }
.event-card .event-card-date { color: var(--muted-color); }
@media (max-width: 768px) {
    .event-cards { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ===== Embedded YouTube videos (16:9, full column width) ===== */
.video-embed { aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
