/* ------------------------------------------------------ */
/* All teaser-slider things                               */
/* ------------------------------------------------------ */
.teaser-slide-row {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    float: left;
}

.teaser-slide-col {
    flex: 1 0 200px;
    height: 200px;
}

.teaser-slide-arrow {
    display: flex;
    top: 0;
    bottom: 0;
    margin-top: 80px;
    /* (200 - 40) / 2 */
    height: 40px;
    background-color: #FBE2B1;
    border: none;
    width: 5%;
    font-size: 30px;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
    justify-content: center;
}

.teaser-slide-arrow:hover,
.teaser-slide-arrow:focus {
    background-color: #FBC661;
    opacity: 1;
}

#teaser-slide-arrow-prev {
    float: left;
    left: 0;
    margin-right: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

#teaser-slide-arrow-next {
    float: right;
    right: 0;
    margin-left: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

.results-slide-row {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    height: 140px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    float: left;
}

.results-slide-col {
    flex: 1 0 140px;
    height: 140px;
}

.results-slide-arrow {
    display: flex;
    top: 0;
    bottom: 0;
    margin-top: 50px;
    /* (140 - 40) / 2 */
    height: 40px;
    background-color: #FBE2B1;
    border: none;
    width: 5%;
    font-size: 30px;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
    justify-content: center;
}

.results-slide-arrow:hover,
.results-slide-arrow:focus {
    background-color: #FBC661;
    opacity: 1;
}

#results-slide-arrow-prev {
    float: left;
    left: 0;
    margin-right: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

#results-slide-arrow-next {
    float: right;
    right: 0;
    margin-left: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

.thumbnails {
    /* width: 100%; */
    height: 100px;
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail-btn {
    border: none;
    cursor: pointer;
    outline: none;
    background-color: #fff;
    border-radius: 10px;
}

.thumbnail-btn:hover {
    background-color: #eaeaea;
}

.thumbnail_label {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0;
}

/* ------------------------------------------------------ */
/* Image compare */
/* ------------------------------------------------------ */
.image-compare {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: content-box;
    cursor: pointer;
    user-select: none;
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.image-compare::before {
    /* Prevent selection, similar to user-select: none. */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.image-compare img {
    max-width: 100%;
    background: #fff;
    display: block;
}

.image-compare img:not(:first-child) {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: top left;
    width: 50%;
    overflow: hidden;
    z-index: 1;
}

.image-compare-handle {
    height: 100%;
    width: 0.5em;
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    z-index: 20;
}

.image-compare-handle i {
    background: #fff;
    border-radius: 50%;
    line-height: 2em;
    width: 2em;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    box-shadow: 0em 0.1em 0.5em rgba(0, 0, 0, 0.1);
}

.image-compare-handle::before {
    /* Centered line! */
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.4);
    content: "";
    height: 100%;
    position: absolute;
    left: -1px;
    right: -1px;
    background: #fff;
}

.image-compare-before,
.image-compare-after {
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    position: absolute;
    overflow: hidden;
}

.image-compare-before>div,
.image-compare-after>div {
    position: absolute;
    bottom: 0.5em;
    background: #fff;
    line-height: 1.5em;
    text-align: center;
    padding: 0.2em 0.6em;
    border-radius: 0.5em;
    white-space: nowrap;
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.2);
}

.image-compare-before>div {
    z-index: 2;
    left: 0.5em;
}

.image-compare-after>div {
    z-index: 0;
    right: 0.5em;
}

/* ------------------------------------------------------ */

:root {
    --opacity: 50;
    --blue-dark: #0F2DC6;
    --blue-mid: #6A82FF;
    --blue-light: #E2E3FF;
    --gray-dark: #010101;
}

#canvas {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

#canvas-overlay {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    /* opacity: var(--opacity); */
    filter: opacity(var(--opacity));
    transition-property: filter;
    transition-duration: 0.5s;
}

#main-results {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
    background-color: #0a0a0a;
    border-radius: 15px;
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

/* #main-results > div {
    height: 200px;
    background-color: red;
} */

.videos {
    visibility: hidden;
    position: absolute;
    width: 1%;
}

#opacity {
    font-family: 'Open Sans', sans-serif;
    color: #3c3c3c;
    font-size: 20px;
    line-height: 20px;
}

