/*=====================================================*
* Bridgerton Feature Section
*=====================================================*/

.screen-feature-section {
	--bf-dark: #171513;
	--bf-text: #625b54;
	--bf-copper: #b97843;
	--bf-copper-dark: #95592f;
	--bf-border: #e7dbd0;
	--bf-bg: #fbf7f2;

	padding: clamp(64px, 6vw, 96px) 0;

}

.screen-feature-section .container {
	width: min(1440px, calc(100% - 48px));
	margin: 0 auto;
}


/*=====================================================*
* Main Layout
*=====================================================*/

.screen-feature-layout {
	display: grid;

	grid-template-columns:
		minmax(0, 1.15fr)
		minmax(340px, 0.85fr);

	align-items: center;

	gap: clamp(48px, 5vw, 80px);

	padding: clamp(42px, 5vw, 42px);

	/*border: 1px solid var(--bf-border);*/
	border-radius: 24px;

	background: #fff;

	/*box-shadow: 0 22px 55px rgba(77, 47, 27, 0.08);*/
}


/*=====================================================*
* Video / Media
*=====================================================*/

.screen-feature-media {
	position: relative;

	border-radius: 18px;

	overflow: hidden;

	cursor: pointer;

	box-shadow:
		0 18px 42px rgba(0, 0, 0, 0.18);

	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

.screen-feature-media:hover {
	transform: translateY(-4px);

	box-shadow:
		0 26px 60px rgba(0, 0, 0, 0.24);
}

.trailer-thumbnail {
	position: relative;

	width: 100%;

	aspect-ratio: 16 / 9;

	overflow: hidden;

	background: #111;
}

.trailer-thumbnail img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transform: scale(1.7);

	transition:
		transform 0.45s ease;
}

.screen-feature-media:hover
.trailer-thumbnail img {
	transform: scale(1.5);
}


/* Dark cinematic overlay */

.trailer-thumbnail::after {
	content: "";

	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.05),
			rgba(0, 0, 0, 0.18)
		);

	pointer-events: none;
}


/*=====================================================
YouTube Play Overlay
=====================================================*/
.yt-play-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;

	display: flex;
	align-items: center;
	justify-content: center;

	pointer-events: none;
}

.yt-play-overlay svg {
	display: block;

	width: 68px;
	height: 48px;

	flex: 0 0 auto;
	max-width: none;

	filter:
		drop-shadow(
			0 4px 10px rgba(0, 0, 0, 0.35)
		);

	transition:
		transform 0.3s ease,
		filter 0.3s ease;
}

.screen-feature-media:hover .yt-play-overlay svg {
	transform: scale(1.08);

	filter:
		drop-shadow(
			0 6px 14px rgba(0, 0, 0, 0.45)
		);
}

/*=====================================================*
* Content
*=====================================================*/

.screen-feature-content {
	min-width: 0;

	max-width: 560px;
}

.screen-feature-eyebrow {
	display: inline-block;

	margin-bottom: 16px;

	color: var(--bf-copper);

	font-size: 12px;
	font-weight: 400;

	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.screen-feature-content h2 {
	margin: 0;

	color: var(--bf-dark);

	font-size: clamp(42px, 4vw, 58px);
	font-weight: 700;
	line-height: 1.02;

	letter-spacing: -0.035em;
}

.screen-feature-content p {
	margin: 24px 0 0;

	color: var(--bf-text);

	font-size: clamp(16px, 1.2vw, 18px);
	line-height: 1.75;
}


/*=====================================================*
* CTA
*=====================================================*/

.screen-feature-watch {
	display: inline-flex;
	align-items: center;
	gap: 12px;

	margin-top: 30px;

	padding: 14px 22px;

	border: 1px solid var(--bf-copper);
	border-radius: 999px;

	background: var(--bf-copper);
	color: #fff;

	font: inherit;
	font-size: 14px;
	font-weight: 600;

	cursor: pointer;

	box-shadow:
		0 8px 20px rgba(185, 120, 67, 0.2);

	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.screen-feature-watch:hover {
	background: var(--bf-copper-dark);
	border-color: var(--bf-copper-dark);

	transform: translateY(-2px);

	box-shadow:
		0 12px 28px rgba(149, 89, 47, 0.25);
}

.screen-feature-watch span:last-child {
	font-size: 18px;

	transition:
		transform 0.25s ease;
}

.screen-feature-watch:hover
span:last-child {
	transform: translateX(4px);
}


/*=====================================================*
* Modal
*=====================================================*/

.trailer-modal {
	position: fixed;
	z-index: 99999;

	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	background: rgba(0, 0, 0, 0.75);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.trailer-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.trailer-modal-content {
	position: relative;

	width: min(1100px, 100%);

	background: #000;

	border-radius: 16px;

	box-shadow:
		0 30px 80px rgba(0, 0, 0, 0.5);

	transform: scale(0.97);

	transition:
		transform 0.25s ease;
}

.trailer-modal.is-open
.trailer-modal-content {
	transform: scale(1);
}


/*=====================================================*
* Modal Close
*=====================================================*/

.trailer-close {
	position: absolute;
	z-index: 5;

	top: -16px;
	right: -16px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;

	border: 0;
	border-radius: 50%;

	background: var(--bf-copper);
	color: #fff;

	font-size: 26px;
	line-height: 1;

	cursor: pointer;

	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.3);
}

.trailer-close:hover {
	background: var(--bf-copper-dark);
}


/*=====================================================*
* Responsive Video
*=====================================================*/

.trailer-video-wrapper {
	position: relative;

	width: 100%;

	aspect-ratio: 16 / 8;

	overflow: hidden;

	border-radius: 16px;
}

.trailer-video-wrapper iframe {
	position: absolute;

	inset: 0;

	width: 100%;
	height: 100%;

	border: 0;
}


/*=====================================================*
* Body Lock
*=====================================================*/

body.trailer-modal-open {
	overflow: hidden;
}


/*=====================================================*
* Tablet
*=====================================================*/

@media (max-width: 1024px) {

	.screen-feature-layout {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(300px, 0.9fr);

		gap: 36px;

		padding: 36px;
	}

	.screen-feature-content h2 {
		font-size: clamp(36px, 5vw, 48px);
	}

}


/*=====================================================*
* Mobile
*=====================================================*/

@media (max-width: 767px) {

	.screen-feature-section {
		padding: 50px 0;
	}

	.screen-feature-section .container {
		width: calc(100% - 28px);
	}

	.screen-feature-layout {
		grid-template-columns: 1fr;

		gap: 28px;

		padding: 20px;

		border-radius: 18px;
	}

	.screen-feature-content {
		max-width: none;
	}

	.screen-feature-content h2 {
		font-size: clamp(34px, 9vw, 44px);
	}

	.screen-feature-content p {
		margin-top: 18px;

		font-size: 16px;
		line-height: 1.65;
	}

	.screen-feature-watch {
		margin-top: 24px;
	}

	.trailer-close {
		top: -12px;
		right: -6px;
	}

}


/*=====================================================*
* End Bridgerton Feature Section
*=====================================================*/