
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* sly-frame */
.sly-frame {
	position: relative;
	height: 640px;
	line-height: 640px;
	-overflow: hidden;
}
.sly-frame > ul, .slidee {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;

	width: 99999999px;	/* prevent weird layout before page is ready */
	font-size: 50px;
}
.sly-frame .slide {
	float: left;
	height: 100%;
	margin: 0 1px 0 0;
	padding: 0;
	background: #222;
	color: #ddd;
	text-align: center;
	cursor: -webkit-grab;
	cursor: grab;
    -display: block;
}
.sly-frame .slide.active {}



/* .box img sets the width and height constraints for the image and centers it in the .slide */
.box {

	position: relative;
    display: table-cell;	/* use table-cell so that we can center the image both vertically and horizontally */
    -max-width: 960px;
    width: 960px;			/* set width explicitely because display is table-cell */
    height: 640px;
    vertical-align: middle;
    text-align: center;
}

.box img {
	display: block;
	margin-left: auto;
	margin-right: auto;
    max-height: 640px;
    max-width: 100%;
}


.sly-large {
	height: 640px;
	line-height: 640px;
	-width: 680px;
	width: 100%;
}
.sly-large .slide {
	width: 960px;
}


.sly-small {
	height: 64px;
	line-height: 64px;
	-width: 680px;
	width: 100%;
	margin-top: 1px;
}
.sly-small .slide {
	width: 96px;
	cursor: pointer;
}

/* .box img sets the width and height constraints for the image and centers it in the .slide */
.sly-small .box {

    -max-width: 64px;
    -width: 64px;			/* set width cause display is table-cell */
    height: 64px;
    display: table-cell;	/* use table-cell so that we can center the image both vertically and horizontally */
    vertical-align: middle;
    text-align: center;
}
.sly-small .box img {
    max-height: 64px;
    max-width: 100%;
}

.slyduo {

	position: relative;
	width: 680px;
	margin: 0 auto;
}

.drag-handle-overlay {

    z-index: 1000;
    position: absolute;
    width: 40%;
    top: 15%;
    height: 55%;
    background-color: transparent;

    left: 0;    /* default is left */
}
.drag-handle-overlay.right {

    left: auto;
    right: 0;
}
.debug .drag-handle-overlay {

    background-color: rgba(128,128,128,0.5);
}


.sly-thumbnails-wrapper {

	position: absolute;
	left: 45px;
	right: 45px;

	overflow: hidden;
}

.sly-thumbnails-button {
	position: absolute;
	margin-top: 1px;
	width: 44px;
	height: 64px;
	line-height: 64px;
	font-size: 48px;
	left: 0;
	right: auto;
	text-align: center;
}

.sly-thumbnails-button.right {
	right: 0;
	left: auto;
}


.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
