
/* Global Font Settings */
body {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    font-size: 20px;
    line-height: 1.55;
    color: #222;
    background-color: #ffffff;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: 'Crimson Text', serif !important;
    color: #111 !important;
}

.title.is-1 { 
    font-size: 3.2rem; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    margin-bottom: 1rem !important;
}
.title.is-3 { 
    font-size: 2.2rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
    border-bottom: 2px solid #eaeaea; 
    padding-bottom: 8px; 
}
.subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Links */
a { color: #004cc4; transition: color 0.2s ease; }
a:hover { color: #003282; text-decoration: underline; }

/* Author Block */
.publication-title { margin-bottom: 24px !important; }
.publication-authors { 
    font-family: 'Lato', sans-serif; 
    font-size: 1.25rem; 
    color: #444; 
}
.author-block a { color: #222; text-decoration: none; border-bottom: 1px dotted #999; }
.author-block a:hover { border-bottom: 1px solid #000; }

/* Buttons */
.button.is-dark {
    background-color: #2c2c2c;
    border-radius: 4px; 
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 24px;
    height: 2.8em;
}
.button.is-rounded { border-radius: 4px !important; }

/* Content Text */
.content p {
    text-align: justify; 
    margin-bottom: 1em; 
    font-weight: 400;
}
.content b, .content strong { font-weight: 700; color: #000; }

/* Container Width */
.container.is-max-desktop {
    max-width: 980px; 
}

/* --- Media Styling --- */
.publication-video, video {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
img {
    border: none;
    box-shadow: none;
}
.img-with-border {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Captions */
.caption-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: block;
}

/* BibTeX Block */
pre {
    background-color: #f6f8fa;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 1.5rem;
    color: #24292e;
    line-height: 1.45;
}

/* Footer */
.footer { background-color: #fafafa; padding: 4rem 1.5rem; border-top: 1px solid #eaeaea; }

/* --- Image Comparison Slider Styles --- */
.compare-container {
    position: relative;
    width: 100%;
    overflow: hidden; 
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    cursor: col-resize;
    user-select: none;
}

.compare-img {
    width: 100%;
    height: auto;
    display: block;
}

/* The top image (Overlay) */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initial split position */
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.img-overlay img {
    /* Fixed width relative to container to prevent squashing */
    width: 100vw; 
    max-width: none;
    height: 100%;
}

/* The Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    z-index: 2;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    pointer-events: none; 
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

/* Labels */
.slider-label {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8rem;
    font-family: 'Lato', sans-serif;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
}
.label-left { left: 10px; }
.label-right { right: 10px; }
