/* Base styles of the Nerfies template, as used on demodiffusion.github.io. */
body { font-family: 'Noto Sans', sans-serif; }
.link-block a { margin-top: 5px; margin-bottom: 5px; }
.publication-title, .publication-authors, .teaser { font-family: 'Google Sans', sans-serif; }

/* Header. */
.publication-title { line-height: 1.2; }
.publication-title .method-color { color: #6b3fa0; }
.publication-authors { color: #000; }
.author-block { display: inline-block; margin: 0 0.5rem; }
.affiliation { margin-top: 0.4rem; }

/* Teaser. */
.teaser { background-color: #ffffff; }
.teaser .hero-body { padding-top: 0; padding-bottom: 3rem; }
.hero.teaser .subtitle { margin-top: 2rem; }

/* Sections: white and light grey alternate (as on demodiffusion.github.io). */
.section-grey { background-color: #f8f9fa; }

/* Videos and figures. */
video { display: block; width: 100%; height: auto; border-radius: 6px; }
.ratio-16x9 { aspect-ratio: 16 / 9; object-fit: contain; }
/* Responsive 16:9 YouTube embed (Nerfies template). */
.publication-video { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; border-radius: 10px !important; background: #000; }
.publication-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.method-figure { display: block; width: 100%; }
.figure-caption { margin-top: 1rem; text-align: justify; }

/* Demonstration -> execution pairs. */
.pair-videos { margin-bottom: 0 !important; }
.pair-task { color: #000; margin-top: 0.25rem; margin-bottom: 1.25rem; }
.video-content .pair-task:last-child { margin-bottom: 0; }

/* Comparison blocks. */
.cmp-title { margin-top: 2.5rem; }
h2 + .cmp-title { margin-top: 0; }
.method-name { margin-bottom: 0.5rem !important; }
.method-name sub { line-height: 0; }
.cmp-row { margin-bottom: 0 !important; }
.ours { color: #6b3fa0; }

/* Task tabs (as on demodiffusion.github.io). */
.video-tabs .tabs { margin-bottom: 1rem; }
.video-tabs .tabs li.is-active a { color: #6b3fa0 !important; font-weight: bold; }
.video-content { display: none; }
.video-content.is-active { display: block; }

/* Gallery. */
.gallery-grid video { border-radius: 4px; }

/* Footer. */
.footer { background-color: #ffffff; padding: 1rem 0 1.5rem; font-size: 0.9rem; }


.method-name { min-height: 2.6em; margin-bottom: 0.4rem !important; }
.method-name .cite { display: block; font-weight: 400; font-size: 0.8em; color: #555; margin-top: 0.1em; }

.anim-video { display: block; width: 100%; height: auto; }
#method .anim-video { margin-top: 1.5rem; }

video.gif { pointer-events: none; display: block; width: 100%; background-size: 100% 100%; background-repeat: no-repeat; }
video.gif::-webkit-media-controls { display: none !important; }

.rate { color: #000; margin-top: 0.4rem; font-size: 0.95rem; }
.ours-rate { font-weight: 600; }

.publication-authors a { color: #000 !important; text-decoration: none; }
.publication-authors a:hover { text-decoration: underline; }
