html {
            scroll-behavior: smooth; /* Smooth scrolling for anchor links */
        }
        #home, #gallery, #blog {
            scroll-margin-top: 100px;
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f0f4f8; /* A light blue-gray background */
            min-height: 100vh; /* Ensure body takes full height */
            display: flex; /* Use flexbox for overall layout */
            flex-direction: column; /* Stack header, main, footer vertically */
            align-items: center; /* Center content horizontally */
            padding: 1.5rem; 
        }

        /* Custom classes for consistent tag styling, using Tailwind color palette */
        .tag-yellow { background-color: #fef3c7; color: #b45309; }
        .tag-green { background-color: #d1fae5; color: #065f46; }
        .tag-blue { background-color: #dbeafe; color: #1e40af; }
        .tag-purple { background-color: #e9d5ff; color: #6b21a8; }
        .tag-indigo { background-color: #e0e7ff; color: #3730a3; }
        .tag-red { background-color: #fee2e2; color: #991b1b; }
        .tag-slate { background-color: #e2e8f0; color: #1e293b; }

        /* Image Protection: Disable iOS/Android long-press save menu and dragging on images */
        img,
        .image-card img,
        .image-grid img,
        #gallery-container img,
        .blog-link img,
        .other-blog-image,
        #modal-image,
        #fullscreen-image,
        #blog-cover-image {
            -webkit-touch-callout: none !important; /* Disables iOS/Android long-press popup menu */
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            -webkit-user-drag: none !important;
            box-shadow: none !important;
            -webkit-box-shadow: none !important;
        }

        #blog-modal .tag-button {
            cursor: pointer;
        }
        
        /* Modal specific styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Pure semi-transparent black overlay for image and blog modals */
            background-color: rgba(0, 0, 0, 0.75);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 50;
            opacity: 0;
            visibility: hidden;
            overflow: hidden;
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
            transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s;
        }
        
        /* New class to show modal and prevent body scroll */
        .modal-overlay.modal-active {
            opacity: 1;
            visibility: visible;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        body.modal-active {
            overflow: hidden;
        }
        
        /* Modal Dialog Container - Acts as the dynamic anchor for flanking navigation arrows */
        .modal-dialog {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: auto;
            pointer-events: none; /* Allows clicks on backdrop area to reach overlay */
        }

        .modal-dialog > * {
            pointer-events: auto; /* Re-enables interaction for modal content and arrow buttons */
        }

        .image-modal-dialog {
            max-width: min(1024px, calc(100vw - 128px));
        }

        .blog-modal-dialog {
            max-width: min(1200px, calc(100vw - 128px));
        }

        @media (max-width: 767px) {
            .image-modal-dialog, .blog-modal-dialog {
                max-width: 92vw;
            }
        }

        /* Blog Modal content styling - WIDENED FOR SIDE-BY-SIDE LAYOUT */
        #blog-modal .modal-content {
            background-color: #fff;
            padding: 1.5rem;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            width: 100%;
            max-width: 100%;
            max-height: 95vh; /* Max height to allow scrolling */
            position: relative;
            transform: scale(0.94) translateY(12px);
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            overflow-y: auto; /* Enable scrolling for blog content */
        }

        #blog-modal.modal-active .modal-content,
        .modal-overlay.modal-active .modal-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        /* Blog modal layout - Clean modern 2-column flex with sticky sidebar */
        .blog-modal-layout {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            width: 100%;
            position: relative;
        }

        @media (min-width: 768px) {
            .blog-modal-layout {
                flex-direction: row;
                align-items: flex-start;
                justify-content: space-between;
                gap: 2.25rem;
            }

            .blog-main-content {
                flex: 1 1 0%;
                min-width: 0;
                max-width: calc(100% - 315px);
            }

            .blog-sidebar {
                width: 290px;
                flex-shrink: 0;
                position: sticky;
                top: 2rem;
                align-self: flex-start;
                margin-top: 1.75rem; /* Generous clearance so the modal close button is completely above the sidebar */
            }
        }

        @media (max-width: 767px) {
            .blog-main-content {
                width: 100%;
            }

            .blog-sidebar {
                width: 100%;
                margin-top: 1.5rem;
            }
        }

        /* Blog Header Container - Perfectly lines up cover image with text and action buttons */
        .blog-header-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
            width: 100%;
        }

        @media (min-width: 640px) {
            .blog-header-container {
                flex-direction: row;
                align-items: stretch;
            }
        }

        .blog-cover-container {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #blog-cover-image {
            width: auto !important;
            max-width: 190px !important;
            max-height: 270px !important;
            height: auto !important;
            object-fit: contain !important;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin: 0 !important;
            cursor: pointer;
            transition: opacity 0.2s ease;
        }

        #blog-cover-image:hover {
            opacity: 0.9;
        }

        .blog-header-details {
            flex: 1 1 0%;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-self: stretch;
            padding: 0.25rem 0;
            text-align: center;
        }

        @media (min-width: 640px) {
            .blog-header-details {
                text-align: left;
            }
        }

        .blog-header-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.25rem;
            margin-top: 1.25rem;
        }

        @media (min-width: 640px) {
            .blog-header-actions {
                justify-content: flex-start;
                margin-top: auto;
                padding-top: 0.5rem;
            }
        }



        #image-modal {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 50;
        }

        #image-modal-content {
            background-color: #fff;
            padding: 3.75rem 1.25rem 1.5rem 1.25rem !important; /* Ample top clearance so close button sits cleanly above the image with zero overlap */
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            width: 100%;
            max-width: 100%;
            max-height: 88vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            -ms-overflow-style: none !important;
            scrollbar-width: none !important;
            position: relative;
            transform: scale(0.94) translateY(12px);
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        /* Smooth Scroll-Margin Anchor for Section Headings */
        #gallery h2,
        #blog h2,
        #about h2,
        section h2 {
            scroll-margin-top: 5.5rem;
        }

        @media (max-width: 767px) {
            #gallery h2,
            #blog h2,
            #about h2,
            section h2 {
                scroll-margin-top: 4.5rem;
            }
        }

        /* View More / View Less Button (Light mode: White interior, Black font, Slight border matching other tabs) */
        .view-more-btn {
            background-color: #ffffff !important;
            color: #18181b !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            padding: 0.65rem 1.75rem;
            border-radius: 9999px;
            font-weight: 600;
            margin-top: 1.5rem;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
        }

        .view-more-btn i,
        .view-more-btn span {
            color: #18181b !important;
        }

        /* Hover State: Amber Brown Border with Amber Brown Text (Matching other tabs) */
        .view-more-btn:hover {
            background-color: #ffffff !important;
            color: #b45309 !important;
            border: 2px solid #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-1px);
        }

        .view-more-btn:hover i,
        .view-more-btn:hover span {
            color: #b45309 !important;
        }

        /* Dark / Night Mode Default State */
        .dark .view-more-btn {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.2) !important;
        }

        .dark .view-more-btn i,
        .dark .view-more-btn span {
            color: #ffffff !important;
        }

        /* Dark / Night Mode Hover State: Amber Brown border with Amber Brown Text */
        .dark .view-more-btn:hover {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #b45309 !important;
            border: 2px solid #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-1px);
        }

        .dark .view-more-btn:hover i,
        .dark .view-more-btn:hover span {
            color: #b45309 !important;
        }

        /* Selected / Active State: Solid Amber Brown Background with White Font */
        .view-more-btn.active,
        .view-more-btn.inversed,
        .dark .view-more-btn.active,
        .dark .view-more-btn.inversed,
        .view-more-btn.active:hover,
        .dark .view-more-btn.active:hover {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            border: none !important;
            font-weight: 700 !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.45) !important;
        }

        .view-more-btn.active i,
        .view-more-btn.active span,
        .view-more-btn.inversed i,
        .view-more-btn.inversed span,
        .dark .view-more-btn.active i,
        .dark .view-more-btn.active span,
        .dark .view-more-btn.inversed i,
        .dark .view-more-btn.inversed span {
            color: #ffffff !important;
        }

        /* Gallery Filter Dropdown Styling - Light Mode & Dark Mode Harmonization */
        #gallery-filter-dropdown,
        .filter-dropdown {
            background-color: #ffffff !important;
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            border-radius: 1rem !important;
            padding: 0.5rem !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 15px rgba(180, 83, 9, 0.12) !important;
            z-index: 50 !important;
        }

        #gallery-filter-dropdown .filter-option,
        .filter-dropdown .filter-option,
        #gallery-filter-dropdown button,
        .filter-dropdown button {
            color: #18181b !important;
            background-color: transparent !important;
            background: transparent !important;
            border-radius: 0.75rem !important;
            padding: 0.6rem 1rem !important;
            font-weight: 600 !important;
            transition: all 0.2s ease !important;
            text-align: left !important;
            width: 100% !important;
            border: 2px solid transparent !important;
            outline: none !important;
            box-shadow: none !important;
        }

        /* Hover State: Amber Brown Border & Amber Brown Font */
        #gallery-filter-dropdown .filter-option:hover,
        .filter-dropdown .filter-option:hover,
        #gallery-filter-dropdown button:hover,
        .filter-dropdown button:hover {
            background-color: #ffffff !important;
            background: #ffffff !important;
            color: #b45309 !important;
            border: 2px solid #b45309 !important;
            border-color: #b45309 !important;
        }

        /* Active / Selected State: Solid Amber Brown Background with Crisp White Font */
        #gallery-filter-dropdown .filter-option.active,
        .filter-dropdown .filter-option.active,
        #gallery-filter-dropdown button.active,
        .filter-dropdown button.active,
        #gallery-filter-dropdown .filter-option.active:hover,
        .filter-dropdown .filter-option.active:hover,
        #gallery-filter-dropdown button.active:hover,
        .filter-dropdown button.active:hover {
            background-color: #b45309 !important;
            background: #b45309 !important;
            color: #ffffff !important;
            fill: #ffffff !important;
            border: 2px solid #b45309 !important;
            border-color: #b45309 !important;
        }

        /* Complete scrollbar hiding across the entire website & modals while preserving full scrolling */
        html,
        body,
        #image-modal-content,
        #blog-modal .modal-content,
        .modal-content,
        .gallery-tab-content,
        .gallery-tabs-scrollable,
        .nav-tabs-scrollable,
        .blog-tag-filters-scroll {
            -ms-overflow-style: none !important; /* IE and Edge */
            scrollbar-width: none !important; /* Firefox */
        }

        html::-webkit-scrollbar,
        body::-webkit-scrollbar,
        #image-modal-content::-webkit-scrollbar,
        #blog-modal .modal-content::-webkit-scrollbar,
        .modal-content::-webkit-scrollbar,
        .gallery-tab-content::-webkit-scrollbar,
        .gallery-tabs-scrollable::-webkit-scrollbar,
        .nav-tabs-scrollable::-webkit-scrollbar,
        .blog-tag-filters-scroll::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        /* Fixed Floating Tactile Modal Close Buttons */
        .modal-close-btn, #image-modal-close-btn, #blog-modal-close-btn {
            position: absolute !important;
            top: 0.85rem !important;
            right: 0.85rem !important;
            background: #ffffff !important;
            color: #44403c !important;
            border: 1px solid rgba(214, 211, 209, 0.9) !important;
            border-radius: 9999px !important;
            width: 2.25rem !important;
            height: 2.25rem !important;
            font-size: 1.1rem !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
            z-index: 100 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .modal-close-btn:hover, #image-modal-close-btn:hover, #blog-modal-close-btn:hover {
            color: #b45309 !important;
            background-color: #ffffff !important;
            border-color: #b45309 !important;
            transform: rotate(90deg) scale(1.1) !important;
            box-shadow: 0 6px 18px rgba(180, 83, 9, 0.25) !important;
        }

        .modal-close-btn:active, #image-modal-close-btn:active, #blog-modal-close-btn:active {
            transform: scale(0.92) !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        }
        
        #image-modal.modal-active #image-modal-content,
        .modal-overlay.modal-active #image-modal-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        #image-modal-content .image-wrapper {
            position: relative; /* Ensure this is relative for absolute positioning of children */
            flex-shrink: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            max-height: 65vh;
            overflow: hidden;
        }
        
        /* Fullscreen Modal Styles */
        #fullscreen-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: #000;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding: 1rem;
            box-sizing: border-box;
        }

        #fullscreen-modal.active {
            opacity: 1;
            visibility: visible;
        }

        #fullscreen-modal .fullscreen-title {
            color: white;
            font-size: clamp(1.25rem, 3.5vw, 2.25rem);
            font-weight: 700;
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
            text-align: center;
            margin-top: 0.25rem;
            margin-bottom: 0.75rem;
            padding: 0 5rem;
            max-width: 90%;
            line-height: 1.2;
        }

        #fullscreen-modal .fullscreen-image-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            width: 100%;
            max-width: 100%;
            max-height: calc(100% - 3.5rem);
            box-sizing: border-box;
            cursor: default;
        }

        #fullscreen-modal .fullscreen-image-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            max-width: calc(100% - 6rem);
            max-height: 100%;
            height: 100%;
            position: relative;
            overflow: hidden; /* Hide overflow when zooming */
        }

        #fullscreen-modal .fullscreen-image {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 0;
            box-shadow: none;
            display: block;
            cursor: zoom-in;
            user-select: none;
            -webkit-user-drag: none;
            touch-action: none;
            will-change: transform;
        }

        #fullscreen-modal .fullscreen-image.is-zoomed {
            cursor: grab;
        }

        #fullscreen-modal .fullscreen-image.is-zoomed:active {
            cursor: grabbing;
        }

        /* Navigation buttons for fullscreen - stuck to image sides */
        .fullscreen-nav-btn {
            position: static;
            transform: none;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.85rem;
            cursor: pointer;
            z-index: 25;
            width: 3rem;
            height: 3rem;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            user-select: none;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }

        .fullscreen-nav-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
        }

        .fullscreen-nav-btn.left:hover {
            transform: translateX(-5px) scale(1.18);
        }

        .fullscreen-nav-btn.right:hover {
            transform: translateX(5px) scale(1.18);
        }

        .fullscreen-nav-btn:active {
            transform: scale(0.9) !important;
            background: rgba(255, 255, 255, 0.25);
            color: #ffffff;
        }

        .fullscreen-nav-btn.key-active {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.3) !important;
            transform: scale(1.15) !important;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
        }

        .fullscreen-nav-btn.left.key-active {
            transform: translateX(-5px) scale(1.18) !important;
        }

        .fullscreen-nav-btn.right.key-active {
            transform: translateX(5px) scale(1.18) !important;
        }

        @media (max-width: 767px) {
            #fullscreen-modal .fullscreen-image-container {
                gap: 0.35rem;
            }

            #fullscreen-modal .fullscreen-image-wrapper {
                max-width: calc(100% - 4rem);
            }

            .fullscreen-nav-btn {
                font-size: 1.35rem;
                padding: 0.35rem 0.15rem;
            }
        }

        /* Regular modal image wrapper styles */
        #image-modal-content .image-wrapper img {
            width: auto;
            max-width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        @media (min-width: 768px) {
            #image-modal-content {
                flex-direction: row;
                gap: 2.5rem;
                padding: 3.5rem 2rem 2rem 2rem !important;
                align-items: stretch; /* Stretch columns so title starts on the same line as the top of the image */
            }
            
            #image-modal-content .image-wrapper {
                width: 52%;
                max-height: 85vh;
                display: flex;
                align-items: flex-start; /* Aligns image to top */
                justify-content: center;
                flex-shrink: 0;
            }

            #image-modal-content .image-wrapper img {
                width: auto;
                max-width: 100%;
                max-height: 80vh;
                object-fit: contain;
                border-radius: 0.5rem;
                box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            }
            
            #image-modal-content .text-content {
                width: 48%;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                padding: 0;
            }
        }
        
        #image-modal-content .text-content {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            min-height: 0;
        }

        #image-modal-content #modal-title {
            margin-top: 0;
            line-height: 1.2;
        }

        #image-modal-content .image-modal-actions {
            margin-top: auto;
            padding-top: 1.5rem;
        }
        
        #image-modal-content .modal-description {
            overflow: visible;
        }
        
        /* Styling for the main blog post content */
        .blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
            font-weight: bold;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }

        .blog-content h1 { font-size: 2.25rem; }
        .blog-content h2 { font-size: 1.875rem; }
        .blog-content h3 { font-size: 1.5rem; }
        .blog-content h4 { font-size: 1.25rem; }
        .blog-content p {
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .blog-content a {
            color: #b45309;
            text-decoration: underline;
            transition: color 0.2s;
        }

        .blog-content a:hover {
            color: #78350f;
        }
        /* New CSS to handle list and blockquote styling inside the modal */
        .blog-content ul,
        .blog-content ol {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
            list-style-position: outside;
        }
        .blog-content ul {
            list-style-type: disc;
        }
        .blog-content ol {
            list-style-type: decimal;
        }
        .blog-content li {
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }
        .blog-content blockquote {
            border-left: 4px solid #f97316;
            padding-left: 1rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: #4b5563;
        }
        
        .blog-content img {
            display: block;
            margin: 1.5rem auto;
            max-width: 100%;
            height: auto;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        /* Tactile Raised Header Nav Pills - Comfortably Sized */
        .nav-link {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.55rem !important;
            padding: 0.55rem 1.35rem !important;
            background-color: #f5f5f4 !important;
            color: #1c1917 !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            border-radius: 9999px !important;
            font-weight: 600 !important;
            font-size: 0.98rem !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
            text-decoration: none !important;
        }

        .nav-link i, .nav-link svg {
            color: #b45309 !important;
            font-size: 1.08rem !important;
            transition: color 0.25s ease !important;
        }

        .nav-link:hover {
            background-color: #ffffff !important;
            color: #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-3px) scale(1.03) !important;
            box-shadow: 0 8px 20px rgba(180, 83, 9, 0.2) !important;
        }

        .nav-link:hover i, .nav-link:hover svg {
            color: #b45309 !important;
        }

        .nav-link.active {
            background-color: #b45309 !important;
            color: #ffffff !important;
            border-color: #92400e !important;
            box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35), 0 2px 4px rgba(180, 83, 9, 0.2) !important;
        }

        .nav-link.active i, .nav-link.active svg {
            color: #ffffff !important;
        }

        .nav-link:active {
            transform: translateY(0) scale(0.96) !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        }
        
        /* Raised Tab & Category Pills with Layered Shadows & Pop-Up Animations */
        .tab-button, .tag-filter-button {
            background-color: #f5f5f4 !important;
            color: #1c1917 !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }
    
        .tab-button.active, .tag-filter-button.active {
            background-color: #b45309 !important;
            color: #ffffff !important;
            border-color: #92400e !important;
            box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35), 0 2px 4px rgba(180, 83, 9, 0.2) !important;
            transform: translateY(-1px) !important;
        }

        .tab-button.active:hover, .tag-filter-button.active:hover {
            transform: translateY(-3px) scale(1.03) !important;
            box-shadow: 0 8px 22px rgba(180, 83, 9, 0.45) !important;
            filter: brightness(1.06) !important;
        }
        
        .tab-button:hover:not(.active), .tag-filter-button:hover:not(.active) {
            background-color: #ffffff !important;
            color: #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-3px) scale(1.03) !important;
            box-shadow: 0 8px 20px rgba(180, 83, 9, 0.2) !important;
        }

        .gallery-tabs-scrollable {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            overflow-x: auto;
            scrollbar-width: none;
            padding: 0.5rem 0.25rem 0.65rem 0.25rem !important;
            margin-top: -0.25rem !important;
            margin-bottom: -0.35rem !important;
            box-sizing: border-box;
        }

        .gallery-tabs-scrollable::-webkit-scrollbar {
            display: none !important;
        }

        /* Tactile Small Circle Search Pill */
        #desktop-search-toggle {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.5rem !important;
            height: 2.5rem !important;
            min-width: 2.5rem !important;
            max-width: 2.5rem !important;
            padding: 0 !important;
            background-color: #f5f5f4 !important;
            color: #b45309 !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            border-radius: 9999px !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
            cursor: pointer !important;
        }

        #desktop-search-toggle i {
            color: #b45309 !important;
            font-size: 0.95rem !important;
            transition: transform 0.25s ease !important;
        }

        #desktop-search-toggle:hover {
            background-color: #ffffff !important;
            color: #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-3px) scale(1.06) !important;
            box-shadow: 0 8px 20px rgba(180, 83, 9, 0.22) !important;
        }

        #desktop-search-toggle:active {
            transform: translateY(0) scale(0.95) !important;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
        }

        /* Tactile Small Circle Gallery Filter Button - Black icon by default, brown on hover */
        #gallery-filter-button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.5rem !important;
            height: 2.5rem !important;
            min-width: 2.5rem !important;
            max-width: 2.5rem !important;
            padding: 0 !important;
            background-color: #f5f5f4 !important;
            color: #1c1917 !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            border-radius: 9999px !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
            cursor: pointer !important;
        }

        #gallery-filter-button i {
            color: #1c1917 !important;
            font-size: 0.95rem !important;
            transition: color 0.25s ease, transform 0.25s ease !important;
        }

        #gallery-filter-button:hover, #gallery-filter-button.active {
            background-color: #ffffff !important;
            color: #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-3px) scale(1.06) !important;
            box-shadow: 0 8px 20px rgba(180, 83, 9, 0.22) !important;
        }

        #gallery-filter-button:hover i, #gallery-filter-button.active i {
            color: #b45309 !important;
        }

        #gallery-filter-button:active {
            transform: translateY(0) scale(0.95) !important;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
        }

        /* Gallery Filter Dropdown Menu - High z-index & Scrollable (~5-6 items) */
        #gallery-filter-dropdown {
            position: absolute !important;
            top: calc(100% + 0.5rem) !important;
            right: 0 !important;
            z-index: 100 !important;
            min-width: 12rem !important;
            max-width: 16rem !important;
            max-height: 13.5rem !important; /* ~5-6 items visible before scroll */
            overflow-y: auto !important;
            background-color: #ffffff !important;
            border: 1px solid rgba(214, 211, 209, 0.9) !important;
            border-radius: 1rem !important;
            padding: 0.4rem !important;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
            scrollbar-width: thin !important;
            scrollbar-color: rgba(180, 83, 9, 0.4) transparent !important;
        }

        #gallery-filter-dropdown::-webkit-scrollbar {
            width: 5px !important;
        }

        #gallery-filter-dropdown::-webkit-scrollbar-track {
            background: transparent !important;
        }

        #gallery-filter-dropdown::-webkit-scrollbar-thumb {
            background-color: rgba(180, 83, 9, 0.4) !important;
            border-radius: 9999px !important;
        }

        /* Filter Dropdown Options */
        .filter-option {
            width: 100% !important;
            text-align: left !important;
            padding: 0.5rem 0.85rem !important;
            margin-bottom: 0.15rem !important;
            border-radius: 0.625rem !important;
            font-size: 0.9rem !important;
            font-weight: 500 !important;
            color: #1c1917 !important; /* Black/dark stone normally */
            background-color: transparent !important;
            border: none !important;
            cursor: pointer !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
            display: block !important;
        }

        .filter-option:hover {
            color: #b45309 !important; /* Warm brown on hover */
            background-color: #f5f5f4 !important;
        }

        .filter-option.active-filter {
            background-color: #b45309 !important; /* Crisp amber-brown active pill */
            color: #ffffff !important; /* Clean white text */
            font-weight: 600 !important;
            box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3) !important;
        }

        .filter-option.active-filter:hover {
            background-color: #92400e !important;
            color: #ffffff !important;
        }

        /* Intro CTA Pill Buttons */
        .cta-pill-btn {
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(214, 211, 209, 0.6);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .cta-pill-btn:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
        }

        .cta-pill-btn:active {
            transform: translateY(0) scale(0.96);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        }

        /* Tiny clean black chevron arrow buttons */
        .tab-scroll-btn {
            width: 1.25rem !important;
            height: 2.35rem !important;
            min-width: 1.25rem !important;
            max-width: 1.25rem !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: transparent !important;
            border: none !important;
            color: #1c1917 !important;
            padding: 0 !important;
            cursor: pointer;
            flex-shrink: 0 !important;
            font-size: 0.75rem;
            line-height: 1;
            transition: all 0.15s ease;
            z-index: 10;
            box-sizing: border-box;
        }

        .tab-scroll-btn:hover {
            color: #000 !important;
            transform: scale(1.2);
        }

        .tab-scroll-btn:active {
            transform: scale(0.85);
        }

        @media (min-width: 768px) {
            .tab-scroll-btn {
                display: none !important;
            }
        }
        
        /* Blog Tag Filters Layout */
        .blog-tag-filters-container {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            box-sizing: border-box;
        }

        .blog-tag-filters-scroll {
            display: flex;
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
            flex-wrap: nowrap;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            gap: 0.75rem;
            align-items: center;
            padding: 0.45rem 0 0.6rem 0;
            margin-top: -0.2rem;
            margin-bottom: -0.3rem;
            box-sizing: border-box;
        }

        .blog-tag-filters-scroll::-webkit-scrollbar {
            display: none !important;
        }

        @media (max-width: 767px) {
            .blog-tag-slide {
                display: contents !important;
            }

            .tag-filter-button {
                flex: 0 0 calc(50% - 0.375rem) !important;
                min-width: calc(50% - 0.375rem) !important;
                max-width: calc(50% - 0.375rem) !important;
                height: 2.35rem !important;
                scroll-snap-align: start;
                text-align: center;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 0 0.35rem !important;
                font-size: var(--mobile-tag-font-size, 0.75rem) !important;
                letter-spacing: -0.01em;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                box-sizing: border-box;
                line-height: 1;
                cursor: pointer;
                transition: all 0.2s ease;
            }
        }

        @media (min-width: 768px) {
            .blog-tag-filters-container {
                position: relative;
                width: 100%;
                display: flex;
                align-items: center;
                gap: 0.625rem;
                box-sizing: border-box;
            }

            .blog-tag-filters-container .tab-scroll-btn {
                display: inline-flex !important;
                width: 1.5rem !important;
                height: 2.75rem !important;
                min-width: 1.5rem !important;
                max-width: 1.5rem !important;
                font-size: 0.95rem !important;
                cursor: pointer;
                color: #1c1917 !important;
                flex-shrink: 0 !important;
            }

            .blog-tag-filters-scroll {
                display: flex;
                flex: 1 1 auto;
                min-width: 0;
                width: 100%;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
                justify-content: flex-start;
                gap: 0;
                scroll-snap-type: x mandatory;
                scroll-behavior: smooth;
                padding: 0.5rem 0 0.65rem 0;
                margin-top: -0.25rem;
                margin-bottom: -0.35rem;
                box-sizing: border-box;
            }

            .blog-tag-filters-scroll::-webkit-scrollbar {
                display: none !important;
            }

            .blog-tag-slide {
                flex: 0 0 100% !important;
                min-width: 100% !important;
                max-width: 100% !important;
                width: 100% !important;
                display: flex !important;
                align-items: center !important;
                gap: 0.75rem !important;
                scroll-snap-align: start !important;
                padding: 0.35rem 0.25rem 0.45rem 0.25rem !important;
                margin-top: -0.15rem !important;
                margin-bottom: -0.2rem !important;
                box-sizing: border-box !important;
            }

            .tag-filter-button {
                flex: 1 1 0 !important;
                min-width: 0 !important;
                max-width: none !important;
                height: 2.75rem !important;
                font-size: 0.92rem !important;
                padding: 0 0.5rem !important;
                text-align: center;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                box-sizing: border-box;
                cursor: pointer;
            }

            .tag-filter-button[data-tag="All"] {
                flex: 0 0 auto !important;
                min-width: 4.5rem !important;
                padding: 0 1.25rem !important;
            }

            .tab-loop-clone {
                display: none !important;
            }
        }
        
        .blog-tag-filters-scroll::-webkit-scrollbar {
            display: none;
        }    
        
        /* Fade indicators for scroll - DISABLED */
        /*
        .blog-tag-filters-container::before,
        .blog-tag-filters-container::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2rem;
            pointer-events: none;
            z-index: 5;
            transition: opacity 0.3s ease;
        }
        
        .blog-tag-filters-container::before {
            left: 0;
            background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        }
        
        .blog-tag-filters-container::after {
            right: 0;
            background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        }
        
        .blog-tag-filters-container.no-scroll-left::before {
            opacity: 0;
        }
        
        .blog-tag-filters-container.no-scroll-right::after {
            opacity: 0;
        }
        */
        .card-container {
            background-color: #ffffff;
            padding: 1.5rem;
            border-radius: 1.25rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.06);
            width: 100%;
            max-width: 4xl;
        }

        @media (min-width: 640px) {
            .card-container {
                padding: 2rem;
                border-radius: 1.5rem;
            }
        }
        
        
        
        /* Masonry Gallery Layout */
        .image-grid {
            width: 100%;
            margin: 0 auto;
            column-fill: balance;
        }
        
        .image-card {
            break-inside: avoid;
            page-break-inside: avoid;
            display: inline-block;
            width: 100%;
            vertical-align: top;
        }
        
        .image-card img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* Ensure proper spacing in masonry layout */
        @media (max-width: 640px) {
            .image-grid {
                column-count: 1;
                column-gap: 1.5rem;
            }
        }
        
        @media (min-width: 641px) and (max-width: 768px) {
            .image-grid {
                column-count: 2;
                column-gap: 1.5rem;
            }
        }
        
        @media (min-width: 769px) {
            .image-grid {
                column-count: 3;
                column-gap: 1.5rem;
            }
        }
        
        /* Toggle for home section */
        .home-section-hidden {
            display: none !important;
        }
        
        /* IUCN Info tooltip and modal tags styles */
        #modal-category, #modal-iucn-status {
            cursor: pointer;
            transition: transform 0.2s ease, filter 0.2s ease;
            position: relative;
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
        }

        #modal-category:hover, #modal-iucn-status:hover {
            transform: scale(1.05);
            filter: brightness(1.08);
        }

        #modal-category:active, #modal-iucn-status:active {
            transform: scale(0.95);
        }

        .iucn-info-icon {
            position: relative;
            display: inline-flex;
            align-items: center;
            margin-left: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            opacity: 0.9;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .iucn-info-icon:hover {
            opacity: 1;
            transform: scale(1.15);
        }

        .iucn-info-icon:hover .iucn-tooltip {
            visibility: visible;
            opacity: 1;
        }
        
        .iucn-tooltip {
            visibility: hidden;
            width: 250px;
            max-width: calc(100vw - 3rem);
            background-color: #1f2937 !important;
            color: #ffffff !important;
            text-align: left;
            border-radius: 8px;
            padding: 10px 12px;
            position: absolute;
            z-index: 1000;
            top: calc(100% + 8px);
            right: 0;
            left: auto;
            transform: none;
            opacity: 0;
            transition: opacity 0.2s ease, visibility 0.2s ease;
            font-size: 0.8rem;
            font-weight: normal;
            line-height: 1.4;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
            pointer-events: none;
            white-space: normal;
        }
        
        .iucn-tooltip::after {
            content: "";
            position: absolute;
            bottom: 100%;
            top: auto;
            right: 6px;
            left: auto;
            transform: none;
            border-width: 6px;
            border-style: solid;
            border-color: transparent transparent #1f2937 transparent;
        }
        
        
        /* Pagination styles */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }
        
        .pagination-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border: 1px solid #d6d3d1;
            background-color: #fff;
            color: #78716c;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.875rem;
        }
        
        .pagination-btn:hover:not(.active):not(:disabled) {
            background-color: #f5f5f4;
            border-color: #a8a29e;
        }
        
        .pagination-btn.active {
            background-color: #b45309;
            color: white;
            border-color: #b45309;
        }
        
        .pagination-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .pagination-arrow {
            font-size: 0.75rem;
        }
        
        /* Search and Mobile Navigation Drawer Styles */
        .mobile-drawer-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
        }

        .mobile-drawer-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-drawer-content {
            position: fixed;
            bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
            right: 1.25rem;
            width: calc(100% - 2.5rem);
            max-width: 320px;
            max-height: calc(82vh - env(safe-area-inset-bottom, 0px));
            background: rgba(255, 255, 255, 0.96) !important;
            background-color: rgba(255, 255, 255, 0.96) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(214, 211, 209, 0.9) !important;
            border-radius: 1.5rem;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25) !important;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 1.1rem;
            overflow-y: auto;
            transform: scale(0.85) translateY(15px);
            transform-origin: bottom right;
            opacity: 0;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
            z-index: 1000;
        }

        .mobile-nav-link,
        .mobile-nav-link span,
        #mobile-theme-text {
            color: #1c1917 !important;
            font-weight: 600 !important;
            text-decoration: none !important;
            transition: all 0.2s ease !important;
        }

        .mobile-nav-link:hover,
        #mobile-theme-toggle-row:hover {
            background-color: #b45309 !important; /* Solid rich amber-brown selector background */
        }

        .mobile-nav-link:hover,
        .mobile-nav-link:hover span,
        #mobile-theme-toggle-row:hover #mobile-theme-text {
            color: #ffffff !important; /* White text on hover */
        }

        .mobile-nav-link svg,
        .mobile-nav-link i,
        .mobile-nav-link span i,
        .mobile-nav-link span svg,
        #mobile-theme-toggle-row i {
            color: #b45309 !important;
            fill: #b45309 !important;
            transition: color 0.2s ease, fill 0.2s ease !important;
        }

        .mobile-nav-link:hover svg,
        .mobile-nav-link:hover i,
        .mobile-nav-link:hover span i,
        .mobile-nav-link:hover span svg,
        #mobile-theme-toggle-row:hover #mobile-theme-icon-left {
            color: #ffffff !important; /* White icon on hover */
            fill: #ffffff !important;
        }

        #mobile-theme-toggle-icon {
            color: #57534e !important;
        }

        /* Mobile Search Bar in Light Mode */
        #mobile-drawer .mobile-search-box {
            background-color: #f5f5f4 !important;
            background: #f5f5f4 !important;
            border: 1px solid #e7e5e4 !important;
            color: #1c1917 !important;
        }

        #mobile-drawer i.fa-search {
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            color: #78716c !important;
            font-style: normal !important;
        }

        #mobile-search-input {
            color: #1c1917 !important;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
        }

        #mobile-search-input::placeholder {
            color: #78716c !important;
            opacity: 1 !important;
        }

        /* Mobile Drawer in Dark Mode */
        html.dark .mobile-drawer-content {
            background: rgba(23, 23, 23, 0.96) !important;
            background-color: rgba(23, 23, 23, 0.96) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 22px rgba(180, 83, 9, 0.3) !important;
        }

        html.dark .mobile-nav-link,
        html.dark .mobile-nav-link span,
        html.dark #mobile-theme-text {
            color: #ffffff !important;
        }

        html.dark .mobile-nav-link:hover,
        html.dark #mobile-theme-toggle-row:hover {
            background-color: #b45309 !important; /* Solid rich amber-brown selector background */
        }

        html.dark .mobile-nav-link:hover,
        html.dark .mobile-nav-link:hover span,
        html.dark #mobile-theme-toggle-row:hover #mobile-theme-text {
            color: #ffffff !important; /* White text on hover */
        }

        html.dark .mobile-nav-link svg,
        html.dark .mobile-nav-link i,
        html.dark .mobile-nav-link span i,
        html.dark .mobile-nav-link span svg,
        html.dark #mobile-theme-toggle-row #mobile-theme-icon-left {
            color: #b45309 !important;
            fill: #b45309 !important;
            stroke: #b45309 !important;
        }

        html.dark #mobile-theme-toggle-icon {
            color: #b45309 !important;
        }

        html.dark .mobile-nav-link:hover svg,
        html.dark .mobile-nav-link:hover i,
        html.dark .mobile-nav-link:hover span i,
        html.dark .mobile-nav-link:hover span svg,
        html.dark #mobile-theme-toggle-row:hover #mobile-theme-icon-left {
            color: #ffffff !important; /* White icon on hover */
            fill: #ffffff !important;
            stroke: #ffffff !important;
        }

        /* Mobile Search Bar in Dark Mode */
        html.dark #mobile-drawer .mobile-search-box {
            background-color: #171717 !important;
            background: #171717 !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
        }

        html.dark #mobile-drawer i.fa-search {
            color: #f59e0b !important;
        }

        html.dark #mobile-search-input {
            color: #ffffff !important;
        }

        html.dark #mobile-search-input::placeholder {
            color: #a3a3a3 !important;
            opacity: 1 !important;
        }

        .mobile-drawer-overlay.active .mobile-drawer-content {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        /* Mobile Floating Action Button Menu */
        .mobile-fab-menu {
            position: fixed;
            bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
            right: 1.5rem;
            z-index: 1005 !important;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
        }

        .mobile-fab-menu button {
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
            width: 3.5rem;
            height: 3.5rem;
        }

        #mobile-menu-icon {
            display: inline-block;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
            transform-origin: center;
        }

        /* Hide FAB only when full modal dialogues are open */
        body.image-modal-open .mobile-fab-menu,
        body.blog-modal-open .mobile-fab-menu,
        body.fullscreen-modal-open .mobile-fab-menu {
            opacity: 0;
            pointer-events: none;
            transform: scale(0.75);
        }

        /* Search Results Styles */
        .search-dropdown {
            max-height: 420px;
            overflow-y: auto;
            background: white;
            border-radius: 0.75rem;
        }

        .search-item {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: background-color 0.15s ease;
            text-decoration: none;
            border-bottom: 1px solid #f1f5f9;
        }

        .search-item:hover {
            background-color: #f8fafc;
        }

        .search-item-image {
            width: 2.75rem;
            height: 2.75rem;
            object-fit: cover;
            border-radius: 0.5rem;
            flex-shrink: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .search-item-icon {
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 0.5rem;
            background-color: #fef3c7;
            color: #b45309;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1rem;
        }

        .search-item-title {
            font-weight: 600;
            font-size: 0.875rem;
            color: #1e293b;
            line-height: 1.25;
        }

        .search-item-subtitle {
            font-size: 0.75rem;
            color: #64748b;
            margin-top: 0.15rem;
        }

        .search-section-header {
            padding: 0.5rem 1rem 0.25rem 1rem;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #94a3b8;
            background-color: #f8fafc;
        }

        .search-highlight {
            background-color: transparent !important;
            color: #78350f !important; /* amber-900 / dark brown */
            font-weight: 700;
        }

        .google-search-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.85rem 1rem;
            background-color: #f8fafc;
            border-top: 1px solid #e2e8f0;
            color: #2563eb;
            font-weight: 500;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .google-search-option:hover {
            background-color: #eff6ff;
            color: #1d4ed8;
        }
        
        /* Other blogs section styles - redesigned for better appeal */
        .other-blogs-section {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 1rem;
            padding: 1.5rem;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            margin: 0;
        }
        
        .other-blogs-section h3 {
            color: #1e293b;
            font-size: 1.125rem;
            font-weight: 700;
            margin-top: 0;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e2e8f0;
        }

        .other-blogs-container {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .other-blog-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid #e2e8f0;
            background-color: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .other-blog-item:hover {
            border-color: #b45309;
            box-shadow: 0 4px 12px rgba(180, 83, 9, 0.15);
            transform: translateY(-2px);
        }
        
        .other-blog-image {
            width: 4rem;
            height: 4rem;
            object-fit: cover;
            border-radius: 0.5rem;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .other-blog-content {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .other-blog-title {
            font-weight: 600;
            color: #b45309;
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .other-blog-meta {
            display: flex;
            flex-direction: column;
            gap: 0.375rem;
        }
        
        .other-blog-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
        }
        
        .other-blog-date {
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 500;
            background-color: #f1f5f9;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            width: fit-content;
        }
        
        /* Styling for carousel buttons, positioned directly outside the modal dialog card */
        .nav-btn, .blog-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.95) !important;
            width: 3.25rem;
            height: 3.25rem;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 60;
            background: rgba(15, 23, 42, 0.45) !important; /* Semi-transparent dark slate backdrop */
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 9999px;
            border: 1px solid rgba(255, 255, 255, 0.25) !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        }
        
        /* Sticking directly outside the left and right borders of the modal card */
        .nav-btn.left, .blog-nav-btn.left {
            right: calc(100% + 14px);
            left: auto;
        }
        
        .nav-btn.right, .blog-nav-btn.right {
            left: calc(100% + 14px);
            right: auto;
        }

        .nav-btn:hover, .blog-nav-btn:hover {
            color: #ffffff !important;
            background: rgba(120, 53, 15, 0.85) !important; /* Dark amber-800 on hover */
            border-color: rgba(255, 255, 255, 0.45) !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        }

        .nav-btn.left:hover, .blog-nav-btn.left:hover {
            transform: translateY(-50%) translateX(-4px) scale(1.15) !important;
        }

        .nav-btn.right:hover, .blog-nav-btn.right:hover {
            transform: translateY(-50%) translateX(4px) scale(1.15) !important;
        }

        .nav-btn:active, .blog-nav-btn:active {
            transform: translateY(-50%) scale(0.95) !important;
        }

        /* Keyboard Navigation Active Pulse - Glows rich brown on Left/Right Arrow keypress */
        .nav-btn.key-active, .blog-nav-btn.key-active {
            color: #ffffff !important;
            background: rgba(120, 53, 15, 0.95) !important; /* Rich dark amber-800 */
            border-color: rgba(255, 255, 255, 0.6) !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        }

        .nav-btn.left.key-active, .blog-nav-btn.left.key-active {
            transform: translateY(-50%) translateX(-6px) scale(1.2) !important;
        }

        .nav-btn.right.key-active, .blog-nav-btn.right.key-active {
            transform: translateY(-50%) translateX(6px) scale(1.2) !important;
        }
        
        .nav-btn i, .blog-nav-btn i {
            font-size: 1.35rem;
        }

        /* Mobile adjustments (< 768px): Hide floating arrow buttons in favor of touch card-swipe gestures */
        @media (max-width: 767px) {
            .nav-btn, .blog-nav-btn {
                display: none !important;
            }
        }

        /* Hide navigation buttons when in full-screen mode */
        #image-modal.fullscreen-active .nav-btn,
        #fullscreen-modal.active .nav-btn {
            display: none !important;
        }

        /* Gallery Image Hover Effect Styles */
        .image-card {
            position: relative;
            overflow: hidden;
            border-radius: 0.5rem; /* Match image border-radius */
            cursor: pointer;
        }

        .image-card img {
            transition: transform 0.3s ease-in-out;
        }

        .image-card:hover img {
            transform: scale(1.05); /* Slight zoom effect on hover */
        }

        /* Gallery Image Title Styling */
        .gallery-image-title {
            font-family: 'Lato', sans-serif;
            font-weight: 600;
            letter-spacing: 0.025em;
            line-height: 1.4;
            font-size: 1.1rem;
        }

        /* Styles for the filter dropdown */
        .filter-dropdown {
            position: absolute;
            top: 100%; /* Position below the filter button */
            right: 0;
            background-color: #fff;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            padding: 0.5rem;
            z-index: 50;
            min-width: 150px;
            max-height: 300px; /* Limit height for scrollability */
            overflow-y: auto;
            transform-origin: top right;
            transform: scale(0.95);
            opacity: 0;
            visibility: hidden;
            transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out;
        }

        .filter-dropdown.active {
            transform: scale(1);
            opacity: 1;
            visibility: visible;
        }

        .filter-dropdown button {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.55rem 0.85rem;
            font-size: 0.9rem;
            color: #4b5563;
            border-radius: 0.375rem;
            border-left: 3px solid transparent;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .filter-dropdown button:hover {
            background-color: #f3f4f6;
            color: #78350f;
            transform: translateX(4px);
            border-left-color: #78350f;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }

        .filter-dropdown button:active {
            transform: translateX(2px) scale(0.98);
        }

        .filter-dropdown button.active-filter {
            background-color: #78350f;
            color: #fff;
            font-weight: 600;
            border-left-color: #451a03;
        }

        .filter-dropdown button.active-filter:hover {
            background-color: #5c280b;
            color: #fff;
            transform: translateX(4px);
        }

        /* Gallery Tabs Layout - Smooth Continuous Horizontal Scroll & Loop */
        .gallery-tabs-container {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            box-sizing: border-box;
        }

        .gallery-tabs-scrollable {
            display: flex;
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
            flex-wrap: nowrap;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            gap: 0.75rem;
            align-items: center;
            padding: 0.25rem 0 0.25rem 0;
            box-sizing: border-box;
        }

        .gallery-tabs-scrollable::-webkit-scrollbar {
            display: none !important;
        }

        @media (max-width: 767px) {
            .tab-button,
            .gallery-filter-slot {
                flex: 0 0 calc(50% - 0.375rem) !important;
                min-width: calc(50% - 0.375rem) !important;
                max-width: calc(50% - 0.375rem) !important;
                height: 2.35rem !important;
                scroll-snap-align: start;
                box-sizing: border-box;
            }

            .tab-button {
                text-align: center;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 0 0.35rem !important;
                font-size: 0.75rem !important;
                letter-spacing: -0.01em;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                line-height: 1;
                cursor: pointer;
                transition: all 0.2s ease;
            }

            .gallery-filter-slot {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .gallery-filter-trigger {
                width: 2.25rem !important;
                height: 2.25rem !important;
                border-radius: 9999px !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                padding: 0 !important;
                cursor: pointer;
                transition: all 0.2s ease;
            }
        }

        @media (min-width: 768px) {
            .gallery-tabs-container {
                display: flex;
                justify-content: center;
            }

            .gallery-tabs-scrollable {
                display: flex;
                flex: 0 0 auto;
                width: auto;
                justify-content: center;
                gap: 1rem;
                scroll-snap-type: none;
                overflow: visible;
                padding: 0;
            }

            .tab-button {
                flex: 0 0 auto;
                min-width: auto;
                max-width: none;
                height: auto;
                font-size: 1rem;
                padding: 0.625rem 1.5rem;
            }

            .gallery-filter-slot {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                flex: 0 0 auto;
                width: auto;
                height: auto;
            }

            .gallery-filter-trigger {
                width: 2.5rem;
                height: 2.5rem;
                border-radius: 9999px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 0;
            }

            .tab-loop-clone {
                display: none !important;
            }
        }


        /* Navigation Bar Tabs Scrolling */
        .nav-tabs-scrollable {
            display: flex;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-items: center;
            gap: 1.5rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
            padding-bottom: 2px;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        @media (min-width: 768px) {
            .nav-tabs-scrollable {
                justify-content: center;
                gap: 2rem;
                padding-left: 0;
                padding-right: 0;
            }
        }

        .nav-tabs-scrollable::-webkit-scrollbar {
            display: none; /* Safari and Chrome */
        }

        .nav-tabs-scrollable .nav-link {
            flex-shrink: 0;
            white-space: nowrap;
            display: inline-block;
            transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav-tabs-scrollable .nav-link:hover {
            color: #b45309;
            transform: translateY(-2px);
        }

        .nav-tabs-scrollable .nav-link:active {
            transform: translateY(0) scale(0.96);
        }

        .nav-tabs-scrollable .nav-link.active {
            color: #b45309 !important; /* amber-700 font color */
            background: transparent !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
            font-weight: 700;
        }

        .nav-tabs-scrollable .nav-link.active:hover {
            transform: translateY(-2px) scale(1.04);
        }

        #mobile-menu li {
            text-align: center;
        }

        @media (max-width: 768px) {
            #fullscreen-modal {
                justify-content: flex-start;
                padding: 0.75rem 0.5rem;
            }

            #fullscreen-modal .fullscreen-title {
                margin-top: 0.15rem;
                margin-bottom: 0.5rem;
                padding: 0 4.5rem;
                font-size: 1.25rem;
            }

            .fullscreen-control-btn {
                top: 0.6rem !important;
                font-size: 1.15rem !important;
            }
        }
        
        /* Filter button in scrollable tabs (Identical to other category tabs) */
        .gallery-tabs-scrollable #gallery-filter-button,
        .gallery-filter-trigger {
            flex-shrink: 0;
            background-color: #ffffff !important;
            color: #18181b !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .gallery-tabs-scrollable #gallery-filter-button i,
        .gallery-filter-trigger i {
            color: #18181b !important;
            fill: #18181b !important;
            stroke: #18181b !important;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Filter button on Hover */
        .gallery-tabs-scrollable #gallery-filter-button:hover,
        .gallery-filter-trigger:hover {
            background-color: #ffffff !important;
            color: #b45309 !important;
            border: 2px solid #b45309 !important;
            border-color: #b45309 !important;
            transform: translateY(-1px);
        }

        .gallery-tabs-scrollable #gallery-filter-button:hover i,
        .gallery-filter-trigger:hover i {
            color: #b45309 !important;
            fill: #b45309 !important;
            stroke: #b45309 !important;
        }

        /* Filter button when Active / Selected / Dropdown Open */
        .gallery-tabs-scrollable #gallery-filter-button.active,
        .gallery-filter-trigger.active,
        .gallery-tabs-scrollable #gallery-filter-button.active:hover,
        .gallery-filter-trigger.active:hover {
            background-color: #b45309 !important;
            background: #b45309 !important;
            color: #ffffff !important;
            border: 2px solid #b45309 !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.45) !important;
        }

        .gallery-tabs-scrollable #gallery-filter-button.active i,
        .gallery-filter-trigger.active i,
        .gallery-tabs-scrollable #gallery-filter-button.active svg,
        .gallery-filter-trigger.active svg,
        .gallery-tabs-scrollable #gallery-filter-button.active path,
        .gallery-filter-trigger.active path {
            color: #ffffff !important;
            fill: #ffffff !important;
            stroke: #ffffff !important;
        }

        .gallery-tabs-scrollable #gallery-filter-button:active {
            transform: scale(0.94);
        }
        
        /* Filter dropdown positioning adjustment */
        .gallery-tabs-scrollable .filter-dropdown {
            position: absolute;
            right: 0;
            top: 100%;
        }

        .view-more-btn {
            background-color: transparent;
            color: #854d0e;
            border: 2px solid #854d0e;
            padding: 0.75rem 1.5rem;
            border-radius: 9999px;
            font-weight: 600;
            margin-top: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-more-btn.inversed {
            background-color: #854d0e;
            color: white;
        }

        .image-card.hidden {
            display: none;
        }
        
        /* Mobile Header Optimization */
        @media (max-width: 768px) {
            /* Make header more compact on mobile */
            #header .flex.items-center {
                gap: 0.75rem !important;
            }
            
            /* Smaller logo on mobile */
            #header img {
                width: 3.25rem !important; /* ~52px */
                height: auto;
                flex-shrink: 0;
            }
            
            /* Single-line title scaling on mobile */
            #header h1 {
                font-size: clamp(1.35rem, 5.5vw, 2.25rem) !important;
                white-space: nowrap !important;
                line-height: 1.2;
                text-align: center;
            }
            
            /* Ensure header content stays in a single horizontal line */
            #header a {
                align-items: center !important;
                justify-content: center !important;
                flex-direction: row !important;
                white-space: nowrap !important;
                flex-wrap: nowrap !important;
            }
        }
        
        
        
        .mobile-search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid #d6d3d1;
            border-radius: 1.5rem;
            background: white;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .mobile-search-input:focus {
            border-color: #b45309;
            box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
        }

        /* --- MODERN ANIMATION & MICRO-INTERACTION SUITE --- */

        /* Smooth Scroll-Driven Reveal System */
        .reveal-on-scroll {
            opacity: 1 !important;
            transform: none !important;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .reveal-on-scroll.is-revealed {
            opacity: 1 !important;
            transform: none !important;
        }

        /* Interactive Buttons & Tabs Tap Feedback */
        .tab-button, .tag-filter-button, .tag-button, .nav-link, button, .view-more-btn {
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tab-button:active, .tag-filter-button:active, .tag-button:active, button:active, .view-more-btn:active {
            transform: scale(0.95);
        }

        /* Active Filter Pill Banner Animation */
        #gallery-active-filter-heading span.inline-flex {
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
        }

        #gallery-active-filter-heading span.inline-flex:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        #gallery-clear-filter-btn {
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
        }

        #gallery-clear-filter-btn:hover {
            transform: rotate(90deg) scale(1.3);
            color: #78350f !important;
        }

        /* Image Card Smooth Hover & Depth Lift */
        .image-card {
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .image-card:hover {
            transform: translateY(-4px);
        }

        .image-card:active {
            transform: scale(0.98);
        }

        .image-card img {
            transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
        }

        .image-card:hover img {
            transform: scale(1.03);
            box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.18);
        }

        /* Blog Link Hover & Depth */
        .blog-link {
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
        }

        .blog-link:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.14);
        }

        .blog-link:active {
            transform: scale(0.98);
        }

        /* Heart Pulse Animation on Like */
        @keyframes heartPulse {
            0% { transform: scale(1); }
            45% { transform: scale(1.35); }
            100% { transform: scale(1); }
        }

        .heart-pulsing {
            display: inline-block;
            animation: heartPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* --- Interactive Icons & Symbols Animations --- */

        /* Maximize / Fullscreen Icon on Image Modal */
        #maximize-btn {
            transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        #maximize-btn:hover {
            transform: rotate(15deg) scale(1.3) !important;
            color: #d6d3d1 !important;
        }

        #maximize-btn:active {
            transform: scale(0.95) !important;
        }

        /* Fullscreen Close & Minimize Controls */
        .fullscreen-control-btn {
            transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        #minimize-btn:hover {
            transform: rotate(-20deg) scale(1.3) !important;
            color: #ffffff !important;
        }

        #fullscreen-modal button[onclick*="closeFullscreen"]:hover,
        #fullscreen-modal button[aria-label*="Close"]:hover {
            transform: rotate(90deg) scale(1.3) !important;
            color: #ffffff !important;
        }

        /* Carousel Navigation Arrow Chevrons */
        .nav-btn, .blog-nav-btn {
            transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .nav-btn.left:hover, .blog-nav-btn.left:hover {
            color: #e7e5e4 !important;
            transform: translateY(-50%) translateX(-6px) scale(1.25) !important;
        }

        .nav-btn.right:hover, .blog-nav-btn.right:hover {
            color: #e7e5e4 !important;
            transform: translateY(-50%) translateX(6px) scale(1.25) !important;
        }

        .nav-btn:active, .blog-nav-btn:active {
            transform: translateY(-50%) scale(0.95) !important;
        }

        /* Raised Tactile Like & Share Action Pills with Pop-Up Animations */
        #like-btn-image, #share-btn-image, #like-btn, #like-btn-bottom, #share-btn, #share-btn-bottom, .like-btn, .share-btn {
            background-color: #f5f5f4 !important;
            color: #292524 !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            border-radius: 9999px !important;
            padding: 0.5rem 1.25rem !important;
            font-size: 0.875rem !important;
            font-weight: 600 !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
            cursor: pointer !important;
        }

        #like-btn-image i, #share-btn-image i, #like-btn i, #like-btn-bottom i, #share-btn i, #share-btn-bottom i, .like-btn i, .share-btn i {
            display: inline-block;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        #like-btn-image:hover, #share-btn-image:hover, #like-btn:hover, #like-btn-bottom:hover, #share-btn:hover, #share-btn-bottom:hover, .like-btn:hover, .share-btn:hover {
            transform: translateY(-3px) scale(1.05) !important;
            box-shadow: 0 8px 22px rgba(180, 83, 9, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
            background-color: #ffffff !important;
            border-color: #b45309 !important;
            color: #b45309 !important;
        }

        #like-btn-image:hover i, #like-btn:hover i, #like-btn-bottom:hover i {
            transform: scale(1.35);
        }

        #share-btn-image:hover i, #share-btn:hover i, #share-btn-bottom:hover i {
            transform: rotate(20deg) scale(1.3);
        }

        #like-btn-image:active, #share-btn-image:active, #like-btn:active, #like-btn-bottom:active, #share-btn:active, #share-btn-bottom:active, .like-btn:active, .share-btn:active {
            transform: translateY(0) scale(0.96) !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        }

        /* Accessibility: Respect Reduced Motion Preferences */
        @media (prefers-reduced-motion: reduce) {
            *, ::before, ::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
            .reveal-on-scroll {
                opacity: 1 !important;
                transform: none !important;
            }
        }

        /* ==========================================
           Pure Pitch-Black Dark Theme Overhaul (#000000 Everywhere)
           ========================================== */
        html.dark body {
            background: #000000 !important;
            background-color: #000000 !important;
            color: #ffffff !important;
        }

        /* 1. Header & Navigation (100% Borderless Pure Pitch Black Container) */
        html.dark #header h1,
        html.dark #mobile-header span {
            color: #ffffff !important;
        }

        /* Invert Black Kite Silhouette Logo to pure white in dark mode */
        html.dark #header img,
        html.dark #mobile-header img {
            filter: invert(1) brightness(2) !important;
        }

        /* Unified Header Wrapper (Permanent Subtle Amber Edge Glow) */
        .header-wrapper {
            background-color: rgba(240, 244, 248, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-left: 1px solid rgba(214, 211, 209, 0.85);
            border-right: 1px solid rgba(214, 211, 209, 0.85);
            border-bottom: 1px solid rgba(214, 211, 209, 0.85);
            border-top: none !important;
            border-radius: 0 0 1.25rem 1.25rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
        }

        html.dark .header-wrapper {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            box-shadow: 0 6px 28px rgba(180, 83, 9, 0.22), 0 0 12px rgba(180, 83, 9, 0.12) !important;
        }

        html.dark #desktop-nav {
            background: transparent !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        html.dark #mobile-header {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            color: #ffffff !important;
            box-shadow: 0 4px 20px rgba(180, 83, 9, 0.2) !important;
        }

        /* Nav Pills on Pure Black with Permanent Subtle Glow */
        html.dark .nav-link {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.22) !important;
        }

        html.dark .nav-link i,
        html.dark .nav-link svg {
            color: #b45309 !important; /* Rich amber-brown icon on inactive pills */
            fill: #b45309 !important;
        }

        html.dark .nav-link:hover,
        html.dark .nav-link.active {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.45) !important;
        }

        html.dark .nav-link:hover i,
        html.dark .nav-link.active i,
        html.dark .nav-link:hover svg,
        html.dark .nav-link.active svg {
            color: #ffffff !important;
            fill: #ffffff !important;
        }

        /* Tactile Theme Switch Button */
        .theme-switch-btn {
            width: 3.25rem !important;
            height: 1.75rem !important;
            padding: 0.15rem !important;
            border-radius: 9999px !important;
            background: #e2e8f0 !important;
            background-color: #e2e8f0 !important;
            border: 1px solid #cbd5e1 !important;
            display: inline-flex !important;
            align-items: center !important;
            cursor: pointer !important;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
        }

        .theme-switch-thumb {
            width: 1.35rem !important;
            height: 1.35rem !important;
            border-radius: 9999px !important;
            background: #ffffff !important;
            background-color: #ffffff !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
            transform: translateX(0) !important;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        html.dark .theme-switch-btn {
            background: #171717 !important;
            background-color: #171717 !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.22) !important;
        }

        html.dark .theme-switch-thumb {
            background: #ffffff !important;
            background-color: #ffffff !important;
            transform: translateX(1.35rem) !important;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4) !important;
        }

        html.dark #theme-toggle-icon {
            color: #b45309 !important; /* Rich amber-brown sun icon */
        }

        /* Search Toggle Button */
        html.dark #theme-toggle,
        html.dark #desktop-search-toggle,
        html.dark button#desktop-search-toggle {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.22) !important;
        }

        html.dark #desktop-search-toggle i {
            color: #b45309 !important; /* Rich amber-brown search icon */
        }

        html.dark #theme-toggle:hover,
        html.dark #desktop-search-toggle:hover {
            background: #262626 !important;
            background-color: #262626 !important;
            border: none !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.45) !important;
        }

        /* 2. Main Section Containers (Intro #home, Gallery .card-container, Blog #blog) */
        html.dark .card-container,
        html.dark #home,
        html.dark #blog {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            color: #ffffff !important;
            box-shadow: 0 6px 28px rgba(180, 83, 9, 0.22), 0 0 12px rgba(180, 83, 9, 0.12) !important;
        }

        #home p {
            color: #000000 !important;
            width: 100% !important;
            max-width: 100% !important;
            text-wrap: pretty;
        }

        html.dark #home p {
            color: #ffffff !important;
        }

        /* Ensure Inner Gallery Layout Elements Have ZERO Box-Shadow (No Double Outer Section Frame) */
        html.dark #gallery,
        html.dark #gallery-container,
        html.dark .gallery-tab-content,
        html.dark .image-grid {
            background: transparent !important;
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
            -webkit-box-shadow: none !important;
        }

        /* 2. IMAGE CARDS & BLOG POST CARDS (Identical Permanent Amber Edge Glow + Hover Halo) */
        .image-card {
            height: fit-content !important;
            align-self: start !important;
            display: flex;
            flex-direction: column !important;
        }

        .image-card.hidden,
        div.image-card.hidden,
        .gallery-tab-content .image-card.hidden {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            pointer-events: none !important;
        }

        #gallery-pagination .pagination-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.5rem !important;
            height: 2.5rem !important;
            border-radius: 0.6rem !important;
            font-weight: 600 !important;
            font-size: 0.9rem !important;
            cursor: pointer !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        html.dark #gallery-pagination .pagination-btn {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.2) !important;
        }

        html.dark #gallery-pagination .pagination-btn:hover:not(.active):not(:disabled) {
            background: #262626 !important;
            background-color: #262626 !important;
            color: #ffffff !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.4) !important;
        }

        html.dark #gallery-pagination .pagination-btn.active {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            border: none !important;
            font-weight: 700 !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.5) !important;
        }

        html.dark #gallery-pagination .pagination-btn:disabled {
            background: #262626 !important;
            background-color: #262626 !important;
            color: #737373 !important;
            opacity: 0.4 !important;
            border: none !important;
            box-shadow: none !important;
        }

        .image-card,
        .blog-link {
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        html.dark .image-card,
        html.dark .blog-link {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            border-radius: 0.85rem !important;
            color: #ffffff !important;
            box-shadow: 0 0 22px rgba(180, 83, 9, 0.32), 0 0 10px rgba(180, 83, 9, 0.18) !important;
            -webkit-box-shadow: 0 0 22px rgba(180, 83, 9, 0.32), 0 0 10px rgba(180, 83, 9, 0.18) !important;
        }

        html.dark .image-card:hover,
        html.dark .blog-link:hover {
            border: none !important;
            box-shadow: 0 0 36px rgba(180, 83, 9, 0.55), 0 0 18px rgba(180, 83, 9, 0.32) !important;
            -webkit-box-shadow: 0 0 36px rgba(180, 83, 9, 0.55), 0 0 18px rgba(180, 83, 9, 0.32) !important;
            transform: translateY(-3px) !important;
        }

        .image-card img {
            border-radius: 0.65rem !important;
            box-shadow: none !important;
            -webkit-box-shadow: none !important;
        }

        /* Blog Post Cards in Main Grid */
        html.dark .blog-link {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            border-radius: 0.85rem !important;
            color: #ffffff !important;
            box-shadow: 0 0 22px rgba(180, 83, 9, 0.28), 0 0 10px rgba(180, 83, 9, 0.16) !important;
            -webkit-box-shadow: 0 0 22px rgba(180, 83, 9, 0.28), 0 0 10px rgba(180, 83, 9, 0.16) !important;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        html.dark .blog-link:hover {
            border: none !important;
            box-shadow: 0 0 36px rgba(180, 83, 9, 0.52), 0 0 18px rgba(180, 83, 9, 0.3) !important;
            -webkit-box-shadow: 0 0 36px rgba(180, 83, 9, 0.52), 0 0 18px rgba(180, 83, 9, 0.3) !important;
            transform: translateY(-3px) !important;
        }

        html.dark .image-card p,
        html.dark .image-card .image-title {
            color: #ffffff !important;
            font-weight: 600 !important;
        }

        /* 3. Typography, Titles & Heading Underline Dividers */
        html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6,
        html.dark .text-stone-800, html.dark .text-stone-900, html.dark .text-stone-700 {
            color: #ffffff !important;
        }

        /* Keep Section Heading Underline Dividers Visible */
        html.dark h2.border-b-2,
        html.dark .border-stone-400 {
            border-bottom: 2px solid #525252 !important;
            border-bottom-color: #525252 !important;
        }

        html.dark p, html.dark .text-stone-600 {
            color: #e7e5e4 !important;
        }

        /* Force Blog Dates to Crisp White */
        html.dark .blog-link .text-stone-500,
        html.dark .blog-modal-layout .text-stone-500,
        html.dark .text-stone-500,
        html.dark .text-stone-400 {
            color: #ffffff !important;
            font-weight: 500 !important;
        }

        /* Theme Switch Toggle Buttons & Icons */
        .theme-switch-btn i,
        #theme-toggle-icon,
        #mobile-theme-toggle-icon,
        #mobile-theme-icon-left {
            color: #b45309 !important;
        }

        /* 4. GALLERY FILTER BUTTON (#gallery-filter-button & .gallery-filter-trigger) */
        html.dark #gallery-filter-button,
        html.dark .gallery-filter-trigger,
        html.dark button#gallery-filter-button,
        html.dark button.gallery-filter-trigger,
        html.dark .gallery-filter-slot button {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.22) !important;
        }

        html.dark #gallery-filter-button i,
        html.dark .gallery-filter-trigger i,
        html.dark #gallery-filter-button svg,
        html.dark .gallery-filter-trigger svg,
        html.dark #gallery-filter-button path,
        html.dark .gallery-filter-trigger path {
            color: #b45309 !important; /* Rich Amber Brown Filter Funnel Icon */
            fill: #b45309 !important;
            stroke: #b45309 !important;
        }

        /* Gallery Category Tabs, Blog Tag Filters & Pagination Buttons */
        html.dark .tab-button,
        html.dark .gallery-filter-btn,
        html.dark .tag-filter-button,
        html.dark .blog-tag-button,
        html.dark #blog-tag-filters button,
        html.dark .pagination-btn {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(180, 83, 9, 0.2) !important;
        }

        /* Universal Light & Dark Mode Hover Style for Buttons and Category Tabs (Amber Brown border & Amber Brown text on hover) */
        .tab-button:hover:not(.active),
        .gallery-filter-btn:hover:not(.active),
        .tag-filter-button:hover:not(.active),
        .blog-tag-button:hover:not(.active),
        #blog-tag-filters button:hover:not(.active),
        .pagination-btn:hover:not(.active):not(:disabled),
        #gallery-filter-button:hover,
        .gallery-filter-trigger:hover {
            border: 2px solid #b45309 !important;
            color: #b45309 !important;
        }

        .tab-button:hover:not(.active) i,
        .tab-button:hover:not(.active) svg,
        .gallery-filter-btn:hover:not(.active) i,
        .tag-filter-button:hover:not(.active) i,
        #blog-tag-filters button:hover:not(.active) i,
        #gallery-filter-button:hover i,
        .gallery-filter-trigger:hover i,
        #gallery-filter-button:hover svg,
        .gallery-filter-trigger:hover svg {
            color: #b45309 !important;
            fill: #b45309 !important;
            stroke: #b45309 !important;
        }

        html.dark .tab-button:hover:not(.active),
        html.dark .gallery-filter-btn:hover:not(.active),
        html.dark .tag-filter-button:hover:not(.active),
        html.dark .blog-tag-button:hover:not(.active),
        html.dark #blog-tag-filters button:hover:not(.active),
        html.dark .pagination-btn:hover:not(.active):not(:disabled),
        html.dark #gallery-filter-button:hover,
        html.dark .gallery-filter-trigger:hover {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #b45309 !important;
            border: 2px solid #b45309 !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.4) !important;
        }

        html.dark .tab-button:hover:not(.active) i,
        html.dark .tab-button:hover:not(.active) svg,
        html.dark .gallery-filter-btn:hover:not(.active) i,
        html.dark .tag-filter-button:hover:not(.active) i,
        html.dark #blog-tag-filters button:hover:not(.active) i,
        html.dark #gallery-filter-button:hover i,
        html.dark .gallery-filter-trigger:hover i,
        html.dark #gallery-filter-button:hover svg,
        html.dark .gallery-filter-trigger:hover svg {
            color: #b45309 !important;
            fill: #b45309 !important;
            stroke: #b45309 !important;
        }

        html.dark .tab-button.active,
        html.dark .gallery-filter-btn.active,
        html.dark .tag-filter-button.active,
        html.dark .blog-tag-button.active,
        html.dark #blog-tag-filters button.active,
        html.dark .pagination-btn.active {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            border: none !important;
            font-weight: 700 !important;
            box-shadow: 0 4px 18px rgba(180, 83, 9, 0.45) !important;
        }

        html.dark .pagination-btn:disabled {
            background: #262626 !important;
            background-color: #262626 !important;
            color: #737373 !important;
            opacity: 0.4 !important;
            border: none !important;
            box-shadow: none !important;
        }

        /* Gallery Filter Dropdown Menu in Dark Mode */
        html.dark #gallery-filter-dropdown,
        html.dark .filter-dropdown,
        html.dark .filter-dropdown-card,
        html.dark .filter-dropdown-content {
            background: #000000 !important;
            background-color: #000000 !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 15px rgba(180, 83, 9, 0.3) !important;
        }

        html.dark #gallery-filter-dropdown button,
        html.dark .filter-dropdown button,
        html.dark .filter-dropdown-card button,
        html.dark .filter-dropdown-card div,
        html.dark .filter-option {
            color: #ffffff !important;
            background: transparent !important;
            background-color: transparent !important;
        }

        html.dark #gallery-filter-dropdown button:hover,
        html.dark .filter-dropdown button:hover,
        html.dark .filter-dropdown-card button:hover,
        html.dark #gallery-filter-dropdown button.active,
        html.dark .filter-dropdown button.active,
        html.dark .filter-dropdown-card button.active,
        html.dark #gallery-filter-dropdown .filter-option:hover,
        html.dark .filter-dropdown .filter-option:hover,
        html.dark #gallery-filter-dropdown .filter-option.active,
        html.dark .filter-dropdown .filter-option.active {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            fill: #ffffff !important;
        }

        /* 5. Prominent "View More" Button */
        html.dark #load-more-btn,
        html.dark .load-more-btn {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #fbbf24 !important;
            border: 2px solid #b45309 !important;
            box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35) !important;
            font-weight: 700 !important;
        }

        html.dark #load-more-btn:hover,
        html.dark .load-more-btn:hover {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            border-color: #fbbf24 !important;
            transform: translateY(-2px) scale(1.04) !important;
            box-shadow: 0 8px 24px rgba(180, 83, 9, 0.5) !important;
        }

        /* 6. IMAGE MODAL - Pure Pitch Black #000000 */
        html.dark #image-modal .modal-content-card,
        html.dark #image-modal-content,
        html.dark #image-modal .modal-content,
        html.dark #image-modal .text-content,
        html.dark #image-modal .modal-description {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            color: #ffffff !important;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95) !important;
        }

        html.dark #modal-title {
            color: #ffffff !important;
            font-weight: 700 !important;
        }

        html.dark #modal-scientific-name {
            background: #1e293b !important;
            background-color: #1e293b !important;
            color: #93c5fd !important;
            border: none !important;
        }

        html.dark #modal-category {
            background: #262626 !important;
            background-color: #262626 !important;
            color: #ffffff !important;
            border: none !important;
        }

        html.dark #modal-description-text {
            color: #e7e5e4 !important;
        }

        /* 7. MODAL BACKDROP OVERLAYS & BLOG MODAL (Pure Pitch Black #000000) */
        html.dark .modal-overlay,
        html.dark #image-modal,
        html.dark #blog-modal,
        html.dark #iucn-info-modal,
        html.dark .mobile-drawer-overlay {
            background: rgba(0, 0, 0, 0.85) !important;
            background-color: rgba(0, 0, 0, 0.85) !important;
        }

        html.dark #blog-modal .modal-content,
        html.dark #blog-modal-content,
        html.dark .blog-modal-layout,
        html.dark .blog-main-content,
        html.dark .blog-header-container,
        html.dark .blog-sidebar {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            color: #ffffff !important;
        }

        /* Override linear-gradient on .other-blogs-section */
        html.dark .other-blogs-section {
            background: #000000 !important;
            background-image: none !important;
            background-color: #000000 !important;
            border: none !important;
            box-shadow: none !important;
        }

        html.dark .other-blogs-section h3 {
            color: #ffffff !important;
            border-bottom: 2px solid #525252 !important;
        }

        html.dark .other-blogs-container {
            background: transparent !important;
            background-color: transparent !important;
        }

        html.dark .other-blog-item {
            background: #171717 !important;
            background-color: #171717 !important;
            border: none !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
        }

        html.dark .other-blog-item:hover {
            background: #262626 !important;
            background-color: #262626 !important;
            border: none !important;
        }

        html.dark .other-blog-title {
            color: #ffffff !important;
        }

        html.dark .other-blog-date {
            background: #262626 !important;
            background-color: #262626 !important;
            color: #ffffff !important;
        }

        html.dark #blog-modal-content h1,
        html.dark #blog-modal-content h2,
        html.dark #blog-modal-content h3,
        html.dark #blog-modal-content h4,
        html.dark #blog-modal-content p,
        html.dark #blog-modal-content li {
            color: #ffffff !important;
        }

        html.dark blockquote,
        html.dark .blog-content blockquote,
        html.dark #blog-modal-content blockquote,
        html.dark blockquote *,
        html.dark .blog-content blockquote * {
            color: #ffffff !important;
            font-weight: 500 !important;
            background: #141414 !important;
            background-color: #141414 !important;
            border-left-color: #f97316 !important;
        }

        /* Modal Close Buttons */
        html.dark .modal-close-btn,
        html.dark #image-modal-close-btn,
        html.dark #blog-modal-close-btn {
            background: #262626 !important;
            background-color: #262626 !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
        }

        html.dark .modal-close-btn i,
        html.dark #image-modal-close-btn i,
        html.dark #blog-modal-close-btn i {
            color: #ffffff !important;
        }

        /* Modal Action Buttons (Like & Share) */
        html.dark #like-btn,
        html.dark #share-btn,
        html.dark #like-btn-bottom,
        html.dark #share-btn-bottom,
        html.dark #like-btn-image,
        html.dark #share-btn-image,
        html.dark .like-btn,
        html.dark .share-btn {
            background: #171717 !important;
            background-color: #171717 !important;
            color: #ffffff !important;
            border: none !important;
        }

        html.dark #like-btn:hover,
        html.dark #share-btn:hover,
        html.dark #like-btn-bottom:hover,
        html.dark #share-btn-bottom:hover,
        html.dark #like-btn-image:hover,
        html.dark #share-btn-image:hover {
            background: #b45309 !important;
            background-color: #b45309 !important;
            color: #ffffff !important;
            border: none !important;
        }

        /* 8. Search Dropdowns & Inputs */
        html.dark .search-dropdown-card,
        html.dark .search-dropdown {
            background: #000000 !important;
            background-color: #000000 !important;
            border: none !important;
            color: #ffffff !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
        }

        html.dark #desktop-search-input,
        html.dark #mobile-search-input {
            color: #ffffff !important;
            background: #171717 !important;
            background-color: #171717 !important;
            border: none !important;
        }

        html.dark .search-dropdown div:hover {
            background: #262626 !important;
            background-color: #262626 !important;
        }

        /* 9. Mobile Navigation Floating Popover Card & Overlay System */
        .mobile-drawer-overlay {
            position: fixed !important;
            inset: 0 !important;
            background-color: rgba(15, 23, 42, 0.6) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            z-index: 9999 !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
        }

        .mobile-drawer-overlay.active {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        .mobile-drawer-content {
            position: fixed !important;
            bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
            right: 1.25rem !important;
            width: calc(100% - 2.5rem) !important;
            max-width: 310px !important;
            background: #ffffff !important;
            background-color: #ffffff !important;
            border: 1px solid rgba(214, 211, 209, 0.85) !important;
            border-radius: 1.5rem !important;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 1px 1px rgba(255, 255, 255, 0.5) inset !important;
            display: flex !important;
            flex-direction: column !important;
            padding: 1.15rem !important;
            overflow-y: auto !important;
            transform: scale(0.85) translateY(15px) !important;
            transform-origin: bottom right !important;
            opacity: 0 !important;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
            z-index: 10000 !important;
        }

        .mobile-drawer-overlay.active .mobile-drawer-content {
            transform: scale(1) translateY(0) !important;
            opacity: 1 !important;
        }

        html.dark .mobile-drawer-content {
            background: #171717 !important;
            background-color: #171717 !important;
            border: 1px solid #262626 !important;
            color: #ffffff !important;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 18px rgba(180, 83, 9, 0.25) !important;
        }

        /* Mobile Search Input inside Hamburger Drawer */
        .mobile-search-box {
            background: #f5f5f4 !important;
            border: 1px solid #e7e5e4 !important;
            color: #1c1917 !important;
        }

        html.dark .mobile-search-box {
            background: #262626 !important;
            border: 1px solid #404040 !important;
            color: #ffffff !important;
        }

        /* Mobile Floating Action Button Menu Container & Toggle Visibility */
        .mobile-fab-menu {
            position: fixed !important;
            bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
            right: 1.25rem !important;
            z-index: 10001 !important;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
        }

        .mobile-fab-menu button {
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
            width: 3.5rem !important;
            height: 3.5rem !important;
            border-radius: 9999px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: #18181b !important;
            color: #ffffff !important;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease !important;
        }

        .mobile-fab-menu button:hover {
            transform: scale(1.08) !important;
            box-shadow: 0 14px 30px -4px rgba(180, 83, 9, 0.5), 0 8px 12px -4px rgba(0, 0, 0, 0.4) !important;
        }

        .mobile-fab-menu button:active {
            transform: scale(0.92) !important;
        }

        /* Animated Icon Spin & Scale Morph between Hamburger and X */
        #mobile-menu-icon,
        .mobile-fab-menu button i {
            display: inline-block !important;
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, color 0.3s ease !important;
            transform: rotate(0deg) scale(1);
        }

        .mobile-fab-menu button.is-open #mobile-menu-icon,
        .mobile-fab-menu button.is-open i {
            transform: rotate(180deg) scale(1.15) !important;
            color: #ffffff !important;
        }

        /* Keep floating action button visible when mobile drawer is open so X icon appears in exact same spot */
        body.modal-active .mobile-fab-menu {
            opacity: 1 !important;
            pointer-events: auto !important;
            transform: scale(1) !important;
            visibility: visible !important;
        }

        /* 10. Compact Footer Styling & Color System */
        footer {
            margin-top: 1.25rem !important;
            margin-bottom: 0.25rem !important;
            padding-top: 0.5rem !important;
            padding-bottom: 0.5rem !important;
            color: #18181b !important;
        }

        footer span,
        footer div,
        footer strong {
            color: #18181b !important;
        }

        html.dark footer,
        html.dark footer span,
        html.dark footer div,
        html.dark footer strong {
            border-top-color: #262626 !important;
            color: #ffffff !important;
        }

        footer a,
        footer a.footer-link,
        footer a:hover,
        html.dark footer a,
        html.dark footer a.footer-link {
            color: #b45309 !important;
            text-decoration: underline !important;
        }

        /* 11. Search Magnifying Glass Icons (Rich Amber Brown #b45309) */
        #mobile-drawer i.fa-search,
        html.dark #mobile-drawer i.fa-search,
        .mobile-search-box i,
        .mobile-search-box i.fa-search,
        .search-wrapper i.fa-search,
        #desktop-search-toggle i,
        #desktop-search-dropdown i.fa-search,
        #mobile-search-results i.fa-search {
            color: #b45309 !important;
        }