/**
 * Social Feeds - Video Lightbox CSS
 * @package FacebookYouTubeFeed
 */

.fyf-lightbox-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fyf-lightbox-modal.fyf-active {
	opacity: 1;
	visibility: visible;
}

.fyf-lightbox-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 10, 12, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.fyf-lightbox-container {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 960px;
	background: #000000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fyf-lightbox-modal.fyf-active .fyf-lightbox-container {
	transform: scale(1);
}

.fyf-lightbox-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	background: #18181b;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.fyf-lightbox-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	padding: 0;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fyf-lightbox-close {
	background: transparent;
	border: none;
	color: #a1a1aa;
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.fyf-lightbox-close:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	transform: rotate(90deg);
}

.fyf-lightbox-player-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 Ratio */
	height: 0;
	background: #000;
}

.fyf-lightbox-player-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fyf-lightbox-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #ffffff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	transition: all 0.2s ease;
}

.fyf-lightbox-nav-btn:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-50%) scale(1.1);
}

.fyf-lightbox-prev {
	left: -58px;
}

.fyf-lightbox-next {
	right: -58px;
}

@media (max-width: 1100px) {
	.fyf-lightbox-prev {
		left: 12px;
	}
	.fyf-lightbox-next {
		right: 12px;
	}
}

@media (max-width: 640px) {
	.fyf-lightbox-container {
		width: 95%;
	}
	.fyf-lightbox-nav-btn {
		width: 36px;
		height: 36px;
	}
}
