:root {
	--bes-gold: #c89a35;
	--bes-green: #123d2d;
	--bes-red: #692321;
	--bes-ink: #171717;
	--bes-paper: #fffaf0;
	--bes-muted: #6b6258;
}

.bes-popup-open {
	overflow: hidden;
}

.bes-popup[hidden] {
	display: none;
}

.bes-popup {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 999999;
}

.bes-popup__overlay {
	background: rgba(10, 8, 5, 0.72);
	inset: 0;
	position: absolute;
}

.bes-popup__dialog {
	background: var(--bes-paper);
	border: 1px solid rgba(200, 154, 53, 0.55);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
	color: var(--bes-ink);
	display: grid;
	grid-template-columns: minmax(280px, 0.92fr) minmax(430px, 1fr);
	height: min(88vh, 780px);
	max-width: 1100px;
	overflow: hidden;
	position: relative;
	width: min(100%, 1100px);
}

.bes-popup--poster .bes-popup__dialog {
	grid-template-columns: minmax(300px, 0.88fr) minmax(430px, 1fr);
}

.bes-popup--minimal .bes-popup__dialog {
	display: block;
	max-width: 640px;
}

.bes-popup__close {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 999px;
	color: var(--bes-ink);
	cursor: pointer;
	display: flex;
	font-size: 28px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 40px;
	z-index: 2;
}

