/* juxtapose - v1.0.3 - 2014-10-14
 * Copyright (c) 2014 Alex Duner and Northwestern University Knight Lab 
 */
section.image-comparison {
	margin-bottom: 1em;
}

div.juxtapose {
	max-width: 600px;
	clear: both;
	font-family: sans-serif;
	margin: auto;
}

img.jx-image {
	width: 100%;
}

div.jx-slider {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

div.jx-handle {
	position: absolute;
	height: 100%;
	width: 40px;
	cursor: col-resize;
	z-index: 10;
	margin-left: -20px;
}

div.jx-control {
	height: 100%;
	margin-right: auto;
	margin-left: auto;
	width: 3px;
	background-color: white;
}

div.jx-controller {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	height: 60px;
	width: 9px;
	margin-left: -3px;
	background-color: white;
}

div.jx-arrow {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0; 
	width: 0;
	height: 0;
	transition: all .2s ease;
}

div.jx-arrow.left {
	left: 2px;
	border-style: solid;
	border-width: 8px 8px 8px 0;
	border-color: transparent white transparent transparent;
}

div.jx-arrow.right {
	right: 2px;
	border-style: solid;
	border-width: 8px 0px 8px 8px;
	border-color: transparent transparent transparent white;
}

div.jx-handle:hover div.jx-arrow.left, div.jx-handle:active div.jx-arrow.left {
	left: -1px;
}

div.jx-handle:hover div.jx-arrow.right, div.jx-handle:active div.jx-arrow.right {
	right: -1px;
}


div.jx-image {
	height: 100%;
	display: inline-block;
	top: 0;
	overflow: hidden;
	background-size: cover;
}

div.jx-image.left {
	left: 0;
	background-position: left;
}

div.jx-image.right {
	right: 0;
	background-position: right;
}

div.jx-image div.jx-label {
	font-size: 1em;
	padding: .25em .75em;
	position: relative;
	display: inline-block;
	top: 0;
	background-color: rgba(0,0,0,.7);
	color: white;
	z-index: 0;
	white-space: nowrap;
	line-height: 18px;
	vertical-align: middle;
}

div.jx-image.left div.jx-label {
	float: left;
	left: 0;
}

div.jx-image.right div.jx-label {
	float: right;
	right: 0;
}

div.jx-credit {
	line-height: 1.1;
	font-size: 0.75em;
}

div.jx-credit em {
	font-weight: bold;
	font-style: normal;
}


/* Animation
 */

div.jx-image.transition {
	transition: width .5s ease;
}

div.jx-handle.transition {
	transition: left .5s ease;
}

/* Knight Lab Credit */
a.jx-knightlab {
	background-color: rgba(0,0,0,.25);
	bottom: 0;
	display: table;
	height: 14px;
	line-height: 14px;
	padding: 1px 4px 1px 5px;
	position: absolute;
	right: 0;
	text-decoration: none;
	z-index: 10;
}

a.jx-knightlab div.knightlab-logo {
	display: inline-block;
	vertical-align: middle;
	height: 8px;
	width: 8px;
	background-color: #c34528;
	transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	top: -1.25px;
	position: relative;
	cursor: pointer;
}

a.jx-knightlab:hover {
	background-color: rgba(0,0,0,.35);
}
a.jx-knightlab:hover div.knightlab-logo {
	background-color: #ce4d28;
}

a.jx-knightlab span.juxtapose-name {
	display: table-cell;
	margin: 0;
	padding: 0;
	font-family: Helvetica;
	font-weight: 500;
	color: white;
	font-size: 10px;
	padding-left: 0.375em;
  	vertical-align: middle;
  	line-height: normal;
}

/* keyboard accessibility */
div.jx-controller:focus,
div.jx-image.left div.jx-label:focus,
div.jx-image.right div.jx-label:focus,
a.jx-knightlab:focus {
	background: #eae34a;
	color: #000;
}
a.jx-knightlab:focus span.juxtapose-name{
	color: #000;
	border: none;
}