.viewer-bar {
    width: 33.3333%;
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    margin-left: 15px;
    margin-top: 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(36px);
    -ms-transform: translateX(36px);
    transform: translateX(36px);
}

.video-bar {
    width: 100%;
    margin-top: -50px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    height: 40px;
    position: relative;
    z-index: 41;
    /* the image-compare bar is 40. */
}

.video-btn {
    width: 40px;
    height: 40px;
    padding: 8px 6px 8px 6px;
    margin: 0px 10px 0px 0px;
    cursor: pointer;
    outline: none;
}


/* Pixie-specific: ensure GARField switcher wins over Bulma */
#real #main-results .switcher {
    width: 100%;
    background: #1a1a1a;
    border: 1.5px solid #333;
    border-radius: 10px;
    padding: 0.8em 1.2em;
    margin: 0.5em 0 1em;
}

#real .switcher .switcher-labels {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: .75em;
}

#real .switcher .switcher-labels label {
    display: inline-flex;
    /* override Bulma reset */
    margin: 0;
    /* remove Bulma's bottom margin */
    font-size: 16px;
    cursor: pointer;
    /* padding: 0.7em 0.7em;
    border-radius: 999px; */
}

#real .results-slide-row {
    display: flex;
    overflow-x: hidden; /* re-enable when we have more scenes */
    /* justify-content: center; */ /* This is the property that is causing the issue */
    gap: 18px;
    scroll-behavior: smooth;
    width: 100%;
    height: 170px; /* ensure image + label fit without scrolling */
    margin: 0;
    padding: 0px 0px; /* No horizontal padding */
}

#real .thumbnail-btn {
    flex: 0 0 200px; /* rectangular card spanning more width */
    margin: 0;
    background: transparent;
    border: 0;
    transition: transform 0.2s ease;
}

#real .thumbnails {
    width: 100% !important;
    height: 120px; /* rectangular aspect, shorter to avoid scrolling */
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: box-shadow .2s ease, outline-color .2s ease;
}

#real .switcher .switcher-labels label {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#real .switcher .switcher-labels label:first-child {
    font-size: 18px;
    font-weight: 700;
    color: white;
    /* title bold */
}

#real .switcher input[type="radio"] {
    transform: scale(1.4);
    /* bigger circles */
    margin-right: 0.6em;
    accent-color: #7873f5;
}

/* Keep selection indicated by the radio only (no extra label highlight) */
#real .switcher input[type="radio"]:checked + label {
    background: transparent;
    border: none;
}

#real .thumbnail_label {
    font-size: 18px;
    color: white;
    display: block;
    margin-top: 8px;
}

#real .image-compare-handle i {
    font-size: 30px;
    line-height: 2.5em;
    width: 2.5em;
    background: linear-gradient(180deg, #2b2b2b, #1f1f1f);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .55);
}

#real .image-compare-before>div,
#real .image-compare-after>div {
    top: 0.5em !important;
    bottom: auto !important;
}

#real .image-compare-before>div,
#real .image-compare-after>div {
    font-size: 18px !important;
    font-weight: 600;
    padding: 0.25em 0.9em;
    background: white !important;
    color: black !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

#real .fa-arrows-alt,
#real .fa-download {
    display: none !important;
}

#real #play-btn {
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 48px;
    height: 48px;
    padding: 10px !important;
    background-color: #333 !important;
}

#real #play-btn:hover {
    background-color: #555 !important;
}

/* ─── Pixie colour refresh ─────────────────────────── */
#real .results-slide-arrow,
#real .video-btn {
    background-color: #222;
    color: #fff;
    transition: background-color .2s, transform .15s ease-out, box-shadow .2s;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

#real .results-slide-arrow:hover,
#real .video-btn:hover {
    background-color: #3a3a3a;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

#real .thumbnail-btn:hover .thumbnails {
    box-shadow: 0 8px 22px rgba(0,0,0,.45);
}

#real .switcher .switcher-labels>label:first-child {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-right: 1.2em;
    color: white !important;
}

/* Active thumbnail state — highlight image directly */
#real .thumbnail-btn.active .thumbnails {
    outline: 3px solid #7873f5;
    outline-offset: -3px;
    box-shadow: 0 10px 26px rgba(120,115,245,.35);
}

.thumbnail-scroller {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#real .results-slide-arrow {
    flex-shrink: 0;
    margin: 0 8px;
    width: 40px;
    height: 40px;
    margin-top: 0;
}