/**
 * Main Video Gallery Player presentation.
 * All selectors are scoped to the Player Pattern root.
 */

.icango-video-gallery-player .video-player-main {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: 0;
	color: #ffffff;
	background: #0b1220;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	box-sizing: border-box;
}

.icango-video-gallery-player .video-player-main__media {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	background: #050a13;
	border-radius: 0;
	overflow: hidden;
}

.icango-video-gallery-player .video-player-main__media > .wp-block-group__inner-container {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.icango-video-gallery-player .video-player-main iframe,
.icango-video-gallery-player .video-player-main video {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	background: #050a13;
	border: 0;
}

.icango-video-gallery-player .video-player-main__placeholder {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 24px;
	color: #cbd5e1;
	font-size: 0;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.icango-video-gallery-player .video-player-main__placeholder::after {
	content: "Video coming soon.";
	font-size: 16px;
}

.icango-video-gallery-player .video-player-main__title {
	margin: 0;
	padding: 24px 28px 0;
	color: #ffffff;
	text-align: left;
}

.icango-video-gallery-player .video-player-main__description {
	max-width: none;
	margin: 0;
	padding: 10px 28px 26px;
	color: #cbd5e1;
	text-align: left;
}

@supports selector(.icango-video-gallery-player:has(iframe)) {
	.icango-video-gallery-player .video-player-main__media:has(iframe, video)::before {
		content: "Loading video...";
		position: absolute;
		inset: 0;
		z-index: 0;
		display: grid;
		place-items: center;
		padding: 24px;
		color: #94a3b8;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.5;
		text-align: center;
		pointer-events: none;
	}
}

@media (max-width: 767px) {
	.icango-video-gallery-player .video-player-main {
		border-radius: 12px;
	}

	.icango-video-gallery-player .video-player-main__title {
		padding: 20px 18px 0;
	}

	.icango-video-gallery-player .video-player-main__description {
		padding: 8px 18px 20px;
	}
}
