/**
 * NOTICE OF LICENSE
 *
 * ---------------------------------------------------
 *
 *  @author    : CD Presta
 *  @copyright : 2016
 *  @version   : 1.1.2
 *  @license   : Commercial License
 * ---------------------------------------------------
 */

/* ============================================================================
   GLOBAL
   ============================================================================ */

.cdpv-videos:before,
.cdpv-videos:after {
	content: " ";
	display: table;
}

.cdpv-videos:after {
	clear: both;
}

.cdpv-videos {
	margin: 0 -1%;
	*zoom: 1;
}

.cdpv-video__link:active,
.cdpv-video__link:focus {
	outline: 0;
	text-decoration: none;
}

.cdpv-video {
	float: left;
	margin: 1%;
	transition: opacity 0.3s;
}

.cdpv-video:hover {
	opacity: 0.8;
}

.cdpv-video__link {
	display: block;
}

.cdpv-video__link:hover  {
	text-decoration: none;
}

.cdpv-video__thumbnail-wrapper {
	background: #F6F6F6;
	display: block;
	margin: 0 auto;
	position: relative;
}

.cdpv-video__thumbnail-wrapper:after {
	content: "";
	display: block;
	height: 0;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 ratio */
}

.cdpv-video__thumbnail-wrapper > * {
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.cdpv-video__thumbnail {
	max-width: 100%;
}

.cdpv-video__title {
	display: block;
	margin-top: 10px;
	text-align: center;
}

/* background-color loaded in via TPL */
.cdpv-video__play-icon,
.title__icon {
	border-radius: 4px;
	z-index: 1;
}

.cdpv-video__play-icon {
	display: inline-block;
	height: 40px;
	left: 50%;
	margin-left: -27px; /* -width / 2 */
	margin-top: -20px; /* -height / 2 */
	position: absolute;
	top: 50%;
	width: 54px;
}

.title__icon {
	display: none;
	line-height: 1;
	margin-right: 5px;
	padding: 2px 5px;
}

/* border-left-color loaded in via TPL */
.play-icon__arrow,
.title-icon__arrow {
	border-bottom-color: transparent;
	border-bottom-style: solid;
	border-top-color: transparent;
	border-top-style: solid;
	border-left-style: solid;
	color: transparent;
}

.play-icon__arrow {
	border-bottom-width: 10px;
	border-top-width: 10px;
	border-left-width: 20px;
	display: block;
	left: 50%;
	margin-left: -10px;
	margin-top: -10px;
	position: absolute;
	top: 50%;
}

.title-icon__arrow {
	border-bottom-width: 4px;
	border-top-width: 4px;
	border-left-width: 8px;
	display: inline-block;
}





/* ============================================================================
   HOOK-SPECIFIC
   ============================================================================ */

.cdpv-videos--rightColumn .cdpv-video,
.cdpv-videos--leftColumn .cdpv-video,
.cdpv-videos--quickView .cdpv-video {
	width: 48%; /* 50% - (margin * 2) */
}

/* Clear every 3rd, 5th, 7th, etc. */
.cdpv-videos--rightColumn .cdpv-video:nth-child( 2n+3 ),
.cdpv-videos--leftColumn .cdpv-video:nth-child( 2n+3 ),
.cdpv-videos--quickView .cdpv-video:nth-child( 2n+3 ) {
	clear: left;
}

@media (max-width: 767px) {
	.cdpv-videos--productTab .cdpv-video,
	.cdpv-videos--productFooter .cdpv-video {
		width: 48%; /* 50% - (margin * 2) */
	}

	.cdpv-videos--productTab .cdpv-video:nth-child( 2n+3 ),
	.cdpv-videos--productFooter .cdpv-video:nth-child( 2n+3 ) {
		clear: left;
	}
}

@media (min-width: 768px) {
	.cdpv-videos--productTab .cdpv-video,
	.cdpv-videos--productFooter .cdpv-video {
		width: 31.333%; /* 33.333% - (margin * 2) */
	}

	.cdpv-videos--productTab .cdpv-video:nth-child( 3n+4 ),
	.cdpv-videos--productFooter .cdpv-video:nth-child( 3n+4 ) {
		clear: left;
	}
}





/* ============================================================================
   CONFIG-BASED
   ============================================================================ */

.cdpv-videos--hide-thumbnails .cdpv-video {
	float: none;
	width: 100%;
}

.cdpv-videos--hide-thumbnails .cdpv-video__title {
	text-align: left;
}

.cdpv-videos--hide-thumbnails .title__icon {
	display: inline-block;
}





/* ============================================================================
   MAGNIFIC
   ============================================================================ */

/* Overlay at start */
.mfp-cdpv.mfp-bg {
	opacity: 0;
	-webkit-transition: all 0.15s ease-out;
	transition: all 0.15s ease-out;
}

/* Overlay animate in */
.mfp-cdpv.mfp-bg.mfp-ready {
	opacity: 0.8;
}

/* Overlay animate out */
.mfp-cdpv.mfp-bg.mfp-removing {
	opacity: 0;
}

/* Content at start */
.mfp-cdpv.mfp-wrap .mfp-content {
	opacity: 0;
	-webkit-transition: opacity 0.3s, transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
	transform: scale( 0.6 );
}

/* Content animate in */
.mfp-cdpv.mfp-wrap.mfp-ready .mfp-content {
	opacity: 1;
	transform: scale( 1 );
}

/* Content animate out */
.mfp-cdpv.mfp-wrap.mfp-removing .mfp-content {
	opacity: 0;
	transform: scale( 0.6 );
}

.mfp-cdpv .mfp-top-bar {
	cursor: auto;
	font-size: 20px;
	position: absolute;
	left: 0;
	top: -30px;
	width: 100%;
}
