button.taggeo-video-modal__button {
	align-items: center;
	appearance: none;
	background: #0f172a;
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 0.5rem;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.8rem 1.1rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button.taggeo-video-modal__button:hover {
	background: #1e293b;
	color: #ffffff;
}

a[data-taggeo-video-modal-open] {
	cursor: pointer;
}

button.taggeo-video-modal__button:focus-visible,
a[data-taggeo-video-modal-open]:focus-visible,
.taggeo-video-modal__close:focus-visible {
	outline: 3px solid #38bdf8;
	outline-offset: 3px;
}

button.taggeo-video-modal__button:active {
	transform: translateY(1px);
}

body.taggeo-video-modal-is-open {
	overflow: hidden;
}

.taggeo-video-modal[hidden] {
	display: none;
}

.taggeo-video-modal {
	align-items: center;
	display: grid;
	inset: 0;
	justify-items: center;
	padding: 1rem;
	position: fixed;
	z-index: 999999;
}

.taggeo-video-modal__backdrop {
	background: rgba(15, 23, 42, 0.78);
	inset: 0;
	position: fixed;
}

.taggeo-video-modal__dialog {
	background: #020617;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	max-height: calc(100dvh - 2rem);
	max-width: 960px;
	overflow: hidden;
	position: relative;
	width: min(960px, calc(100vw - 2rem));
}

.taggeo-video-modal__header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.9rem 1rem;
}

.taggeo-video-modal__title {
	color: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.taggeo-video-modal__close {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.5rem;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 44px;
}

.taggeo-video-modal__close:hover {
	background: rgba(255, 255, 255, 0.18);
}

.taggeo-video-modal__media {
	aspect-ratio: 16 / 9;
	background: #000000;
	width: 100%;
}

.taggeo-video-modal__media iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

@supports not (height: 100dvh) {
	.taggeo-video-modal__dialog {
		max-height: calc(100vh - 2rem);
	}
}

@media (max-width: 640px) {
	.taggeo-video-modal {
		padding: 0.75rem;
	}

	button.taggeo-video-modal__button {
		width: 100%;
	}

	.taggeo-video-modal__dialog {
		max-height: calc(100dvh - 1.5rem);
		width: calc(100vw - 1.5rem);
	}

	.taggeo-video-modal__header {
		padding: 0.75rem;
	}

	.taggeo-video-modal__title {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	button.taggeo-video-modal__button {
		transition: none;
	}
}
