/* Container for the thumbnails */
.dropzone.dz-clickable {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    align-content: start;
}

/* Individual preview thumbnail */
.dropzone .dz-preview {
    margin: 0 !important;
    width: 100% !important;
    min-height: 120px !important;
}

/* Fix the thumbnail image size */
.dropzone .dz-preview .dz-image {
    width: 100% !important;
    height: 120px !important;
    border-radius: 12px !important;
}

/* Center the "Drop files here" message when empty */
.dropzone .dz-message {
    grid-column: 1 / -1;
    padding: 4rem 0;
    text-align: center;
}


/* ==========================================================
   5. LOGO TICKER - THEME AWARE
   ========================================================== */

/* Dark Mode Logo Adjustment */
.ticker-logo {
    /* Remove invert(1) because the logos are already white pixels */
    /* We reset the filter to ensure it doesn't stay black */
    filter: brightness(0) invert(1);
    /* OR if you just want them pure white as they are: */
    /* filter: none; */

    opacity: 0.9;
}

.ticker-logo:hover {
    /* Ensure hover stays visible */
    filter: none !important;
    opacity: 1;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Apply this to both light and dark mode */
.ticker-wrap {
    background-color: #111827; /* Dark background for white logos */
    border-color: #1f2937;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    /* Change this to a dark color so white logos are visible */
    background-color: #111827; /* Tailwind gray-900 (Deep Dark) */
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
}


.ticker-container {
    display: flex !important;
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll-left 35s linear infinite;
}

.ticker-logo {
    display: block;
    height: 40px !important;
    width: auto;
    margin: 0 3.5rem;
    /* Base style: Grayscale for a professional look */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* ==========================================================
   1. BASE & UTILITY STYLES
   ========================================================== */
/* ==========================================================
   ARCHIVAL TYPOGRAPHY (CRIMSON PRO)
   ========================================================== */

body {
    /* Set the primary font stack */
    font-family: 'Crimson Pro', 'Georgia', serif;
    
    /* Optimized for reading long historical bios */
    font-size: 1.15rem;           /* Slightly larger for serif legibility */
    line-height: 1.8;             /* Generous vertical breathing room */
    color: #1e293b;               /* Slate-800: soft deep gray, less harsh than black */
    background-color: #fdfcfb;     /* Eggshell/Paper tint to reduce eye strain */
    
    /* High-end Type Features */
    font-optical-sizing: auto;
    font-kerning: normal;
    
    /* This is the 'secret sauce' for genealogy: 
       It makes years like 1894 have varying heights, 
       giving them a hand-set, historical appearance.
    */
    font-variant-numeric: oldstyle-nums; 
    
    -webkit-font-smoothing: antialiased;
}

/* Headers: We use the serif but often lighter weights for elegance */
h1, h2, h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 400; 
    letter-spacing: -0.01em;
}

.font-serif {
    font-family: 'Crimson Pro', serif;
}

/* Labels: Contrast the serif with the sharp, bold Sans (Inter) */
.label-text, .font-sans {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em; /* Spaced out 'Bureau' style */
    font-size: 0.7rem;
    color: #64748b; /* Slate-500 */
}

/* Latin motto override */
.latin-motto {
    font-weight: 400 !important;
    font-style: italic !important;
}

/* Biography Content Styling */
.biography-content h3 {
    font-style: italic;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.biography-content p {
    margin-bottom: 1.5rem;
}

/* Utility to invert dark logos for dark backgrounds */
.logo-invert-white {
    filter: invert(100%) brightness(100%);
}

/* ==========================================================
   2. COMMENT FORM STYLES (Overrides for Dark Mode)
   ========================================================== */

/* Targets form fields (textarea, input[type="text"], etc.) */
.post-content .comment-form textarea,
.post-content .comment-form input[type="text"],
.post-content .comment-form input[type="email"],
.post-content .comment-form input[type="url"] {
    background-color: #1f2937; /* A dark gray (gray-800) */
    color: #f3f4f6;             /* A light gray (gray-100) for the text */
    border: 1px solid #4b5563;  /* A medium-gray border (gray-600) */
    border-radius: 0.375rem;    /* 'rounded-md' in Tailwind */
    padding: 0.5rem 0.75rem;    /* Add some padding */
    width: 100%;                /* Make them full-width */
}
.post-content .comment-form ::placeholder {
    color: #6b7280; /* gray-500 */
}
.post-content .logged-in-as a {
    color: #60a5fa; /* blue-400 */
    text-decoration: underline;
}

/* ==========================================================
   3. DYNAMIC & ANIMATION STYLES (Controlled by JavaScript)
   ========================================================== */

/* Initial state for fade-in/slide-up animation (.js-scroll-animate) */
.js-scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    /* Transition applied to both opacity and transform */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Override for the metric counters which are animated by JS */
.js-counter {
    /* Ensures numbers align properly during counting */
    font-variant-numeric: tabular-nums; 
}

/* ==========================================================
   4. GDPR COOKIE CONSENT BANNER STYLES
   ========================================================== */

#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 41, 55, 0.95); /* bg-gray-800 with opacity */
    color: #d1d5db; /* text-gray-300 */
    padding: 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}
#cookieConsentBanner.hidden {
    opacity: 0;
    pointer-events: none;
}
#cookieConsentBanner p {
    margin-bottom: 0;
    text-align: center;
    font-size: 0.875rem; /* text-sm */
}
#cookieConsentBanner a {
    color: #60a5fa; /* blue-400 */
    text-decoration: underline;
}
#cookieConsentBanner button {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600; /* font-semibold */
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#cookieConsentBanner button:hover {
    background-color: #3b82f6; /* bg-blue-500 */
}
@media (min-width: 768px) {
    #cookieConsentBanner {
        flex-direction: row;
        justify-content: space-between;
    }
    #cookieConsentBanner p {
        text-align: left;
    }
}

