@import url(fontawesome-all.min.css);
@import 'https://fonts.googleapis.com/css?family=Source Code Pro';
@import 'https://fonts.googleapis.com/css?family=Open Sans';
@import "myriad_pro.css";

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; */
}


.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(204, 100%, 50%) !important;
}

.conference-authors a {
    color: hsl(0, 0%, 16%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
    display: inline-block;
}

.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;
}

.video-caption {
    font-size: 28px !important;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 12px;
    text-align: center;
}

.rollout-video-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    margin: 0 auto 34px;
    width: 100%;
}

.rollout-video-item {
    text-align: center;
}

.rollout-video-grid.is-four .rollout-video-item {
    flex: 0 1 calc(25% - 24px);
    max-width: calc(25% - 24px);
    width: calc(25% - 24px);
}

.rollout-video-grid.is-two {
    gap: 80px;
}

.rollout-video-grid.is-two .rollout-video-item {
    flex: 0 1 340px;
    max-width: 340px;
    width: 32%;
    text-align: center;
}

.rollout-video-item video {
    display: block;
    width: 100% !important;
}

.result-figure-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    margin: 18px auto 24px;
    width: 100%;
}

.result-figure-item {
    flex: 1 1 0;
    max-width: 48%;
    text-align: center;
}

.result-figure-item img {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.result-figure-caption {
    font-size: 22px;
    line-height: 1.25;
    margin-top: 10px;
    text-align: center;
}

@media screen and (max-width: 640px) {
    .rollout-video-grid {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }

    .rollout-video-grid.is-four .rollout-video-item,
    .rollout-video-grid.is-two .rollout-video-item {
        width: 100%;
        max-width: 340px;
    }

    .result-figure-grid {
        flex-direction: column;
        gap: 24px;
    }

    .result-figure-item {
        max-width: 100%;
    }
}

/* -------- Experimental Demos: per-task method/baseline carousel (mimics PRIMT) -------- */
.gif-carousel {
    position: relative;
    margin: 0 auto 10px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    max-width: 480px;
}

.gif-carousel .carousel-images {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gif-carousel .carousel-images video,
.gif-carousel .carousel-images img {
    width: 100%;
    display: none;
    border: none;
    transition: opacity 0.5s ease-in-out;
}

.gif-carousel .carousel-images video.active,
.gif-carousel .carousel-images img.active {
    display: block;
}

.gif-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 5px;
}

.gif-carousel .carousel-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gif-carousel .carousel-nav button:hover {
    opacity: 1;
}

.gif-carousel .gif-label {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

.gif-carousel .dots-container {
    text-align: center;
    padding: 10px 0;
}

.gif-carousel .dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.gif-carousel .dot.active {
    background-color: #007bff;
}

.gif-carousel video,
.gif-carousel img {
    margin: 0;
    border: none;
    border-radius: 0;
}

/* -------- Real-world Deployment -------- */
/* Cap the whole row's width so the two clips sit closer together.
   SMALLER max-width  ==> LESS horizontal space between the two videos. */
.realworld-grid {
    max-width: 820px;   /* <-- LARGER = more space between the two videos; SMALLER = less */
    margin-left: auto;
    margin-right: auto;
}

/* Size of each clip. */
.realworld-grid .column img {
    display: block;
    max-width: 320px;   /* <-- change this to make the real-world clips bigger/smaller */
    margin-left: auto;
    margin-right: auto;
}

/* -------- Table <-> Chart toggle (crossfade) -------- */
.table-chart-stage {
    position: relative;
    max-width: 90%;              /* overall figure width; adjust as needed */
    margin: 0 auto 30px auto;
    aspect-ratio: 1927 / 630;    /* taller image's w/h -> fixed height, no jump on switch */
}
.table-chart-stage .tc-view {
    position: absolute;          /* both views fill the stage, out of flow */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;         /* preserve each image's ratio inside the fixed stage */
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.table-chart-stage .tc-view.is-active {
    opacity: 1;
    pointer-events: auto;
}
