// Popup wrapper.
.wp-video-popup-gallery,
.wp-video-popup-wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	z-index: 8888888;
}

// Video.
.wp-video-popup-video {
	display: none;
	z-index: 8888889;
}

// Hosted landscape.
.wp-video-popup-video.is-landscape {
	width: 90%;
	height: auto; // Reset default iframe height if set.
	max-width: 1200px;
	max-height: 90%;
}

// Hosted portrait (Vimeo).
.wp-video-popup-video.is-hosted.is-portrait {
	width: auto; // Reset default iframe width if set.
	height: 90%;
	max-width: 90%;
}

// Self hosted landscape.
.wp-video-popup-video.is-self-hosted.is-landscape {
	width: 90%;
	max-width: 1200px;
	max-height: 90%;
}

// Self hosted portrait.
.wp-video-popup-video.is-self-hosted.is-portrait {
	max-height: 90%;
	max-width: 90%;
}

// Close icon.
.wp-video-popup-close {
	background-image: url(../img/wp-video-popup-close.png);
	background-size: 15px auto;
	background-repeat: no-repeat;
	background-position: center center;
	position: absolute;
	right: 0;
	top: 0;
	height: 60px;
	text-align: center;
	width: 60px;
	cursor: pointer;
	z-index: 9999999;
	@include transition(opacity 0.25s);
}

.wp-video-popup-close:hover {
	opacity: 0.7;
}

// Click indicator.
.wp-video-popup {
	cursor: pointer;
}

// Gallery
.wp-video-popup-gallery .wp-video-popup-video.is-landscape {
	width: 75%;
}

.is-opened .wp-video-popup-arrow {
	opacity: 1;
	visibility: visible;
	transition-delay: 0.5s;
}

.wp-video-popup-arrow {
	position: absolute;
	top: 50%;
	max-width: 40px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	padding: 10px;
	transition: opacity 0.25s, visibility 0.25s;
	z-index: 2;
	transform: translateY(-50%);
}

.showing-first-slide .wp-video-popup-arrow-left,
.showing-last-slide .wp-video-popup-arrow-right {
	opacity: 0.2;
	cursor: default;
}

.wp-video-popup-slides {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.wp-video-popup-slide.active-slide {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.wp-video-popup-slide {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: all .3s;
}

// For portrait mobiles.
@media screen and (max-width: 480.35px) {
	.wp-video-popup-arrow-left {
		left: 10px !important;
	}

	.wp-video-popup-arrow-right {
		right: 10px !important;
	}
}
