 @font-face {
            font-family: 'TypestarOCR';
            src: url('../fonts/Typestar-OCR.otf') format('opentype');
            font-display: swap;
        }

        /* CSS Variables */
        :root {
            --black: #171717;
            --white: #ffffff;
            --yellow: #FFF800;
            --yellow-light: #FFF246;
            --gray: #666666;
            --gray-light: #f8f8f8;
            --transition: 0.3s ease;
        }
        
        /* Reset & Base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--white);
            background-color: var(--black);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* Snap Sections */
        .snap-section {
            min-height: 100vh;
            height: 100vh;
            display: flex;
            flex-direction: column;

            justify-content: center;
            padding: 40px 20px;
            position: relative;
            overflow: hidden;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            width: 90%;
        }
        
        /* Intro Section - Two Column Layout */
        .intro {
            padding-top: 110px;
            display: flex;
            flex-direction: column;
            justify-content: top;
            min-height: 100vh;
        }
        
        .intro-grid {
            display: grid;
            grid-template-columns: 1fr 30%;
            align-items: start;
			width: 95%;
        }
        
        /* Left Column: Logo */
        .intro-left {
            position: sticky;
            top: 60px;
			width: 75%;
        }
        
        .logo-link {
            text-decoration: none;
            display: inline-block;
        }

        .logo-container {
            display: inline-block;
            height: clamp(300px, 42vh, 480px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .logo-image {
            height: 100%;
            width: auto;
            display: block;
            filter: drop-shadow(0 0 2px rgba(255,255,255,0.12)) drop-shadow(0 3px 8px rgba(40,40,40,0.7));
        }

        /* Intro logo fades out on scroll */
        .logo-container.scrolled-away {
            opacity: 0;
            transform: scale(0.75) translateY(-16px);
            pointer-events: none;
        }

        /* Sticky nav header */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 500;
            padding: 20px 28px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }

        .site-header.visible {
            opacity: 1;
            pointer-events: none; /* only the logo link itself is clickable */
        }

        .header-logo {
            height: 86px;
            width: auto;
            display: block;
            transition: opacity 0.25s ease;
            filter: drop-shadow(0 0 2px rgba(255,255,255,0.12)) drop-shadow(0 3px 8px rgba(40,40,40,0.7));
        }

        #headerLogoLink {
            display: inline-block;
            pointer-events: auto;
        }

        #headerLogoLink:hover .header-logo {
            opacity: 0.75;
        }
        
        /* Right Column: Content */
        .intro-right {
            display: flex;
            flex-direction: column;
            gap: 60px;
			float:right;
        }
        
        .intro-header-links {
            display: flex;
            gap: 40px;
            align-items: flex-start;
        }
        
        .header-link {
            color: var(--white);
            text-decoration: none;
            font-family: monospace;
            font-size: 1.2rem;
            letter-spacing: 1px;
            transition: all var(--transition);
        }
        
        .header-link:hover {
            color: var(--yellow);
            text-decoration: underline;
        }

        /* Arrow icon — larger than surrounding text, always sans-serif */
        .arr {
            font-size: inherit;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 0;
            vertical-align: -0.08em;
            display: inline-block;
        }

        /* Description */
        .intro-description {
            max-width: 600px;
			font-weight: bold !important;
        }
        
        .description {
            font-size: 1.2rem;
            color: var(--gray);
            line-height: 1.3;
            font-weight: 500;
            letter-spacing: -0.01em;
        }
        
        /* Contact Links */
        .intro-contact {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }
        
        .contact-link {
            color: var(--white);
            text-decoration: none;
            font-family: monospace;
            font-size: 1.1rem;
            letter-spacing: 1px;
            transition: all var(--transition);
        }
        
        .contact-link:hover {
            color: var(--yellow);
            text-decoration: underline;
        }
        
        /* Scroll Instructions */
        .scroll-instructions {
            margin-top: 40px;
        }
        
        .scroll-text {
            font-family: monospace;
            font-size: 3rem;
            color: var(--yellow);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 20px;
        }
        
        kbd {
            font-family: monospace;
            font-size: 1.2rem;
            color: var(--white);
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 16px;
            border-radius: 4px;
            min-width: 50px;
            text-align: center;
            display: inline-block;
        }


        
        /* Project Sections */
        .project-section {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 40px;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .project-title {
            font-family: monospace;
            font-size: clamp(2.5rem, 6vw, 4rem);
            line-height: 1;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: -0.02em;
        }
        
        .project-meta {
            display: flex;
            gap: 40px;
            text-align: right;
        }
        
        .project-tag {
            font-family: monospace;
            font-size: 1.2rem;
            color: white;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .project-year {
            font-family: monospace;
            font-size: 1.2rem;
            color: var(--gray);
        }
        

                /* Full-width Images - 90% width */
        .project-images {
            width: 100%;
            margin: 0 auto 40px;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        .project-image {
            width: 100%;

            height: auto;
            min-height: 400px;
            max-height: 800px;
            background: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-family: monospace;
            font-size: 1.2rem;
            position: relative;
            overflow: hidden;
        }
        
        .project-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255, 248, 0, 0.1), transparent);
            opacity: 0;
            transition: opacity var(--transition);
        }
        
        .project-image:hover::after {
            opacity: 1;
        }
        
        /* Carousel Wrapper */
        .carousel-wrapper {
            position: relative;
            margin: 0 auto 40px;
        }

        /* Key Hint */
        .key-hint {
            position: fixed;
            bottom: 30px;
            right: 30px;
            color: var(--gray);
            font-family: monospace;
            font-size: 0.75rem;
            letter-spacing: 1px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
            z-index: 1000;
        }

        .key-hint.visible {
            opacity: 0.75;
        }

        /* Gallery Carousel - 90% width */
        .carousel-container {
            width: 100%;
            margin: 0 auto;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            scrollbar-color: var(--yellow) var(--black);
            -webkit-overflow-scrolling: touch;
            cursor: grab;
        }
        
        .carousel-container:active {
            cursor: grabbing;
        }
        
        .carousel-container::-webkit-scrollbar {
            height: 8px;
        }
        
        .carousel-container::-webkit-scrollbar-track {
            background: var(--black);
        }
        
        .carousel-container::-webkit-scrollbar-thumb {
            background-color: var(--yellow);
            border-radius: 4px;
        }
        
        .carousel {
            display: flex;
            gap: 20px;
            padding: 0 0 20px 0;
            min-width: min-content;
        }
        
        .carousel-image-link {
            text-decoration: none;
            display: inline-block;
            flex: 0 0 auto;
            position: relative;
            outline: none;
        }

        .carousel-image-link:focus,
        .carousel-image-link:active,
        #headerLogoLink:focus,
        #headerLogoLink:active {
            outline: none !important;
        }
        
        .carousel-image {
            width: 1080px; /* Shrunk by 100px */
            height: auto;
            object-fit: contain;
            display: block;
            position: relative;
            overflow: hidden;
            transition: transform var(--transition);
            background: #222;
        }
        
        .carousel-image-link:hover .carousel-image {
            opacity: 0.85;
        }
        
        .carousel-placeholder {
            width: 1080px; /* Shrunk by 100px */
            height: 475px; /* Shrunk proportionally, maintaining 3:4 ratio */
            background: #222;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-family: monospace;
            font-size: 1.2rem;
            position: relative;
            overflow: hidden;
            transition: transform var(--transition);
        }
        
        .carousel-image-link:hover .carousel-placeholder {
            opacity: 0.85;
        }
        
        /* Carousel Navigation */
        .carousel-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--gray);
            border: none;
            cursor: pointer;
            transition: all var(--transition);
        }
        
        .carousel-dot.active {
            background: var(--yellow);
            transform: scale(1.2);
        }
        
        .carousel-dot:hover {
            background: var(--yellow-light);
        }
        
        .project-description {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
            font-size: 1.2rem;
            line-height: 1.3;
        }
        
        .project-credits {
            font-family: 'TypestarOCR', 'Courier New', monospace;
            font-size: 0.9rem;
            color: var(--gray);
            line-height: 1.4;
        }

        /* Links within project descriptions */
        .project-description a {
            color: inherit;
            font-family: inherit;
            font-size: inherit;
            font-weight: inherit;
            text-decoration: none;
        }

        .project-description a:hover {
            color: var(--yellow);
            text-decoration: underline;
        }
        

        
        /* Scroll Indicator */
        .scroll-indicator {
            position: fixed;
            bottom: 30px;
            right: 30px;
            color: var(--yellow);
            font-family: monospace;
            font-size: 1.4rem;
            font-weight: bold;
            font-style: normal;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            transition: opacity 0.5s ease;
        }

        .scroll-indicator.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .scroll-arrow {
            width: 34px;
            height: 34px;
            flex-shrink: 0;
            animation: arrowPulse 1.8s ease-in-out infinite;
        }

        @keyframes arrowPulse {
            0%, 100% { transform: translateY(0); opacity: 1; }
            50% { transform: translateY(5px); opacity: 0.5; }
        }
        
        /* Remove all background hover coloring */
        a:hover {
            background-color: transparent !important;
        }
        
        /* Specific hover styles for different link types */
        .header-link:hover,
        .contact-link:hover {
            color: var(--yellow) !important;
            text-decoration: underline !important;
            text-decoration-color: var(--yellow);
            text-underline-offset: 4px;
        }
        
        /*::selection {
            background-color: var(--yellow);
            color: var(--black);
        }*/
        
        /* Lightbox arrows — desktop only, outside image, low opacity */
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--white);
            font-size: 3rem;
            cursor: pointer;
            opacity: 0.25;
            transition: opacity var(--transition);
            padding: 20px;
            z-index: 2100;
        }

        .lightbox-nav:hover {
            opacity: 0.8;
        }

        .lightbox-prev { left: 20px; }
        .lightbox-next { right: 20px; }

        .lightbox-hint {
            color: var(--gray);
            font-family: monospace;
            font-size: 0.7rem;
            letter-spacing: 1px;
            text-align: center;
            margin-top: 12px;
            opacity: 0.6;
        }

        /* Responsive - Tablet & Mobile */
        @media (max-width: 768px) {
            .snap-section {
                height: auto;
                min-height: 100svh;
                padding: 24px 15px;
                justify-content: flex-start;
            }
            
            /* Landscape mode adjustments - Prevent zooming */
            @media (orientation: landscape) {
                html, body {
                    height: 100%;
                    overflow-x: hidden;
                    -webkit-text-size-adjust: 100%;
                    -ms-text-size-adjust: 100%;
                    text-size-adjust: 100%;
                }
                
                .snap-section {
                    min-height: 100vh;
                    height: 100vh;
                    padding: 15px 20px;
                    overflow-y: auto;
                    -webkit-overflow-scrolling: touch;
                }
                
                .container {
                    width: 100%;
                    max-width: none;
                }
                
                .intro {
                    padding-top: 15px;
                    justify-content: center;
                }
                
                .intro-grid {
                    gap: 20px;
                    width: 100%;
                    grid-template-columns: 1fr;
                    align-items: center;
                }
                
                .logo-container {
                    width: 50vw;
                    max-width: 280px;
                    margin: 0 auto;
                }
                
                .logo-image {
                    max-height: 140px;
                    width: auto;
                    height: auto;
                }
                
                .intro-right {
                    gap: 25px;
                }
                
                .intro-header-links {
                    gap: 25px;
                    justify-content: center;
                }
                
                .header-link {
                    font-size: 1rem;
                    white-space: nowrap;
                }
                
                .intro-description {
                    text-align: center;
                }
                
                .description {
                    font-size: 1.1rem;
                    line-height: 1.4;
                    max-width: 90%;
                    margin: 0 auto;
                }
                
                .intro-contact {
                    gap: 25px;
                    justify-content: center;
                }
                
                .contact-link {
                    font-size: 1rem;
                }
                
                .project-title {
                    font-size: 1.8rem;
                }
                
                .project-description {
                    font-size: 1rem;
                    line-height: 1.4;
                }
                
                /* Carousel adjustments for landscape */
                .carousel-image {
                    width: 70vw;
                    height: 50vw;
                }
                
                /* Adjust for very short landscape screens */
                @media (max-height: 400px) {
                    .snap-section {
                        padding: 10px 15px;
                    }
                    
                    .logo-container {
                        width: 45vw;
                        max-width: 220px;
                    }
                    
                    .logo-image {
                        max-height: 100px;
                    }
                    
                    .intro-header-links {
                        gap: 15px;
                    }
                    
                    .header-link {
                        font-size: 0.85rem;
                    }
                    
                    .description {
                        font-size: 0.95rem;
                        line-height: 1.3;
                    }
                    
                    .intro-contact {
                        gap: 15px;
                    }
                    
                    .contact-link {
                        font-size: 0.85rem;
                    }
                    
                    .project-title {
                        font-size: 1.5rem;
                    }
                    
                    .project-description {
                        font-size: 0.9rem;
                        line-height: 1.3;
                    }
                    
                    .carousel-image {
                        width: 65vw;
                        height: 45vw;
                    }
                }
                
                /* Adjust for tall landscape screens (tablets) */
                @media (min-height: 600px) and (orientation: landscape) {
                    .snap-section {
                        padding: 25px 30px;
                    }
                    
                    .logo-container {
                        width: 55vw;
                        max-width: 320px;
                    }
                    
                    .logo-image {
                        max-height: 160px;
                    }
                    
                    .intro-header-links {
                        gap: 30px;
                    }
                    
                    .header-link {
                        font-size: 1.1rem;
                    }
                    
                    .description {
                        font-size: 1.2rem;
                        line-height: 1.5;
                    }
                    
                    .intro-contact {
                        gap: 30px;
                    }
                    
                    .contact-link {
                        font-size: 1.1rem;
                    }
                    
                    .project-title {
                        font-size: 2rem;
                    }
                    
                    .project-description {
                        font-size: 1.1rem;
                        line-height: 1.5;
                    }
                    
                    .carousel-image {
                        width: 75vw;
                        height: 55vw;
                    }
                }
            }
            
            .container {
                width: 100%;
            }
            
            /* Intro section mobile improvements */
            .intro {
                padding-top: 40px;
                min-height: 100vh;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .intro-grid {
                grid-template-columns: 1fr;
                gap: 40px;
                width: 95%;
                margin: 0 auto;
            }
            
            .intro-left {
                position: static;
                width: 100%;
                text-align: center;
                order: 1;
                display: flex;
                justify-content: center;
            }
            
            .logo-container {
                height: auto;
                width: 90vw;
                max-width: 400px;
                margin: 0 auto;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .logo-image {
                width: 100%;
                height: auto;
                max-height: 200px;
                object-fit: contain;
                margin: 0 auto;
                filter: drop-shadow(0 3px 8px rgba(0,0,0,0.7));
            }
            
            .intro-right {
                float: none;
                gap: 40px;
                order: 2;
                width: 100%;
            }
            
            .intro-header-links {
                gap: 30px;
                justify-content: space-between;
                flex-wrap: nowrap;
                width: 100%;
            }
            
            .header-link {
                font-size: 1rem;
                white-space: nowrap;
                text-align: left;
            }

            .intro-description {
                max-width: 100%;
                text-align: left;
                margin: 20px 0;
            }
            
            .description {
                font-size: 1.1rem;
                line-height: 1.4;
            }
            
            .intro-contact {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                width: 100%;
            }

            .contact-link {
                font-size: 1rem;
                text-align: left;
                color: rgba(255,255,255,0.75);
            }

            .description {
                color: rgba(255,255,255,0.85);
            }
            
            /* Project section mobile improvements */
            .project-header {
                flex-direction: column;
                align-items: flex-start;
                margin-bottom: 16px;
                gap: 4px;
                width: 100%;
            }

            .project-title {
                font-size: 1.8rem;
                margin: 0;
                white-space: normal;
                overflow: visible;
                text-overflow: unset;
                width: 100%;
            }

            .project-meta {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                gap: 0;
            }

            .project-tag,
            .project-year {
                font-size: 0.85rem;
                white-space: nowrap;
            }
            
            .project-description {
                grid-template-columns: 1fr;
                gap: 20px;
                font-size: 1.4rem;
                line-height: 1.6;
            }
            
            .project-credits {
                font-size: 0.8rem;
            }
            
            /* Carousel mobile improvements */
            .carousel-wrapper {
                margin: 0 0 16px;
            }

            .carousel-container {
                width: 100%;
                margin: 0;
            }

            .carousel {
                gap: 12px;
            }

            .carousel-image {
                width: 82vw;
                height: 58vw;
                object-fit: contain;
            }
            

            
            /* Scroll indicator mobile */
            .scroll-indicator {
                bottom: 15px;
                right: 15px;
                font-size: 1rem;
            }

            .scroll-arrow {
                width: 24px;
                height: 24px;
            }

            /* Hide keyboard hint on mobile */
            .key-hint {
                display: none;
            }

            /* Hide lightbox arrows + hint on mobile */
            .lightbox-nav,
            .lightbox-hint {
                display: none;
            }

            /* Header logo: bottom-right on mobile */
            .site-header {
                top: auto;
                bottom: 20px;
                left: auto;
                right: 20px;
                transform: none;
                padding: 0;
                width: auto;
            }

            .header-logo {
                height: 60px;
            }

            /* Carousel full width on mobile */
            .carousel-image {
                width: calc(100vw - 30px);
                height: auto;
                object-fit: contain;
            }

            /* Enlarge text to fill whitespace */
            .project-title {
                font-size: 2.4rem;
            }

            .project-tag,
            .project-year {
                font-size: 1.05rem;
            }

            .project-description {
                font-size: 1.4rem;
                line-height: 1.6;
            }

            .description {
                font-size: 1.2rem;
                line-height: 1.45;
            }

            .header-link,
            .contact-link {
                font-size: 1.15rem;
            }

            /* M&P and all sections: consistent carousel-to-text gap */
            .carousel-wrapper {
                margin-bottom: 24px;
            }
        }
        
        @media (max-width: 480px) {
			
			.project-description {
                font-size: 0.98rem !important;
                line-height: 1.5rem !important;
            }


            .snap-section {
                padding: 30px 10px;
            }
            
            .logo-container {
                width: 85vw;
                max-width: 350px;
            }
            
            .logo-image {
                max-height: 180px;
            }
            
            .intro-header-links {
                gap: 10px;
            }
            
            .header-link {
                font-size: 0.9rem;
            }
            
            .description {
                font-size: 1rem;
                line-height: 1.3;
            }
            
            .intro-contact {
                gap: 10px;
            }
            
            .contact-link {
                font-size: 0.9rem;
            }
            
            .project-title {
                font-size: 1.5rem;
            }
            
            .project-tag,
            .project-year {
                font-size: 0.7rem;
            }
            
            
            .project-credits {
                font-size: 0.7rem;
            }
            
            .project-title {
                font-size: 1.4rem;
            }
            
            .back-to-top {
                bottom: 10px;
                right: 10px;
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .scroll-indicator {
                bottom: 10px;
                right: 10px;
                font-size: 0.85rem;
            }
        }
        
        
        /* Lightbox Styles */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lightbox.active {
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }
        
        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .lightbox-image {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            display: block;
        }
        
        .lightbox-caption {
            color: var(--white);
            font-family: monospace;
            font-size: 1rem;
            text-align: center;
            margin-top: 20px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 4px;
        }
        
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: var(--white);
            font-size: 2rem;
            line-height: 1;
            cursor: pointer;
            opacity: 0.25;
            transition: opacity var(--transition);
            padding: 8px;
            z-index: 2100;
        }

        .lightbox-close:hover {
            opacity: 0.85;
        }

        /* Mobile bottom navigation */
        .lightbox-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            padding: 15px;
            z-index: 2100;
            justify-content: space-between;
            gap: 10px;
        }
        
        .lightbox-bottom-prev,
        .lightbox-bottom-next {
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--white);
            font-family: monospace;
            font-size: 1rem;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            transition: all var(--transition);
        }
        
        .lightbox-bottom-prev:hover,
        .lightbox-bottom-next:hover {
            background: rgba(255, 248, 0, 0.2);
            border-color: var(--yellow);
            color: var(--yellow);
        }
        
        /* Show bottom navigation only on mobile */
        @media (max-width: 768px) {
            .lightbox-bottom-nav {
                display: flex;
            }
            
            /* Hide side arrows on mobile */
            .lightbox-nav {
                display: none;
            }
            
            /* Adjust lightbox content for bottom nav */
            .lightbox-content {
                padding-bottom: 80px;
            }
        }
        
        /* Landscape mode optimizations - Prevent zooming */
        @media (max-width: 768px) and (orientation: landscape) {
            html, body {
                height: 100%;
                overflow-x: hidden;
            }
            
            .lightbox-content {
                max-width: 90%;
                max-height: 85vh;
                width: auto;
                height: auto;
                padding-bottom: 70px;
            }
            
            .lightbox-image {
                max-width: 100%;
                max-height: calc(85vh - 100px);
                width: auto;
                height: auto;
                object-fit: contain;
            }
            
            .lightbox-bottom-nav {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                padding: 12px 15px;
                background: rgba(0, 0, 0, 0.95);
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .lightbox-bottom-prev,
            .lightbox-bottom-next {
                padding: 10px 20px;
                font-size: 1rem;
                min-height: 44px; /* Minimum touch target size */
            }
            
            .lightbox-caption {
                font-size: 0.85rem;
                margin-top: 8px;
                padding: 6px 10px;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            
            .lightbox-hint {
                font-size: 0.6rem;
                margin-top: 6px;
                opacity: 0.7;
            }
            
            /* Force fixed positioning to prevent layout shifts */
            .lightbox {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100vw;
                height: 100vh;
                -webkit-overflow-scrolling: touch;
            }
            
            /* Adjust for very short landscape screens */
            @media (max-height: 400px) {
                .lightbox-content {
                    max-height: 75vh;
                    padding-bottom: 60px;
                }
                
                .lightbox-image {
                    max-height: calc(75vh - 80px);
                }
                
                .lightbox-bottom-nav {
                    padding: 8px 12px;
                }
                
                .lightbox-bottom-prev,
                .lightbox-bottom-next {
                    padding: 8px 15px;
                    font-size: 0.85rem;
                    min-height: 40px;
                }
                
                .lightbox-caption {
                    font-size: 0.75rem;
                    padding: 5px 8px;
                }
            }
            
            /* Adjust for tall landscape screens (tablets) */
            @media (min-height: 600px) and (orientation: landscape) {
                .lightbox-content {
                    max-height: 90vh;
                }
                
                .lightbox-image {
                    max-height: calc(90vh - 120px);
                }
                
                .lightbox-bottom-nav {
                    padding: 15px 20px;
                }
                
                .lightbox-bottom-prev,
                .lightbox-bottom-next {
                    padding: 12px 25px;
                    font-size: 1.1rem;
                }
            }
        }
        
        /* Hide navigation on very small screens */
        @media (max-width: 480px) {
            .lightbox-prev {
                left: 10px;
            }
            
            .lightbox-next {
                right: 10px;
            }
            
            .lightbox-bottom-prev,
            .lightbox-bottom-next {
                font-size: 0.9rem;
                padding: 10px 15px;
            }
        }

/* ── Art Footer (badge) ── */
@keyframes badge-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 500;
    padding: 20px 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.site-footer.visible {
    opacity: 1;
    pointer-events: none;
}
.footer-badge {
    display: block;
    width: 110px;
    height: auto;
    pointer-events: auto;
    animation: badge-float 3.2s ease-in-out infinite;
}
.footer-badge img {
    width: 100%;
    display: block;
    animation: badge-spin 20s linear infinite;
}
.footer-badge:hover img {
    animation-duration: 0.65s;
}
@media (max-width: 768px) {
    .site-footer { padding: 14px 18px; }
    .footer-badge { width: 80px; }
}