.bes-popup__media {
	background: var(--bes-green);
	height: 100%;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.bes-popup__media img,
.bes-slider__video iframe,
.bes-slider__video video,
.bes-slider__video .bes-player,
.bes-slider__video .wp-video,
.bes-slider__video .mejs-container,
.bes-slider__video .mejs-mediaelement {
	display: block;
	height: 100%;
	width: 100%;
}

.bes-popup__media img {
	object-fit: contain;
}

.bes-slider__track,
.bes-slider__slide {
	height: 100%;
	min-height: 0;
}

.bes-slider__slide {
	display: none;
}

.bes-slider__slide.is-active {
	display: block;
}

.bes-slider__video {
	align-items: center;
	background: #111;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
}

.bes-slider__video iframe,
.bes-slider__video video {
	height: 100% !important;
	max-height: 100%;
	object-fit: contain;
	width: 100% !important;
}

.bes-slider__video .bes-player {
	aspect-ratio: auto;
	height: 100%;
}

.bes-slider__video .wp-video,
.bes-slider__video .mejs-container {
	max-height: 100%;
	max-width: 100%;
}

.bes-slider__video .mejs-video,
.bes-slider__video .mejs-mediaelement video {
	object-fit: contain;
}

.bes-slider__arrow,
.bes-slider__dot {
	appearance: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.bes-slider__arrow {
	align-items: center;
	border-radius: 999px;
	color: #111;
	display: flex;
	font-size: 32px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity 160ms ease, transform 160ms ease;
	width: 40px;
	z-index: 2;
}

.bes-popup__media:hover .bes-slider__arrow,
.bes-popup__media:focus-within .bes-slider__arrow {
	opacity: 1;
	pointer-events: auto;
}

.bes-slider__arrow--prev {
	left: 12px;
}

.bes-slider__arrow--next {
	right: 12px;
}

.bes-slider__dots {
	align-items: center;
	bottom: 14px;
	display: flex;
	gap: 8px;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
	z-index: 2;
}

.bes-slider__dot {
	border-radius: 999px;
	height: 10px;
	opacity: 0.76;
	padding: 0;
	width: 10px;
}

.bes-slider__dot.is-active {
	background: var(--bes-gold);
	border-color: var(--bes-gold);
	opacity: 1;
}

.bes-popup__content {
	min-width: 0;
	overflow: auto;
	padding: clamp(28px, 4vw, 54px);
}

.bes-player {
	--bes-player-accent: #d3a53f;
	align-items: center;
	aspect-ratio: 16 / 9;
	background: #090909;
	color: #fff;
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bes-player__video {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.bes-player__big-play,
.bes-player__button {
	appearance: none;
	background: rgba(255, 255, 255, 0.95);
	border: 0;
	color: #111;
	cursor: pointer;
	display: inline-flex;
	position: relative;
}

.bes-player__big-play {
	align-items: center;
	border-radius: 999px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
	height: 82px;
	justify-content: center;
	left: 50%;
	opacity: 1;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: opacity 160ms ease, transform 160ms ease;
	width: 82px;
	z-index: 2;
}

.bes-player.is-playing .bes-player__big-play {
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.92);
}

.bes-player__big-play span {
	border-bottom: 15px solid transparent;
	border-left: 23px solid currentColor;
	border-top: 15px solid transparent;
	display: block;
	margin-left: 6px;
}

.bes-player__controls {
	align-items: center;
	background: linear-gradient(180deg, rgba(7, 7, 7, 0), rgba(7, 7, 7, 0.88));
	bottom: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: 38px minmax(80px, 1fr) auto 38px 38px;
	left: 0;
	min-height: 78px;
	opacity: 0;
	padding: 22px 18px 14px;
	position: absolute;
	right: 0;
	transform: translateY(10px);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: 3;
}

.bes-player:hover .bes-player__controls,
.bes-player:focus-within .bes-player__controls,
.bes-player.is-playing .bes-player__controls {
	opacity: 1;
	transform: translateY(0);
}

.bes-player__button {
	align-items: center;
	background: transparent;
	color: #fff;
	height: 38px;
	justify-content: center;
	padding: 0;
	width: 38px;
}

.bes-player__play span {
	border-bottom: 10px solid transparent;
	border-left: 15px solid currentColor;
	border-top: 10px solid transparent;
	margin-left: 4px;
}

.bes-player.is-playing .bes-player__play span {
	border: 0;
	display: flex;
	gap: 5px;
	height: 20px;
	margin-left: 0;
	width: 18px;
}

.bes-player.is-playing .bes-player__play span::before,
.bes-player.is-playing .bes-player__play span::after {
	background: currentColor;
	content: "";
	display: block;
	width: 6px;
}

.bes-player__mute span {
	border-bottom: 8px solid transparent;
	border-right: 13px solid currentColor;
	border-top: 8px solid transparent;
	height: 13px;
	position: relative;
	width: 7px;
}

.bes-player__mute span::after {
	border: 2px solid currentColor;
	border-bottom-color: transparent;
	border-left-color: transparent;
	border-radius: 999px;
	content: "";
	height: 18px;
	position: absolute;
	right: -18px;
	top: -5px;
	transform: rotate(45deg);
	width: 18px;
}

.bes-player.is-muted .bes-player__mute span::after {
	border: 0;
	background: currentColor;
	height: 2px;
	right: -18px;
	top: 6px;
	transform: rotate(-38deg);
	width: 20px;
}

.bes-player__fullscreen span {
	border: 2px solid currentColor;
	display: block;
	height: 18px;
	width: 18px;
}

.bes-player__timeline input {
	accent-color: var(--bes-player-accent);
	display: block;
	width: 100%;
}

.bes-player__time {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
}

.bes-popup__kicker,
.bes-showcase__kicker {
	color: var(--bes-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.bes-popup h2,
.bes-showcase h1,
.bes-content-block h2 {
	color: var(--bes-ink);
	line-height: 1.08;
	margin: 0;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

.bes-popup h2 {
	font-size: clamp(2rem, 3.2vw, 3.05rem);
	max-width: 12ch;
}

.bes-popup__subtitle,
.bes-showcase__subtitle {
	color: var(--bes-red);
	font-size: 1.15rem;
	font-weight: 700;
	margin: 12px 0 0;
}

.bes-popup__text {
	color: #433d35;
	font-size: 1rem;
	line-height: 1.6;
	margin-top: 18px;
}

.bes-popup__actions,
.bes-showcase__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.bes-button {
	align-items: center;
	border: 1px solid transparent;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 12px 18px;
	text-decoration: none;
}

.bes-buttons--plugin .bes-button--primary {
	background: var(--bes-green);
	color: #fff !important;
}

.bes-buttons--plugin .bes-button--secondary {
	background: transparent;
	border-color: var(--bes-gold);
	color: var(--bes-ink) !important;
}

.bes-buttons--minimal .bes-button {
	background: transparent;
	border-color: currentColor;
	color: var(--bes-ink) !important;
}

.bes-buttons--minimal .bes-button--primary {
	background: var(--bes-ink);
	border-color: var(--bes-ink);
	color: #fff !important;
}

.bes-button:hover,
.bes-button:focus,
.bes-button:visited {
	filter: brightness(0.94);
	text-decoration: none;
}

.bes-buttons--plugin .bes-button--primary:hover,
.bes-buttons--plugin .bes-button--primary:focus,
.bes-buttons--plugin .bes-button--primary:visited,
.bes-buttons--minimal .bes-button--primary:hover,
.bes-buttons--minimal .bes-button--primary:focus,
.bes-buttons--minimal .bes-button--primary:visited {
	color: #fff !important;
}

.bes-buttons--plugin .bes-button--secondary:hover,
.bes-buttons--plugin .bes-button--secondary:focus,
.bes-buttons--plugin .bes-button--secondary:visited,
.bes-buttons--minimal .bes-button--secondary:hover,
.bes-buttons--minimal .bes-button--secondary:focus,
.bes-buttons--minimal .bes-button--secondary:visited {
	color: var(--bes-ink) !important;
}

.bes-theme-button {
	text-decoration: none;
}

.bes-showcase {
	background: #fff;
	color: var(--bes-ink);
	margin: 0 auto;
	max-width: 1180px;
	padding: clamp(32px, 5vw, 72px) 18px;
}

.bes-showcase__header {
	background-color: var(--bes-green);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23c89a35' stroke-opacity='.22' stroke-width='2'%3E%3Cpath d='M90 24c20 22 20 110 0 132C70 134 70 46 90 24Z'/%3E%3Cpath d='M24 90c22-20 110-20 132 0-22 20-110 20-132 0Z'/%3E%3Ccircle cx='90' cy='90' r='18'/%3E%3Cpath d='M54 54c24 4 48 28 72 72M126 54c-24 4-48 28-72 72'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(135deg, #123d2d, #1f1711);
	background-position: center;
	background-size: 180px 180px, cover;
	color: #fff;
	margin-bottom: 32px;
	padding: clamp(34px, 5vw, 64px);
	position: relative;
}

.bes-showcase h1 {
	color: #fff;
	font-size: clamp(2.2rem, 5vw, 4.4rem);
	max-width: 920px;
}

.bes-showcase__header .bes-showcase__subtitle {
	color: #f1d186;
}

.bes-showcase__featured {
	margin-bottom: clamp(32px, 5vw, 54px);
}

.bes-showcase__layout {
	display: grid;
	gap: clamp(28px, 4vw, 48px);
	grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.bes-showcase--gallery .bes-showcase__layout,
.bes-showcase--media .bes-showcase__layout {
	grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

.bes-showcase--gallery .bes-showcase__media,
.bes-showcase--media .bes-showcase__media {
	order: -1;
}

.bes-content-block {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	margin-bottom: 28px;
	padding-bottom: 22px;
}

.bes-content-block h2 {
	font-size: 1.25rem;
	margin-bottom: 12px;
}

.bes-content-block p {
	color: #38332d;
	font-size: 1.04rem;
	line-height: 1.72;
	margin: 0 0 1rem;
}

.bes-gallery {
	display: grid;
	gap: 16px;
}

.bes-gallery__item {
	background: #f6f1e7;
	margin: 0;
}

.bes-gallery__item img {
	display: block;
	height: auto;
	width: 100%;
}

.bes-videos {
	display: grid;
	gap: 18px;
	margin-top: 20px;
}

.bes-videos--featured {
	margin: 0 0 clamp(30px, 5vw, 54px);
}

.bes-videos--featured.bes-videos--multiple {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
}

.bes-videos--featured .bes-video:first-child {
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.bes-video {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: #111;
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bes-video iframe,
.bes-video video,
.bes-video .bes-player,
.bes-video .wp-video,
.bes-video .mejs-container,
.bes-video .mejs-mediaelement {
	display: block;
	height: 100% !important;
	max-width: 100%;
	width: 100%;
}

.bes-video video,
.bes-video .mejs-mediaelement video {
	height: 100% !important;
	object-fit: contain;
	width: 100% !important;
}

.bes-video .wp-video,
.bes-video .mejs-container {
	height: auto !important;
}

@media (max-width: 760px) {
	.bes-popup {
		padding: 14px;
	}

		.bes-popup__dialog,
		.bes-popup--poster .bes-popup__dialog {
			display: block;
			height: auto;
			max-height: 92vh;
			overflow: auto;
		}

		.bes-popup__media {
			height: 48vh;
			max-height: 48vh;
			min-height: 320px;
		}

	.bes-popup__media img,
	.bes-slider__video {
		max-height: 48vh;
		min-height: 320px;
	}

	.bes-popup__media img {
		object-fit: contain;
	}

	.bes-popup h2 {
		font-size: clamp(1.75rem, 8vw, 2.55rem);
		max-width: 100%;
	}

	.bes-popup__content {
		padding: 24px 20px;
	}

	.bes-showcase__layout,
	.bes-showcase--gallery .bes-showcase__layout,
	.bes-showcase--media .bes-showcase__layout {
		display: block;
	}

	.bes-showcase--gallery .bes-showcase__media,
	.bes-showcase--media .bes-showcase__media {
		order: initial;
	}

		.bes-showcase__media {
			margin-top: 28px;
		}

		.bes-videos--featured.bes-videos--multiple {
			grid-template-columns: 1fr;
		}

		.bes-player__controls {
			gap: 8px;
			grid-template-columns: 34px minmax(70px, 1fr) auto 34px 34px;
			padding: 18px 12px 10px;
		}

		.bes-player__time {
			font-size: 0.8rem;
		}
	}
