.tsdbv-video-loop-grid,
.tsdbv-video-loop-grid * {
	box-sizing: border-box;
}

.tsdbv-video-loop-grid {
	--tsdbv-blue: var(--e-global-color-primary, #4c568e);
	--tsdbv-cream: var(--e-global-color-secondary, #f8ece3);
	--tsdbv-row: #ded1c7;
	--tsdbv-brown: #9a7a64;
	--tsdbv-text: var(--e-global-color-text, #111);
	color: var(--tsdbv-text);
	max-width: 100%;
	overflow-x: clip;
}

.tsdbv-video-loop-grid .elementor-loop-container {
	display: grid;
	gap: 1.1rem;
}

.tsdbv-video-loop-grid .e-loop-item,
.tsdbv-loop-topic,
.tsdbv-loop-trigger,
.tsdbv-loop-panel {
	min-width: 0;
	max-width: 100%;
}

.tsdbv-loop-trigger {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 1.5rem;
	cursor: pointer;
	outline-offset: 4px;
	overflow-wrap: anywhere;
}

.tsdbv-loop-thumb {
	flex: 0 0 120px;
}

.tsdbv-loop-title {
	flex: 1 1 auto;
	min-width: 0;
}

.tsdbv-loop-icon {
	flex: 0 0 2rem;
}

.tsdbv-loop-topic.is-open > .e-con-inner > .tsdbv-loop-trigger,
.tsdbv-loop-topic.is-open > .tsdbv-loop-trigger {
	background: var(--tsdbv-row);
}

.tsdbv-loop-panel[hidden] {
	display: none !important;
}

.tsdbv-loop-panel {
	overflow-x: hidden;
}

.tsdbv-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-bottom: 1px solid var(--tsdbv-brown);
}

.tsdbv-tabs__item {
	list-style: none;
	margin: 0;
}

.tsdbv-tab {
	appearance: none;
	display: block;
	border: 0;
	background: transparent;
	padding: .625rem .875rem;
	color: var(--tsdbv-brown);
	font: inherit;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.tsdbv-tabs__item.is-active .tsdbv-tab {
	background: rgba(255, 255, 255, .42);
	color: var(--tsdbv-blue);
}

.tsdbv-tab:focus-visible,
.tsdbv-play:focus-visible,
.tsdbv-video-modal__close:focus-visible {
	outline: 3px solid var(--tsdbv-blue);
	outline-offset: 3px;
}

.tsdbv-tabs-panel[hidden] {
	display: none !important;
}

h3.tsdbv-description-heading {
	margin: .5rem 0;
	color: var(--tsdbv-blue);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

.tsdbv-description p,
.tsdbv-duration {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.tsdbv-play-wrap {
	margin: 0;
	text-align: center;
}

.tsdbv-play {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 8.75rem;
	border: 0;
	border-radius: .75rem;
	background: linear-gradient(90deg, #a88972, #eadfdf);
	box-shadow: 0 14px 26px rgba(76, 56, 44, .14);
	padding: .95rem 2rem;
	color: #111;
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.tsdbv-video-modal[hidden] {
	display: none !important;
}

.tsdbv-video-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 6vh 1rem;
	background: rgba(0, 0, 0, .55);
}

.tsdbv-video-modal__dialog {
	position: relative;
	width: min(760px, 94vw);
	background: var(--e-global-color-secondary, #f8ece3);
	padding: 1.25rem 1.25rem 1.6rem;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.tsdbv-video-modal__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.tsdbv-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tsdbv-video-modal__close {
	position: absolute;
	top: 1.25rem;
	right: 1.35rem;
	z-index: 2;
	border: 0;
	background: transparent;
	color: #ddd;
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
}

.tsdbv-video-modal__title {
	margin: 0 3rem .65rem 0;
	color: #111;
	font-size: 1rem;
	font-weight: 700;
}

.tsdbv-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.tsdbv-loop-trigger {
		gap: 1rem;
	}

	.tsdbv-loop-thumb {
		flex-basis: 92px;
	}

	.tsdbv-tab {
		padding: .55rem .7rem;
	}

	.tsdbv-video-modal {
		padding-top: 10vh;
	}

	.tsdbv-video-modal__dialog {
		padding: 1rem;
	}
}

@media (max-width: 520px) {
	.tsdbv-loop-thumb {
		flex-basis: 76px;
	}

	.tsdbv-play {
		width: auto;
		min-width: 8rem;
	}
}
