/*!
 * Based on TwentyTwenty (https://github.com/zurb/twentytwenty)
 * Copyright 2018 zurb, ISC license — full notice in jquery.twentytwenty.js.
 * Modified by the Carnegie Mellon computational imaging lab.
 */
/* ----------- */
/*  container  */
/* ----------- */
.twentytwenty-container {
    box-sizing: content-box;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none; /* Safari still needs the prefix */
    user-select: none;
    /* Claim touch gestures inside the widget so a drag moves the split instead of scrolling the page */
    touch-action: none;
    margin: 5px auto;
    border: 2px solid black;
    display:block;
    /*width: 50%;*/
}
.twentytwenty-container img,
.twentytwenty-container video {
    position: absolute;
    top: 0;
    display: block;
    max-width: 100%;
    height: auto;
}
/* Every image is out of flow, so a container the plugin has not initialized yet would
   collapse to a 2px line and the page would jump when it does. Keep the first image in
   flow until then: its width/height attributes give the container the box it will end up
   with. The plugin adds .twentytwenty-init once it has run, which hands layout back to
   the absolute positioning above — the overlay it appends is in flow and would otherwise
   be pushed below the image, taking the labels and frames with it. */
.twentytwenty-container > img:first-of-type {
    position: relative;
}
.twentytwenty-init > img:first-of-type {
    position: absolute;
}
.twentytwenty-container * {
    box-sizing: content-box;
}
.twentytwenty-frame-1,
.twentytwenty-frame-2,
.twentytwenty-frame-3,
.twentytwenty-frame-4 {
    position: absolute;
    display: block;
    z-index: 30;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5);
}
.twentytwenty-compare-2 .twentytwenty-frame-1 {
    border-right: 1px solid white;
    top: 0;
    left: 0;
    cursor: col-resize;
}
.twentytwenty-compare-2 .twentytwenty-frame-2 {
    border-left: 1px solid white;
    top: 0;
    right: 0;
    cursor: col-resize;
}

.twentytwenty-compare-3 .twentytwenty-frame-1,
.twentytwenty-compare-4 .twentytwenty-frame-1 {
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    top: 0;
    left: 0;
    cursor: move;
}
.twentytwenty-compare-3 .twentytwenty-frame-2,
.twentytwenty-compare-4 .twentytwenty-frame-2 {
    border-left: 1px solid white;
    border-bottom: 1px solid white;
    top: 0;
    right: 0;
    cursor: move;
}
.twentytwenty-compare-3 .twentytwenty-frame-3 {
    border-top: 1px solid white;
    bottom: 0;
    cursor: move;
}
.twentytwenty-compare-4 .twentytwenty-frame-3 {
    border-right: 1px solid white;
    border-top: 1px solid white;
    bottom: 0;
    left: 0;
    cursor: move;
}
.twentytwenty-compare-4 .twentytwenty-frame-4 {
    border-left: 1px solid white;
    border-top: 1px solid white;
    bottom: 0;
    right: 0;
    cursor: move;
}





/* -------- */
/*  handle  */
/* -------- */
/* A knob at the split point so desktop visitors can see the images are draggable. */
.twentytwenty-handle {
    position: absolute;
    z-index: 40;
    box-sizing: border-box;
    width: 2.5em;
    height: 2.5em;
    margin: 0;
    border: 3px solid white;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* -------------------- */
/*  overlay and images  */
/* -------------------- */
.twentytwenty-overlay {
    position:relative;
    z-index: 25;
    overflow: hidden;
}
.twentytwenty-1 {
    z-index: 20;
}
.twentytwenty-2 {
    z-index: 10;
}
.twentytwenty-3 {
    z-index: 9;
}
.twentytwenty-4 {
    z-index: 8;
}

/* -------- */
/*  labels  */
/* -------- */
.twentytwenty-label-1,
.twentytwenty-label-2,
.twentytwenty-label-3,
.twentytwenty-label-4 {
    position: absolute;
    /*text-shadow: 0px 0px 1em rgba(0, 0, 0, 0.5);*/
    text-shadow: 0 0 1ex black, 0 0 1ex black;
    color: white;
    /*font-size: 13px;*/
    /*letter-spacing: 0.1em;*/
    padding: 1ex;
    overflow: hidden;
    text-align: center;
}
.twentytwenty-compare-3 .twentytwenty-label-3 {
    width: 100%;
}
