#flipperwrapper {
	position: relative;
	display: block;
	width: 100%;
	padding-top: calc((100% / 3) * 2);
}

#flipperwrapper.sixteenbynine, #flipperwrapper.sixteenbynine .flipperpic {
	padding-top: calc((100% / 16) * 9);
}

#flipperwrapper.fourbythree, #flipperwrapper.fourbythree .flipperpic {
	padding-top: calc((100% / 4) * 3);
}

#flipperwrapper.onebyone, #flipperwrapper.onebyone .flipperpic {
	padding-top: 100%;
}

.flippercaption {
	margin: 8px 0;
	color: #666;
	font-size: .75rem;
	line-height: 1.1;
	font-family: Franklin,arial,sans-serif;
	text-align: left;	
}

.flipperitem .flippercaption {
	background-color: #fff;
}

#flipperwrapper.mastercaption .flipperitem .flippercaption {
	display: none;
}

#flipperwrapper + .flippercaption {
	display: none;
}

#flipperwrapper.mastercaption + .flippercaption {
	display: block;
}

#flipperwrapper.mastercaption {
	margin-bottom: 0px;
}

#flipperwrapper.hidecaption, #flipperwrapper.twolines.hidecaption {
	margin-bottom: 10px;
}

#flipperwrapper {
	margin-bottom: 32px;
}

#flipperwrapper.twolines {
	margin-bottom: 43px;
}

.hidecaption .flippercaption, .hidecaption + .flippercaption {
	display: none;
} 

.flipperpic {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50%;
	padding-top: calc((100% / 3) * 2);
	width: 100%;
	background-color: #f2f2f2;	
}

.flipperitem {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	animation-name: flipperfade;
	opacity: 1;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: both;
}

.flipperitem video {
	width: 119%;	
}

.sixteenbynine .flipperitem video {
	width: 100%;	
}

.runonce .flipperitem {
	animation-iteration-count: 1;
}

#flipperwrapper.show2 .flipperitem:nth-of-type(n+3) { display: none; }
#flipperwrapper.show3 .flipperitem:nth-of-type(n+4) { display: none; }
#flipperwrapper.show4 .flipperitem:nth-of-type(n+5) { display: none; }
#flipperwrapper.show5 .flipperitem:nth-of-type(n+6) { display: none; }
#flipperwrapper.show6 .flipperitem:nth-of-type(n+7) { display: none; }
#flipperwrapper.show7 .flipperitem:nth-of-type(n+8) { display: none; }
#flipperwrapper.show8 .flipperitem:nth-of-type(n+9) { display: none; }
#flipperwrapper.show9 .flipperitem:nth-of-type(n+10) { display: none; }
#flipperwrapper.show10 .flipperitem:nth-of-type(n+11) { display: none; }

.art-size--sm #flipperwrapper .flippercaption, .art-size--sm #flipperwrapper.mastercaption + .flippercaption {
	display: none;
}

.art-size--sm #flipperwrapper {
	margin-bottom: 5px;
}

.flipperitem:nth-of-type(-n+10) {
	opacity: 0;
}

.art-size--sm #flipperwrapper .flippercaption, .art-size--sm #flipperwrapper.mastercaption + .flippercaption, .grid-tiling #flipperwrapper .flippercaption, .grid-tiling #flipperwrapper.mastercaption + .flippercaption {
	display: none;
}

.grid-tiling #flipperwrapper {
	margin-bottom: 10px;
	overflow: hidden;
}

.grid-tiling #flipperwrapper.twolines {
	margin-bottom: 10px;
	overflow: hidden;
}

.grid-tiling #flipperwrapper {
	padding-top: calc((100% / 16) * 9);
}

#flipperwrapper .hpphoto_overlay {
	display: none;
	position: absolute;
	background-color: #000;
	bottom: 0;
	left: 0;
	margin: 20px;
	padding: 12px 16px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	color: #EEE;
	font-size: 16px;
	line-height: 20px;
	background-color: rgba(0,0,0,0.6);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 800;
	text-align: left;
}

#flipperwrapper.show_overlay .hpphoto_overlay {
	display: inline-block;
}

#flipperwrapper.show_overlay .hpphoto_overlay:hover {
	background-color: rgba(0,0,0,1.0);
	cursor: pointer;
}

#flipperwrapper.show_overlay .hpphoto_overlay a:hover {
	color: #FFF;
	text-decoration: none;
}

.flippercaption, .hpphoto_overlay {
	animation-name: capfade;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	animation-fill-mode: forwards;
	opacity: 0;
}

@keyframes capfade {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@media only screen and (max-width: 768px) {
		.grid-tiling #flipperwrapper {
		/*padding-top: calc((100% / 3) * 2);*/
	}
}

@media only screen and (max-width: 375px) {

	#flipperwrapper.twolines {
		margin-bottom: 47px;
	}
}