:root {
            --primary-color: #ff434b;
            --bg-color: #fbf9f4;
            --text-color: #333;
            --card-bg: #ffffff;
            --card-shadow: rgba(0, 0, 0, 0.08);
            --card-hover-shadow: rgba(249, 242, 232, 0.8);
            --pill-bg: white;
            --pill-shadow: rgba(0,0,0,0.08);
            --btn-bg: #ffffff;
            --btn-text: #666666;
            --icon-color: #666666;
            --card-hover-bg: #f9f2e8;
            --font-family: 'Montserrat', sans-serif;
        }

        /* ============ LANDING OVERLAY ============ */
        .landing-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 5000;
            background: linear-gradient(to bottom right, #000000 0%, #333333 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.6s ease, transform 0.6s ease;
            overflow-y: auto;
        }
        .landing-overlay.fade-out {
            opacity: 0;
            transform: scale(1.05);
            pointer-events: none;
        }

        .landing-content {
            text-align: center;
            padding: 40px 30px;
            max-width: 500px;
            width: 100%;
            animation: landingFadeIn 0.8s ease-out;
        }
        @keyframes landingFadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Top brand */
        .landing-brand-top {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 35px;
        }
        .landing-logo {
            width: 140px;
            height: auto;
            opacity: 0.6;
        }

        /* Cover image */
        .landing-cover-wrapper {
            width: 85%;
            max-width: 420px;
            height: auto;
            margin: 0 auto 30px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow:
                0 20px 60px rgba(0,0,0,0.5),
                0 0 30px 12px rgba(255, 67, 75, 0.4),
                0 0 120px rgba(255, 67, 75, 0.35);
            position: relative;
            cursor: pointer;
            animation: landingCoverGlow 4s ease-in-out infinite;
        }
        @keyframes landingCoverGlow {
            0%, 100% {
                box-shadow:
                    0 20px 60px rgba(0,0,0,0.5),
                    0 0 25px 10px rgba(255, 67, 75, 0.35),
                    0 0 160px rgba(255, 67, 75, 0.3);
            }
            50% {
                box-shadow:
                    0 20px 60px rgba(0,0,0,0.5),
                    0 0 40px 15px rgba(255, 67, 75, 0.5),
                    0 0 220px rgba(255, 67, 75, 0.45);
            }
        }
        .landing-cover-img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Title */
        .landing-title {
            font-size: 28px;
            font-weight: 700;
            color: white;
            margin-bottom: 12px;
            line-height: 1.3;
            font-family: var(--font-family);
        }

        /* Year range */
        .landing-years {
            font-size: 18px;
            color: var(--primary-color);
            font-weight: 500;
            margin-bottom: 20px;
            letter-spacing: 2px;
        }

        /* Stats */
        .landing-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 35px;
        }
        .landing-stat {
            display: flex;
            align-items: baseline;
            gap: 6px;
        }
        .landing-stat-number {
            font-size: 36px;
            font-weight: 700;
            color: white;
        }
        .landing-stat-label {
            font-size: 16px;
            color: rgba(255,255,255,0.6);
            font-weight: 400;
        }

        /* Enter button */
        .landing-enter-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 16px 40px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            font-family: var(--font-family);
            margin-bottom: 40px;
        }
        .landing-enter-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 67, 75, 0.4);
        }
        .landing-enter-btn:active {
            transform: translateY(-1px);
        }
        .landing-enter-btn svg {
            width: 22px;
            height: 22px;
            fill: white;
            transition: transform 0.3s;
        }
        .landing-enter-btn:hover svg {
            transform: translateX(4px);
        }

        /* Bottom brand */
        .landing-brand-bottom {
            color: rgba(255,255,255,0.3);
            font-size: 13px;
        }
        .landing-brand-bottom strong {
            color: rgba(255,255,255,0.5);
        }
        .landing-copyright {
            color: #B1B1B1;
            font-size: 11px;
            margin-top: 10px;
        }

        /* Landing mobile adjustments */
        @media (max-width: 600px) {
            .landing-content {
                padding: 30px 20px;
            }
            .landing-cover-wrapper {
                width: 90%;
                max-width: none;
                margin-bottom: 25px;
            }
            .landing-title {
                font-size: 22px;
            }
            .landing-years {
                font-size: 15px;
            }
            .landing-stat-number {
                font-size: 28px;
            }
            .landing-enter-btn {
                padding: 14px 32px;
                font-size: 16px;
            }
        }

        /* Expired Landing State */
        .landing-expired-message {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
        }
        .landing-expired-message .expired-icon {
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 24px;
        }
        .landing-expired-message .expired-title {
            font-size: 28px;
            font-weight: 600;
            color: #ffffff;
            margin: 0 0 16px 0;
        }
        .landing-expired-message .expired-text {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
            max-width: 400px;
        }
        @media (max-width: 600px) {
            .landing-expired-message .expired-title {
                font-size: 22px;
            }
            .landing-expired-message .expired-text {
                font-size: 14px;
            }
        }

        /* Dark Mode */
        body.dark-mode {
            --bg-color: #0b0b0c;
            --text-color: #f0f0f0;
            --card-bg: #2a2a34;
            --card-shadow: rgba(0, 0, 0, 0.3);
            --card-hover-shadow: rgba(68, 68, 68, 0.8);
            --pill-bg: #2a2a34;
            --pill-shadow: rgba(0,0,0,0.3);
            --btn-bg: #2a2a34;
            --btn-text: #d6d6d6;
            --icon-color: #d6d6d6;
            --card-hover-bg: #444444;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: var(--font-family);
            background: var(--bg-color);
            color: var(--text-color);
            min-height: 100vh;
            transition: background 0.3s, color 0.3s;
            display: flex;
            flex-direction: column;
        }

        /* Main content area - grows to push footer to bottom */
        .container {
            flex: 1;
            width: 100%;
        }

        /* Mobile/Desktop visibility helpers */
        .mobile-only { display: none; }
        .desktop-only { display: inline; }
        @media (max-width: 600px) {
            .mobile-only { display: inline; }
            .desktop-only { display: none; }
        }

        /* Top Bar with Logo and Layout Buttons */
        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            background: transparent;
        }

        /* Loading progress (inline in pill) */
        .loading-progress {
            font-size: 11px;
            color: #666666;
            margin-left: 4px;
            transition: opacity 0.5s;
        }
        body.dark-mode .loading-progress {
            color: #d6d6d6;
        }
        .loading-progress.done {
            opacity: 0;
        }

        /* Floating Logo Pill */
        .logo-pill {
            background: var(--pill-bg);
            padding: 8px 16px;
            border-radius: 20px;
            box-shadow: 0 2px 15px var(--pill-shadow);
            display: flex;
            align-items: center;
            white-space: nowrap;
            transition: background 0.3s, box-shadow 0.3s;
        }
        .logo-pill .logo-text {
            font-size: 14px;
            color: #666;
            font-weight: 400;
        }
        body.dark-mode .logo-pill .logo-text {
            color: #d6d6d6;
        }
        .logo-pill .logo-text strong {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* Right Controls */
        .right-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Mobile: Stack buttons vertically */
        @media (max-width: 600px) {
            .top-bar {
                align-items: flex-start;
                pointer-events: none; /* Allow clicks to pass through empty space */
            }
            .top-bar > * {
                pointer-events: auto; /* But keep buttons clickable */
            }
            .right-controls {
                flex-direction: column;
                align-items: flex-end;
                gap: 6px;
                pointer-events: auto;
            }
            .right-controls .copy-btn {
                order: 1;
            }
            .right-controls .whatsapp-btn {
                order: 2;
            }
            .right-controls .dark-toggle {
                order: 3;
            }
            .right-controls .settings-btn {
                order: 4;
            }
            .logo-pill {
                max-width: 70%;
            }
            .logo-pill .logo-text {
                font-size: 13px;
                white-space: normal;
                line-height: 1.3;
            }
        }
        /* Dark Mode Toggle */
        .dark-toggle {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--pill-bg);
            border: none;
            box-shadow: 0 2px 15px var(--pill-shadow);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .dark-toggle:hover {
            transform: scale(1.05);
        }
        .dark-toggle svg {
            width: 20px;
            height: 20px;
            fill: #666;
            transition: fill 0.3s;
        }
        body.dark-mode .dark-toggle svg {
            fill: #ffd700;
        }
        .dark-toggle .sun-icon { display: none; }
        .dark-toggle .moon-icon { display: block; }
        body.dark-mode .dark-toggle .sun-icon { display: block; }
        body.dark-mode .dark-toggle .moon-icon { display: none; }


        /* Copy tooltip (hidden by default, shown on click) */
        .share-tooltip {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-5px);
            transition: all 0.2s;
        }
        .share-tooltip.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Settings Button & Panel - HIDDEN */
        .settings-btn {
            display: none;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--pill-bg);
            border: none;
            box-shadow: 0 2px 15px var(--pill-shadow);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .settings-btn:hover {
            transform: scale(1.05);
        }
        .settings-btn svg {
            width: 20px;
            height: 20px;
            fill: var(--primary-color);
            transition: transform 0.3s;
        }
        .settings-btn.active svg {
            transform: rotate(90deg);
        }

        .settings-panel {
            position: fixed;
            top: 62px;
            right: 15px;
            width: 280px;
            background: var(--pill-bg);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            z-index: 999;
            padding: 20px;
            transform: translateY(-10px) scale(0.95);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .settings-panel.open {
            transform: translateY(0) scale(1);
            opacity: 1;
            visibility: visible;
        }
        .settings-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eee;
        }
        body.dark-mode .settings-title {
            border-bottom-color: #444;
        }
        .settings-section {
            margin-bottom: 18px;
        }
        .settings-label {
            font-size: 11px;
            font-weight: 600;
            color: #666;
            margin-bottom: 8px;
            display: block;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        body.dark-mode .settings-label {
            color: #999;
        }
        .color-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .color-option {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s;
        }
        .color-option:hover { transform: scale(1.1); }
        .color-option.selected { border-color: #333; }

        .font-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .font-option {
            padding: 10px 14px;
            border: 2px solid #eee;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            color: var(--text-color);
        }
        body.dark-mode .font-option {
            border-color: #444;
        }
        .font-option:hover { border-color: var(--primary-color); }
        .font-option.selected {
            border-color: var(--primary-color);
            background: rgba(232, 96, 124, 0.08);
        }
        body.dark-mode .font-option.selected {
            background: rgba(232, 96, 124, 0.2);
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Settings Panel - Mobile */
        @media (max-width: 600px) {
            .settings-panel {
                right: 10px;
                left: 10px;
                width: auto;
                max-height: 70vh;
                overflow-y: auto;
                padding: 15px;
            }
            .settings-title {
                font-size: 14px;
                margin-bottom: 12px;
                padding-bottom: 8px;
            }
            .settings-section {
                margin-bottom: 12px;
            }
            .settings-label {
                font-size: 10px;
                margin-bottom: 6px;
            }
            .color-option {
                width: 30px;
                height: 30px;
            }
            .font-options {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 6px;
            }
            .font-option {
                padding: 6px 10px;
                font-size: 11px;
            }
        }

        /* Grid - Default Layout */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 12px;
            padding: 16px;
        }
        @media (max-width: 600px) {
            .grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; padding: 8px; }
        }


        .grid-item {
            aspect-ratio: 1;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 3px 10px var(--card-shadow);
            background: var(--card-bg);
            position: relative;
            transition: background 0.3s, box-shadow 0.3s;
            contain: layout style paint;
        }

        /* Loading dot - pulsing dot in center */
        .grid-item::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 8px;
            height: 8px;
            margin: -4px 0 0 -4px;
            background: rgba(150, 150, 150, 0.4);
            border-radius: 50%;
            z-index: 1;
            opacity: 0;
        }
        .grid-item.near-viewport::before {
            animation: pulse 2s ease-in-out infinite;
        }
        .grid-item.loaded::before { display: none; }

        @keyframes pulse {
            0%, 100% { opacity: 0.15; }
            50% { opacity: 0.5; }
        }

        @media (max-width: 600px) {
            .grid-item {
                box-shadow: none;
            }
        }

        /* Missing image indicator */
        .grid-item.error {
            background: #e8e8e8;
        }
        .grid-item.error::before { display: none; }
        body.dark-mode .grid-item.error {
            background: #3a3a5a;
        }
        .grid-item.error::after {
            content: '📷';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 32px;
            opacity: 0.3;
        }

        .grid-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }
        .grid-item.loaded img {
            opacity: 1;
            transform: scale(1);
        }

        /* Layout transition for grid items */
        .grid-item {
            transition: opacity 0.4s ease-out, transform 0.4s ease-out, background 0.3s, box-shadow 0.3s;
        }
        .grid-item:hover { box-shadow: 0 8px 25px var(--card-hover-shadow); }
        .grid-item:hover img { transform: scale(1.05); cursor: pointer; }

        /* Photo Number - always visible */
        .photo-number {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
            color: white;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
            z-index: 3;
        }

        /* Title Overlay */
        .photo-title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 30px 10px 10px;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            color: white;
            font-size: 11px;
            line-height: 1.3;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 2;
        }
        .grid-item:hover .photo-title,
        .grid-item.loaded .photo-title { opacity: 1; }
        .photo-date {
            font-weight: normal;
            color: white;
        }

        /* Load More - hidden by default, auto-scroll loads */
        .load-more {
            display: none;
            margin: 25px auto;
            padding: 14px 35px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .load-more:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
        .load-more:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        /* Loading indicator - floating pill */
        .loading-indicator {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--pill-bg);
            padding: 10px 20px;
            border-radius: 25px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            color: var(--text-color);
            font-size: 13px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .loading-indicator::after {
            content: '';
            width: 16px;
            height: 16px;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Expired Share Message */
        .expired-message {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 80px 20px;
            min-height: 50vh;
        }
        .expired-icon {
            color: var(--text-muted);
            margin-bottom: 24px;
            opacity: 0.6;
        }
        .expired-title {
            font-size: 28px;
            font-weight: 600;
            color: var(--text-color);
            margin: 0 0 16px 0;
        }
        .expired-text {
            font-size: 16px;
            color: var(--text-muted);
            margin: 0;
            max-width: 400px;
        }
        @media (max-width: 600px) {
            .expired-message {
                padding: 60px 20px;
            }
            .expired-title {
                font-size: 22px;
            }
            .expired-text {
                font-size: 14px;
            }
        }

        /* Footer - sticky to bottom */
        .pm-footer {
            background: #333333;
            color: #ffffff;
            padding: 40px 20px;
            text-align: center;
            margin-top: auto;
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }
        body.dark-mode .pm-footer {
            background: #2a2a34;
        }
        .pm-footer-logo {
            display: inline-block;
            margin-bottom: 15px;
            text-decoration: none;
            transition: opacity 0.2s;
        }
        .pm-footer-logo:hover {
            opacity: 0.8;
        }
        .pm-footer-logo-img {
            width: 160px;
            height: auto;
        }
        .pm-footer-stats {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin: 25px 0;
            flex-wrap: wrap;
        }
        .pm-footer-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .pm-footer-stat-number {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            display: block;
        }
        .pm-footer-stat-label {
            font-size: 12px;
            color: #B1B1B1;
            text-transform: uppercase;
            text-align: center;
        }
        .pm-footer p {
            font-size: 16px;
            color: #ffffff;
            line-height: 1.6;
            max-width: 500px;
            margin: 0 auto 20px;
        }
        .pm-footer-cta {
            font-size: 16px;
            color: white;
            margin: 20px 0;
            font-weight: 500;
        }
        .pm-footer a {
            color: var(--primary-color);
            text-decoration: none;
        }
        .pm-footer a:hover { text-decoration: underline; }

        .pm-footer-legal {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 60px;
            margin-bottom: 15px;
            font-size: 13px;
        }
        .pm-footer-legal a {
            color: #B1B1B1;
            text-decoration: none;
        }
        .pm-footer-legal a:hover {
            color: #B1B1B1;
            text-decoration: underline;
        }
        .pm-footer-legal .divider {
            color: #B1B1B1;
        }
        .pm-footer-legal .ccpa-opt-out {
            background: none;
            border: none;
            color: #B1B1B1;
            cursor: pointer;
            font-size: 13px;
            font-family: inherit;
            padding: 0;
        }
        .pm-footer-legal .ccpa-opt-out:hover {
            color: #B1B1B1;
            text-decoration: underline;
        }
        .pm-footer p.pm-footer-copyright {
            font-size: 13px;
            color: #B1B1B1;
            margin-top: 20px;
            padding-bottom: 10px;
        }

        /* Get Photomyne Button in Footer */
        .pm-footer .footer-get-photomyne {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 16px 40px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            font-family: var(--font-family);
            text-decoration: none;
            margin: 25px 0;
        }
        .pm-footer .footer-get-photomyne:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 67, 75, 0.4);
            text-decoration: none;
            color: white;
        }
        .pm-footer .footer-get-photomyne:active {
            transform: translateY(-1px);
        }
        .pm-footer .footer-get-photomyne svg {
            width: 22px;
            height: 22px;
            fill: white;
            transition: transform 0.3s;
        }
        .pm-footer .footer-get-photomyne:hover svg {
            transform: translateX(4px);
        }

        /* Download ZIP Button */
        .download-zip {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 20px auto;
            padding: 12px 25px;
            background: #2D2D2D;
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .download-zip:hover { background: #444; transform: translateY(-2px); }
        .download-zip:disabled { opacity: 0.5; cursor: not-allowed; }

        /* Lightbox */
        .lightbox {
            direction: ltr;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .lightbox.open {
            opacity: 1;
            visibility: visible;
        }
        .lightbox-content {
            max-width: 90vw;
            max-height: 85vh;
            position: relative;
        }
        .lightbox-content img {
            max-width: 90vw;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
            cursor: pointer;
        }
        .lightbox-content img.loaded {
            opacity: 1;
            transform: scale(1);
        }
        /* Photo info overlay in lightbox - positioned above thumbnails */
        .lightbox-photo-info {
            position: fixed;
            bottom: 150px;
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 20px;
            background: rgba(0,0,0,0.85);
            color: white;
            border-radius: 10px;
            opacity: 0;
            transition: opacity 0.3s;
            max-width: 80%;
            text-align: center;
            z-index: 2005;
        }
        .lightbox-photo-info.visible {
            opacity: 1;
        }
        .lightbox-photo-year {
            font-size: 14px;
            color: white;
            font-weight: normal;
            margin-bottom: 4px;
        }
        .lightbox-photo-title {
            font-size: 15px;
            font-weight: 500;
            line-height: 1.4;
        }
        @media (max-width: 600px) {
            .lightbox-photo-info {
                max-width: 90%;
                width: 90%;
                padding: 15px;
            }
        }
        /* Image rotation */
        .lightbox-content img {
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
        }
        .lightbox-content img.rotate-90 { transform: rotate(90deg) scale(1); }
        .lightbox-content img.rotate-180 { transform: rotate(180deg) scale(1); }
        .lightbox-content img.rotate-270 { transform: rotate(270deg) scale(1); }
        .lightbox-content img.loaded.rotate-90 { transform: rotate(90deg) scale(1); }
        .lightbox-content img.loaded.rotate-180 { transform: rotate(180deg) scale(1); }
        .lightbox-content img.loaded.rotate-270 { transform: rotate(270deg) scale(1); }
        /* Thumb blur (slight blur while showing thumbnail, sharpens when full loads) */
        .lightbox-content img.thumb-blur {
            filter: blur(2px);
            transition: filter 0.3s ease-out, opacity 0.4s ease-out, transform 0.4s ease-out;
        }
        .lightbox-content img.thumb-blur.loaded {
            filter: blur(0);
        }


        .lightbox-close {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 45px;
            height: 45px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 28px;
            cursor: pointer;
            transition: background 0.2s;
            z-index: 2001;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        .lightbox-close:hover { background: rgba(255,255,255,0.2); }
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            cursor: pointer;
            transition: background 0.2s;
            z-index: 2001;
        }
        .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
        .lightbox-prev { left: 20px; }
        .lightbox-next { right: 20px; }
        .lightbox-info {
            position: absolute;
            bottom: -50px;
            left: 0;
            right: 0;
            text-align: center;
            color: white;
            font-size: 14px;
        }
        .lightbox-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255,255,255,0.7);
            font-size: 14px;
        }

        /* Lightbox UI Hidden State - toggle with click on image */
        .lightbox.ui-hidden .lightbox-thumbs,
        .lightbox.ui-hidden .lightbox-photo-info,
        .lightbox.ui-hidden .lightbox-actions,
        .lightbox.ui-hidden .lightbox-nav,
        .lightbox.ui-hidden .lightbox-close,
        .lightbox.ui-hidden .lightbox-counter,
        .lightbox.ui-hidden .lightbox-details {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .lightbox .lightbox-thumbs,
        .lightbox .lightbox-photo-info,
        .lightbox .lightbox-actions,
        .lightbox .lightbox-nav,
        .lightbox .lightbox-close,
        .lightbox .lightbox-counter,
        .lightbox .lightbox-details {
            transition: opacity 0.3s ease;
        }

        /* Lightbox Actions */
        .lightbox-actions {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 2001;
        }
        .lightbox-action-btn {
            width: 45px;
            height: 45px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .lightbox-action-btn:hover { background: rgba(255,255,255,0.2); }
        .lightbox-action-btn svg { width: 20px; height: 20px; fill: currentColor; }
        /* Flip button highlight when showing back */
        #lightboxFlip[data-showing="back"] {
            background: var(--primary-color);
        }
        .lightbox-action-btn .action-tooltip {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 8px;
            background: #333;
            color: white;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 11px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s;
        }
        .lightbox-action-btn .action-tooltip.show {
            opacity: 1;
            visibility: visible;
        }

        /* Get Photomyne Button in Lightbox */
        .lightbox-get-photomyne {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            font-family: var(--font-family);
            text-decoration: none;
        }
        .lightbox-get-photomyne:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 67, 75, 0.4);
            text-decoration: none;
            color: white;
        }
        .lightbox-get-photomyne:active {
            transform: translateY(-1px);
        }
        .lightbox-get-photomyne svg {
            width: 20px;
            height: 20px;
            fill: white;
            transition: transform 0.3s;
        }
        .lightbox-get-photomyne:hover svg {
            transform: translateX(4px);
        }

        /* Lightbox Photo Details Panel */
        .lightbox-details {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.85);
            padding: 15px 25px;
            border-radius: 12px;
            color: white;
            font-size: 13px;
            max-width: 90vw;
            display: none;
        }
        .lightbox-details.show { display: block; }
        .lightbox-details-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .lightbox-detail-item {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .lightbox-detail-item svg { width: 16px; height: 16px; fill: var(--primary-color); flex-shrink: 0; }
        .lightbox-detail-label { color: #999; flex-shrink: 0; }
        .lightbox-detail-value { color: white; font-weight: 500; }
        .photomyne-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(255,255,255,0.1);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 400;
            color: rgba(255,255,255,0.5);
        }
        .photomyne-badge svg {
            width: 10px;
            height: 10px;
            opacity: 0.5;
        }

        /* Download All Button - Full Width */
        .download-all-btn {
            width: calc(100% - 32px);
            margin: 16px auto;
            padding: 16px 24px;
            border-radius: 12px;
            background: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            color: white;
            border: none;
            font-family: inherit;
        }
        .download-all-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.25);
        }
        .download-all-btn svg { width: 24px; height: 24px; fill: white; }
        .download-all-btn span { font-size: 15px; font-weight: 600; }
        .download-all-btn.downloading {
            pointer-events: none;
            opacity: 0.7;
        }
        .download-all-btn .spinner {
            width: 24px;
            height: 24px;
            border: 3px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @media (max-width: 600px) {
            .download-all-btn {
                width: calc(100% - 16px);
                margin: 12px auto;
                padding: 14px 20px;
            }
            .download-all-btn span { font-size: 14px; }
        }

        /* Thumbnail Strip in Lightbox */
        .lightbox-thumbs {
            position: absolute;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            padding: 10px;
            background: rgba(0,0,0,0.7);
            border-radius: 12px;
            max-width: 90vw;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.3) transparent;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
        }
        .lightbox-thumbs::-webkit-scrollbar {
            height: 6px;
        }
        .lightbox-thumbs::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
        }
        .lightbox-thumb {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            background: #333;
            flex-shrink: 0;
            opacity: 0.5;
            transition: opacity 0.2s, transform 0.2s;
            border: 2px solid transparent;
            scroll-snap-align: center;
        }
        .lightbox-thumb:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }
        .lightbox-thumb.active {
            opacity: 1;
            border-color: var(--primary-color);
        }
        .lightbox-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Copy + WhatsApp Buttons */
        .copy-btn,
        .whatsapp-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--pill-bg);
            border: none;
            box-shadow: 0 2px 15px var(--pill-shadow);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            position: relative;
        }
        .copy-btn:hover,
        .whatsapp-btn:hover {
            transform: scale(1.05);
        }
        .copy-btn svg {
            width: 20px;
            height: 20px;
            fill: #666666;
        }
        .whatsapp-btn svg {
            width: 20px;
            height: 20px;
        }
        body.dark-mode .copy-btn svg {
            fill: #d6d6d6;
        }
        .whatsapp-btn svg {
            fill: #25D366;
        }
        body.dark-mode .whatsapp-btn svg {
            fill: #25D366;
        }