@import 'https://fonts.googleapis.com/css?family=Source Code Pro';
@import 'https://fonts.googleapis.com/css?family=Open Sans';

body {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}
.small-image {
    width: 64px;
    height: 64px;
    vertical-align: middle; /* to align the image with the text */
    margin-top: -12px; /* to give some space between the image and the text */
    margin-right: 4px; /* to give some space between the image and the text */
}

.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
    font-variant: small-caps;
}

.dcliport {
    font-variant: small-caps;
}

.dvima {
    /* TODO specific VIMA font */
    /* font-variant: small-caps; */
}

/* Intro paragraph shared by every section: full-width, justified */
.section-lead {
    font-size: 125%;
    text-align: justify;
}


.teaser .hero-body {
    padding-top: 0;
    padding-bottom: 3rem;
}

.teaser {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}

.teaser video {
    object-fit: fill;

}

#glass {
    margin-left: -10px;
}


.publication-banner {
    max-height: parent;

}

.publication-banner video {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}

.publication-authors {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
    color: hsl(121, 100%, 36%) !important;
}

.conference-authors a {
    color: hsl(0, 0%, 16%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
    display: inline-block;
}

.project-authors {
    line-height: 1.8;
}

.project-authors .author-block {
    margin: 0 0.2rem;
}

.project-affiliations {
    margin-top: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.project-affiliations p + p {
    margin-top: 0.4rem;
}

.equal-contribution {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.publication-banner img {
}

.publication-authors {
    /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
    overflow: hidden;
}

.results-carousel .item {
    margin: 5px;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 10px;
    padding: 0;
    font-size: 0;
}

.results-carousel video {
    margin: 0;
}


.interpolation-panel {
    background: #f5f5f5;
    border-radius: 10px;
}

.interpolation-panel .interpolation-image {
    width: 100vh;
    background-size: cover;
    border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
    margin: 0 !important;
}

.interpolation-panel .slider {
    margin: 0 !important;
}

#interpolation-image-wrapper {
    width: 100%;
}

#interpolation-image-wrapper img {
    border-radius: 5px;
}

#interpolation-image img {
    padding: 0;
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

.dropdown-item {
    white-space: pre-wrap;
}

.scrollable {
    max-height: 800px; /* You can adjust this value as per your design */
    overflow-y: auto;
}

.data-curation-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: 1.5rem;
    align-items: center;
}

.data-curation-tasks {
    display: grid;
    gap: 1.15rem;
}

.data-curation-task {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.data-curation-label {
    font-size: clamp(1.2rem, 1.75vw, 1.65rem);
    line-height: 1.08;
    font-weight: 600;
    text-align: center;
    white-space: normal;
}

.data-curation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: transparent;
    border: 0;
}

.data-curation-video {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0b1620;
}

.data-curation-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.outcome-mark {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: clamp(18px, 2.2vw, 24px);
    height: clamp(18px, 2.2vw, 24px);
    opacity: 1;
    transform: scale(1);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
    z-index: 2;
}

.data-curation-filter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-curation-filter img {
    width: 100%;
    max-width: 320px;
    display: block;
}

.policy-evaluation-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.policy-evaluation-lead {
    max-width: 860px;
    font-size: 125%;
    text-align: justify;
    margin: 0;
}

.policy-evaluation-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    justify-content: center;
    align-items: start;
    width: min(100%, 1120px);
}

.policy-evaluation-video {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.policy-evaluation-video video {
    width: 100%;
    max-width: 360px;
    border-radius: 5px;
}

.policy-evaluation-video p {
    width: 100%;
    max-width: 360px;
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 105%;
    line-height: 1.25;
}

.policy-evaluation-clarification {
    max-width: 860px;
    margin: 0;
    text-align: justify;
    font-size: 110%;
    line-height: 1.45;
    color: #444;
}

.policy-comparison-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.policy-comparison-section + .policy-evaluation-note {
    margin-top: 3rem;
}

.body-scale-section + .policy-comparison-section {
    margin-top: 3rem;
}

.policy-comparison-group {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.policy-comparison-group + .policy-comparison-group {
    margin-top: 1.4rem;
}

.body-scale-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.body-scale-section + .policy-evaluation-note {
    margin-top: 3rem;
}

.body-scale-group {
    width: 100%;
    max-width: 1120px;
}

.body-scale-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 700;
    text-align: center;
    color: #333;
}

.body-scale-task-title {
    margin: 0.85rem 0 0.5rem;
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    font-weight: 600;
    text-align: center;
    color: #444;
}

.body-scale-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.body-scale-item {
    margin: 0;
}

.body-scale-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #0b1620;
    border-radius: 5px;
}

.body-scale-item figcaption {
    margin-top: 0.4rem;
    text-align: center;
    font-size: 95%;
    line-height: 1.25;
    color: #444;
}

.policy-comparison-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
    max-width: 980px;
}

.policy-comparison-label {
    font-weight: 600;
    text-align: center;
    color: #333;
}

.policy-comparison-label {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.ours-label {
    color: #2f6fdf;
}

.policy-comparison-video {
    position: relative;
    background: #0b1620;
    border-radius: 5px;
    overflow: hidden;
}

.policy-comparison-video video {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.policy-comparison-video::after {
    position: absolute;
    top: 6px;
    right: 6px;
    border-radius: 999px;
    padding: 0.16rem 0.48rem;
    font-size: clamp(0.68rem, 0.9vw, 0.78rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.policy-comparison-video.is-success::after {
    content: "Success";
    background: #20a558;
}

.policy-comparison-video.is-failure::after {
    content: "Failure";
    background: #c7463e;
}

.policy-comparison-item {
    margin: 0;
}

.policy-comparison-item figcaption {
    margin-top: 0.55rem;
    text-align: center;
    font-size: 105%;
    line-height: 1.25;
    color: #444;
}

@media screen and (max-width: 1023px) {
    .data-curation-flow {
        grid-template-columns: 1fr;
    }

    .data-curation-filter {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .data-curation-task {
        grid-template-columns: 1fr;
    }

    .data-curation-label {
        text-align: center;
    }

    .data-curation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .policy-evaluation-videos {
        grid-template-columns: minmax(240px, 360px);
        width: 100%;
    }

    .policy-comparison-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
    }

    .policy-comparison-label {
        display: none;
    }

    .policy-comparison-video::before {
        content: attr(data-policy);
        display: block;
        background: #f5f5f5;
        color: #333;
        font-weight: 600;
        text-align: center;
        padding: 0.35rem 0.5rem;
        font-size: 1rem;
    }

    .body-scale-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media screen and (max-width: 520px) {
    .body-scale-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
