        :root {
            --bg-page: #fdfdfd;
            --sidebar-bg: #f5f5f5;
            --text-primary: #18181b;
            --text-headers: #5d4037;
            --text-secondary: #52525b;
            --accent-main: #800020;
            --accent-hover: #5c0017;
            --accent-gold: #cdb587;
            --user-bubble: #f3f3f3;
            --border-color: #e4e4e7;
            --font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
            --sidebar-width: 280px;

            --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);

            /* Code Block Tokens (Soft Light Theme) */
            --code-bg: #fdfdfd;
            --code-header-bg: #800020;
            /* Brand Burgundy */
            --code-accent-gold: #cdb587;
            /* Brand Gold */
            --code-text: #333333;
            --code-border: #e4e4e7;
            --code-font: 'JetBrains Mono', monospace;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background 0.3s ease, color 0.3s ease;
        }

        body {
            font-family: var(--font-family);
            background: var(--bg-page);
            color: var(--text-primary);
            height: 100vh;
            height: 100dvh;
            display: flex;
            overflow: hidden;
            /* Support for safe areas on mobile */
            padding-bottom: env(safe-area-inset-bottom);
        }

        /* KEYFRAMES */
        @keyframes slideUpFade {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* Sidebar */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--sidebar-bg);
            border-left: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            padding: 1rem;
            z-index: 100;
            transition: transform 0.4s var(--ease-apple);
        }

        .history-container {
            flex: 1;
            overflow-y: auto;
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding-bottom: 1rem;
        }

        .history-item {
            padding: 10px 14px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.95rem;
            color: var(--text-secondary);
            transition: 0.3s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .history-item:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--text-primary);
        }

        .history-item.active {
            background: rgba(128, 0, 32, 0.08);
            color: var(--accent-main);
            font-weight: 600;
        }

        .history-item .delete-chat {
            opacity: 0;
            transition: 0.2s;
            padding: 4px;
        }

        .history-item:hover .delete-chat {
            opacity: 0.6;
        }

        .history-item .delete-chat:hover {
            opacity: 1;
            color: #ff3b30;
        }

        .new-chat {
            background: white;
            border: 1px solid #d4d4d8;
            padding: 0.8rem 1rem;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 700;
            color: var(--accent-main);
            transition: 0.3s var(--ease-apple);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
            margin-bottom: 2rem;
        }

        .new-chat:hover {
            background: var(--accent-main);
            color: white;
            border-color: var(--accent-main);
            transform: scale(1.02);
        }

        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            background: var(--bg-page);
            transition: filter 0.4s ease;
            min-height: 0;
            /* Important for flex shrinking */
        }

        .is-zoomed {
            filter: blur(10px) brightness(0.9);
        }

        /* Top Bar */
        .top-bar {
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: fadeIn 0.8s ease;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--text-headers);
        }

        .logo-img-sm {
            width: 80px;
            height: 80px;
            border-radius: 18px;
            object-fit: cover;
            border: 1px solid rgba(0, 0, 0, 0.1);
            background: white;
            padding: 2px;
        }

        /* Chat */
        .chat-scroll {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 2rem;
            scroll-behavior: smooth;
            min-height: 0;
            /* Important for flex shrinking */
            -webkit-overflow-scrolling: touch;
        }

        .chat-content {
            max-width: 850px;
            margin: 0 auto;
            padding: 1rem 1.5rem 3rem;
            /* Extra padding at bottom */
            display: flex;
            flex-direction: column;
            gap: 2.2rem;
            min-height: 100%;
        }

        /* Welcome Screen */
        .welcome-screen {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            text-align: center;
            color: var(--text-secondary);
            padding: 2rem 1rem;
            animation: slideUpFade 0.6s var(--ease-apple);
        }

        .welcome-avatar {
            width: 220px;
            height: 220px;
            border-radius: 40px;
            object-fit: cover;
            margin-bottom: 1.5rem;
            border: 3px solid var(--accent-gold);
            padding: 3px;
            background: white;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        }

        .welcome-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .welcome-subtitle {
            font-size: 1.3rem;
            color: var(--text-secondary);
            max-width: 600px;
            line-height: 1.6;
        }

        .quick-reply-btn {
            background: white;
            border: 1px solid var(--accent-gold);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-family: inherit;
            color: var(--text-headers);
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .quick-reply-btn:hover {
            background: var(--accent-gold);
            color: white;
            transform: translateY(-2px);
        }

        /* Messages with Apple Motion */
        .message {
            animation: slideUpFade 0.5s var(--ease-apple) forwards;
        }

        .message.user {
            align-items: flex-start;
            display: flex;
            flex-direction: column;
        }

        .bubble-user {
            background-color: var(--user-bubble);
            color: var(--text-primary);
            padding: 14px 24px;
            border-radius: 20px 20px 4px 20px;
            font-size: 1.05rem;
            font-weight: 500;
            width: fit-content;
            max-width: 85%;
            word-wrap: break-word;
            line-height: 1.6;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            transition: transform 0.2s ease;
        }

        .bubble-user:active {
            transform: scale(0.98);
        }

        .user-image-msg {
            max-width: 320px;
            border-radius: 18px;
            margin-bottom: 10px;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: 0.3s var(--ease-apple);
            animation: scaleIn 0.4s var(--ease-apple);
        }

        .user-image-msg:hover {
            transform: scale(1.02);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .message.bot {
            align-items: flex-start;
            display: flex;
            flex-direction: column;
        }

        .bot-container {
            display: flex;
            gap: 18px;
            width: 100%;
        }

        .bubble-bot {
            color: var(--text-primary);
            width: 100%;
            font-size: 1.1rem;
            line-height: 1.8;
            font-weight: 400;
            padding-top: 5px;
            unicode-bidi: plaintext;
            text-align: right;
            /* Default but plaintext overrides per paragraph */
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .bubble-bot p {
            margin-bottom: 1.2rem;
            color: #2d2d2d;
            max-width: 100%;
            line-height: 1.9;
        }

        /* Premium English Text Styling */
        .bubble-bot :not(:dir(rtl)) {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            letter-spacing: -0.01em;
        }

        .bubble-bot h1,
        .bubble-bot h2,
        .bubble-bot h3 {
            font-weight: 800;
            margin-top: 1.8rem;
            margin-bottom: 1rem;
            color: var(--text-headers);
            unicode-bidi: plaintext;
        }

        .bubble-bot h1 {
            font-size: 1.9rem;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 12px;
        }

        /* Enhanced Code Blocks */
        .code-block-wrapper {
            margin: 1.5rem 0;
            background: var(--code-bg);
            border-radius: 24px;
            /* Soft edges */
            overflow: hidden;
            border: 1px solid var(--code-border);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
            font-family: var(--code-font);
            direction: ltr;
            text-align: left;
        }

        .code-header {
            background: var(--code-header-bg);
            padding: 10px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .code-lang {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 800;
        }

        .copy-code-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 5px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.3s;
            font-weight: 700;
            font-family: var(--font-family);
        }

        .copy-code-btn:hover {
            background: var(--code-accent-gold);
            color: var(--accent-main);
            border-color: var(--code-accent-gold);
            transform: translateY(-1px);
        }

        .copy-code-btn i {
            font-size: 0.85rem;
        }

        .code-block-wrapper pre {
            margin: 0;
            padding: 1.2rem 0;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: #444 transparent;
        }

        .code-block-wrapper code {
            display: block;
            font-family: var(--code-font);
            font-size: 0.92rem;
            line-height: 1.7;
            color: var(--code-text);
            padding: 0;
        }

        .line-number {
            display: inline-block;
            width: 3.2rem;
            text-align: right;
            padding-right: 1.2rem;
            color: #ccc;
            user-select: none;
            border-right: 1px solid #f0f0f0;
            margin-right: 1.2rem;
        }

        .line-number::before {
            content: attr(data-line);
        }

        .line-content {
            white-space: pre;
        }

        /* Syntax Highlighting High-Contrast Overrides */
        .hljs-keyword,
        .hljs-selector-tag {
            color: #ff79c6;
            font-weight: 600;
        }

        .hljs-string {
            color: #f1fa8c;
        }

        .hljs-comment,
        .hljs-quote {
            color: #6272a4;
            font-style: italic;
        }

        .hljs-function,
        .hljs-title {
            color: #50fa7b;
        }

        .hljs-number,
        .hljs-literal {
            color: #bd93f9;
        }

        .hljs-params {
            color: #ffb86c;
        }

        .hljs-built_in {
            color: #8be9fd;
        }

        .hljs-attr {
            color: #ffb86c;
        }


        /* Lightbox */
        .lightbox-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 500;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(15px);
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .lightbox-overlay.active {
            display: flex;
            opacity: 1;
        }

        .zoomed-image {
            max-width: 92%;
            max-height: 92%;
            border-radius: 20px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.8);
            transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .lightbox-overlay.active .zoomed-image {
            transform: scale(1);
        }

        /* Input Area - Minimalized & Animated */
        .input-area {
            padding: 1rem 1.5rem 2.5rem;
            background: transparent;
            flex-shrink: 0;
            /* Never hide input area */
            z-index: 10;
        }

        .input-container-main {
            max-width: 850px;
            margin: 0 auto;
            width: 100%;
            animation: slideUpFade 0.7s var(--ease-apple) 0.2s backwards;
        }

        .input-box-wrapper {
            background: #ffffff;
            border-radius: clamp(20px, 5vw, 32px);
            border: 1px solid #e5e7eb;
            padding: clamp(10px, 2vw, 14px) clamp(14px, 3vw, 20px);
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: 0.3s var(--ease-apple);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        }

        .input-box-wrapper:focus-within {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            border-color: #d1d5db;
            transform: translateY(-2px);
        }

        .input-top-row {
            display: flex;
            justify-content: flex-end;
            width: 100%;
            padding-bottom: 2px;
        }

        .preview-box {
            position: relative;
            width: fit-content;
            min-width: 75px;
            height: 75px;
            border-radius: 14px;
            overflow: visible;
            display: none;
            border: 1px solid #efefef;
            animation: scaleIn 0.3s var(--ease-apple);
            background: #fff;
        }

        .file-preview-icon {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            gap: 4px;
            color: #444746;
        }

        .file-preview-icon i {
            font-size: 1.5rem;
            color: var(--accent-main);
        }

        .file-preview-name {
            font-size: 0.65rem;
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .preview-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
            cursor: pointer;
        }

        .remove-img-btn {
            position: absolute;
            top: -10px;
            right: -10px;
            background: #ff3b30;
            color: white;
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            z-index: 5;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .input-center-row {
            display: flex;
            align-items: flex-end;
            gap: clamp(8px, 2vw, 14px);
        }

        textarea {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            resize: none;
            max-height: 220px;
            min-height: clamp(24px, 5vw, 28px);
            font-family: var(--font-family);
            font-size: clamp(0.95rem, 2vw, 1.1rem);
            padding: 4px 0;
            color: var(--text-primary);
            line-height: 1.5;
        }

        .input-bottom-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 6px;
        }

        /* Removed tools row content here */

        .action-group {
            display: flex;
            align-items: center;
            gap: 18px;
            width: 100%;
            justify-content: space-between;
        }

        .left-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .right-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn-icon {
            color: #444746;
            font-size: 1.25rem;
            cursor: pointer;
            transition: 0.2s var(--ease-apple);
            padding: 10px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-icon:hover {
            color: #1a1a1a;
            background: #f0f2f4;
            transform: scale(1.08);
        }

        .btn-icon:active {
            transform: scale(0.92);
        }

        .send-btn {
            background: var(--accent-main);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.3s var(--ease-apple);
            box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
        }

        .send-btn:hover {
            transform: scale(1.08) rotate(-5deg);
            filter: brightness(1.1);
        }

        .send-btn:active {
            transform: scale(0.95);
        }

        .send-btn:disabled {
            background: #f2f2f7;
            color: #aeaeb2;
            transform: none;
            box-shadow: none;
            pointer-events: none;
        }

        /* Modal Apple Style */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 200;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(20px);
            animation: fadeIn 0.4s ease;
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.9);
            padding: 2.5rem;
            border-radius: 28px;
            width: 90%;
            max-width: 440px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            animation: scaleIn 0.5s var(--ease-apple);
            border: 1px solid rgba(255, 255, 255, 0.4);
        }

        .modal-content h2 {
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 1.2rem;
        }

        .form-group input {
            width: 100%;
            padding: 14px;
            border: 1px solid #e5e5ea;
            border-radius: 14px;
            font-size: 1.05rem;
            background: #fbfbfd;
            outline: none;
            transition: 0.3s;
        }

        .form-group input:focus {
            border-color: var(--accent-main);
            background: #fff;
        }

        .modal-btn {
            background: var(--accent-main);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 16px;
            font-size: 1.1rem;
            cursor: pointer;
            margin-top: 1.5rem;
            width: 100%;
            font-weight: 700;
            transition: 0.3s var(--ease-apple);
        }

        .modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(128, 0, 32, 0.2);
        }

        .thinking-indicator {
            display: flex;
            align-items: center;
            gap: 6px; /* Closer gap for cohesion */
            padding: 12px 18px;
            border-radius: 20px;
            background: #f1f1f1; /* Light gray like iMessage */
            width: fit-content;
            margin-bottom: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }
        
        .thinking-dot {
            width: 8px;
            height: 8px;
            background-color: #8e8e93; /* Apple system gray */
            border-radius: 50%;
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .thinking-dot:nth-child(1) { animation-delay: -0.32s; }
        .thinking-dot:nth-child(2) { animation-delay: -0.16s; }
        
        @keyframes bounce {
            0%, 80%, 100% { 
                transform: scale(0);
                opacity: 0.5;
            }
            40% { 
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Overlay for mobile sidebar */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 90;
            /* Below sidebar (100) */
            opacity: 0;
            visibility: hidden;
            transition: 0.3s;
            backdrop-filter: blur(2px);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            :root {
                --sidebar-width: 0px;
            }

            body {
                flex-direction: column;
                /* Ensure proper stacking if needed, though row works with fixed sidebar */
            }

            .sidebar {
                position: fixed;
                right: -285px;
                /* Fully hide */
                height: 100%;
                width: 280px;
                box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
                transition: right 0.4s var(--ease-apple);
            }

            .sidebar.active {
                right: 0;
                transform: none;
                /* Override any existing transform */
            }

            .main {
                width: 100%;
                min-width: 100vw;
            }

            .chat-content {
                padding: 1rem 12px 120px;
                /* Space for input box on mobile */
            }

            .input-area {
                padding: 8px 10px 18px;
            }

            .input-box-wrapper {
                padding: 10px 12px;
                border-radius: 20px;
                gap: 6px;
            }
            
            textarea {
                min-height: 24px;
                font-size: 0.95rem;
            }

            .top-bar {
                padding: 10px 16px;
            }

            /* Force show menu button via CSS */
            #mobileMenu {
                display: block !important;
            }

            .logo-area span {
                font-size: 1.1rem;
            }

            .welcome-title {
                font-size: 1.6rem;
            }

            .welcome-subtitle {
                font-size: 1rem;
                padding: 0 10px;
            }

            .modal-content {
                padding: 1.5rem;
                width: 90%;
                max-width: 90%;
            }

            .bubble-user {
                padding: 10px 16px;
                font-size: 0.95rem;
                max-width: 90%;
            }

            .message.bot .bot-container {
                gap: 10px;
            }

            .bot-avatar-spacer {
                display: none;
            }

            .bubble-bot {
                font-size: 1rem;
                line-height: 1.7;
            }
        }
        /* =========================
   MOTION SYSTEM
========================= */
:root {
    --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --dur-fast: 160ms;
    --dur-normal: 280ms;
    --dur-slow: 420ms;
}

/* =========================
   KEYFRAMES
========================= */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================
   MESSAGE ANIMATIONS
========================= */
.message {
    animation: slideUpFade var(--dur-normal) var(--ease-apple) both;
    will-change: transform, opacity;
}

.user-image-msg,
.modal-content {
    animation: scaleIn var(--dur-normal) var(--ease-apple);
    will-change: transform, opacity;
}

/* =========================
   HOVER / INTERACTION
========================= */
.btn-icon {
    transition:
        transform var(--dur-fast) var(--ease-apple),
        background var(--dur-fast) var(--ease-soft),
        color var(--dur-fast) var(--ease-soft);
}

.btn-icon:hover {
    transform: translateY(-1px);
}

.send-btn {
    transition:
        transform var(--dur-fast) var(--ease-apple),
        filter var(--dur-fast) var(--ease-apple);
}

.send-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.history-item,
.new-chat {
    transition:
        background var(--dur-fast) var(--ease-soft),
        color var(--dur-fast) var(--ease-soft),
        transform var(--dur-fast) var(--ease-apple);
}

.new-chat:hover {
    transform: translateY(-1px);
}

/* =========================
   INPUT FOCUS
========================= */
.input-box-wrapper {
    transition:
        box-shadow var(--dur-normal) var(--ease-apple),
        transform var(--dur-normal) var(--ease-apple),
        border-color var(--dur-fast) var(--ease-soft);
}

.input-box-wrapper:focus-within {
    transform: translateY(-1px);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox-overlay {
    transition: opacity var(--dur-normal) var(--ease-apple);
}

.zoomed-image {
    transform: scale(0.95);
    transition: transform var(--dur-slow) var(--ease-apple);
}

.lightbox-overlay.active .zoomed-image {
    transform: scale(1);
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
