/* BV Highlights */

/* Items */
.highlights_wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: flex-start;
	justify-content: flex-start;
}

.highlights_item {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: center;
	cursor: pointer;
}

.highlights_item:hover .highlights_ring,
.highlights_item:focus-visible .highlights_ring {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--accent-1) 18%, transparent);
}

.highlights_ring {
	display: grid;
	width: 140px;
	height: 140px;
	padding: 4px;
	place-items: center;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--wp--preset--color--contrast), var(--wp--preset--color--accent-1));
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.highlights_item:hover .highlights_ring {
	transform: translateY(-2px);
}

.highlights_ring img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	object-fit: cover;
}

.highlights_title {
	display: block;
	margin-top: 10px;
	font-size: 18px;
	color: var(--wp--preset--color--entry);
}

/* Modal */
.highlights_modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
}

.highlights_modal[aria-hidden="false"] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.highlights_backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(6, 27, 51, 0.78);
}

.highlights_panel {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(520px, 94vw, calc(88dvh * 4 / 5));
	aspect-ratio: 4 / 5;
	height: auto;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 10%, transparent);
	border-radius: 18px;
	background: var(--wp--preset--color--contrast);
	box-shadow: 0 20px 80px rgba(6, 27, 51, 0.52);
}

.highlights_close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 4;
	width: 40px;
	height: 40px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 28%, transparent);
	border-radius: 999px;
	background: rgba(6, 27, 51, 0.68);
	color: var(--wp--preset--color--base);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.highlights_close:hover,
.highlights_close:focus-visible {
	border-color: var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--contrast);
}

/* Media */
.highlights_content {
	position: relative;
	width: 100%;
	height: 100%;
}

.highlights_content > * {
	min-height: 0;
}

.highlights_video,
.highlights_image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.highlights_image {
	background: var(--wp--preset--color--contrast);
	object-fit: contain;
}

.highlights_image_link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.highlights_video[hidden],
.highlights_image_link[hidden],
.highlights_cta[hidden] {
	display: none !important;
}

/* Navigation */
.highlights_nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 28%, transparent);
	border-radius: 999px;
	background: rgba(6, 27, 51, 0.68);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.highlights_nav:hover,
.highlights_nav:focus-visible {
	border-color: var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--contrast);
}

.highlights_nav::after {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	color: var(--wp--preset--color--base);
	font-size: 26px;
	line-height: 1;
	transform: translate(-50%, -50%);
}

.highlights_prev {
	left: 12px;
}

.highlights_next {
	right: 12px;
}

.highlights_prev::after {
	content: "❮";
}

.highlights_next::after {
	content: "❯";
}

/* CTA */
.highlights_cta {
	position: absolute;
	right: 0;
	bottom: calc(72px + env(safe-area-inset-bottom));
	left: 0;
	z-index: 6;
	display: flex;
	justify-content: center;
	padding: 0 16px;
}

.highlights_cta_btn {
	width: 100%;
	max-width: 340px;
	padding: 12px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	box-shadow: 0 12px 30px rgba(6, 27, 51, 0.35);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.highlights_cta_btn:hover,
.highlights_cta_btn:focus-visible {
	background: var(--wp--preset--color--accent-1);
	box-shadow: 0 14px 34px color-mix(in srgb, var(--wp--preset--color--accent-1) 32%, transparent);
	color: var(--wp--preset--color--contrast);
	transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 781px) {
	.highlights_wrap {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		flex-wrap: nowrap;
		gap: 16px;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 0 0 10px;
		scrollbar-gutter: stable;
		-webkit-overflow-scrolling: touch;
	}

	.highlights_item {
		flex: 0 0 auto;
	}

	.highlights_ring {
		width: 100px;
		height: 100px;
	}

	.highlights_title {
		font-size: 16px;
	}

	.highlights_wrap::-webkit-scrollbar {
		height: 6px;
	}

	.highlights_wrap::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	}

	.highlights_wrap::-webkit-scrollbar-track {
		border-radius: 999px;
		background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
	}
}

@media (max-width: 640px) {
	.highlights_panel {
		width: min(420px, 94vw, calc(88dvh * 4 / 5));
		aspect-ratio: 4 / 5;
		height: auto;
	}
}

@media (max-width: 420px) {
	.highlights_wrap {
		gap: 14px;
	}

	.highlights_ring {
		width: 92px;
		height: 92px;
	}

	.highlights_title {
		font-size: 15px;
	}

	.highlights_nav {
		width: 40px;
		height: 40px;
	}
}
