.dnn-videos-section,
.dnn-videos-archive {
	box-sizing: border-box;
	clear: both;
	width: 100%;
	max-width: 1118px;
	min-height: 0 !important;
	margin: 0 auto 28px !important;
	padding: 0 !important;
	background: transparent !important;
	color: inherit;
	font-family: inherit;
	float: none !important;
	line-height: normal;
}

.sek-shortcode-content pre:has(.dnn-videos-section),
.sek-shortcode-content pre:has(.dnn-videos-archive),
pre:has(.dnn-videos-section),
pre:has(.dnn-videos-archive) {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font: inherit !important;
	overflow: visible !important;
	white-space: normal !important;
}

.sek-shortcode-content code:has(.dnn-videos-section),
.sek-shortcode-content code:has(.dnn-videos-archive),
code:has(.dnn-videos-section),
code:has(.dnn-videos-archive) {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font: inherit !important;
	white-space: normal !important;
}

.dnn-videos-section *,
.dnn-videos-section *::before,
.dnn-videos-section *::after,
.dnn-videos-archive *,
.dnn-videos-archive *::before,
.dnn-videos-archive *::after,
.dnn-videos-modal *,
.dnn-videos-modal *::before,
.dnn-videos-modal *::after {
	box-sizing: border-box;
}

.dnn-videos-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 0;
	margin: 0 0 26px !important;
	padding: 0 !important;
}

.dnn-videos-heading > span {
	display: block;
	flex: 1 1 auto;
	height: 1px;
	background: #111;
}

.dnn-videos-heading h1,
.dnn-videos-heading h2 {
	flex: 0 0 auto;
	margin: 0;
	color: var(--dnn-videos-primary, #dd0000);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.dnn-videos-shell {
	position: relative;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.dnn-videos-track {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
	margin: 0;
	padding: 0 0 6px !important;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.dnn-videos-track::-webkit-scrollbar {
	display: none;
}

.dnn-videos-card {
	position: relative;
	display: block;
	flex: 0 0 min(72vw, 220px);
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	scroll-snap-align: start;
}

.dnn-videos-media {
	position: relative;
	display: block !important;
	width: 100%;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 9px;
	background: #000;
}

.dnn-videos-media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	background: #000;
}

.dnn-videos-play {
	position: absolute;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	left: 50% !important;
	display: block !important;
	width: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	border: 2px solid rgba(255, 255, 255, 0.82) !important;
	border-radius: 999px !important;
	background: rgba(0, 0, 0, 0.48) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
	pointer-events: none;
	transform: translate(-50%, -50%) !important;
	transition: transform 160ms ease, background 160ms ease;
}

.dnn-videos-play::before {
	position: absolute;
	top: 50%;
	left: 52%;
	display: block;
	width: 0;
	height: 0;
	margin: 0 !important;
	border-top: 11px solid transparent !important;
	border-bottom: 11px solid transparent !important;
	border-left: 17px solid #fff !important;
	content: "";
	transform: translate(-40%, -50%);
}

.dnn-videos-card:hover .dnn-videos-play,
.dnn-videos-card:focus-visible .dnn-videos-play {
	background: var(--dnn-videos-primary, #dd0000) !important;
	transform: translate(-50%, -50%) scale(1.04) !important;
}

.dnn-videos-card:focus-visible {
	outline: 3px solid var(--dnn-videos-primary, #dd0000);
	outline-offset: 4px;
}

.dnn-videos-card-title {
	position: absolute;
	z-index: 1;
	bottom: 0;
	left: 0;
	right: 0;
	display: -webkit-box;
	margin: 0;
	padding: 32px 8px 12px;
	overflow: hidden;
	background: linear-gradient(transparent, rgba(0,0,0,.9));
	color: #fff;
	text-align: center;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dnn-videos-nav {
	position: absolute;
	z-index: 2;
	top: calc((100% - 32px) / 2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(62, 62, 62, 0.92);
	color: var(--dnn-videos-primary, #dd0000);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.dnn-videos-prev {
	left: 0;
}

.dnn-videos-next {
	right: 0;
}

.dnn-videos-nav:focus-visible {
	outline: 3px solid var(--dnn-videos-primary, #dd0000);
	outline-offset: 2px;
}

.dnn-videos-nav[disabled] {
	opacity: 0.82;
	cursor: default;
}

.dnn-videos-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 14px;
}

.dnn-videos-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 28px 0 0;
}

.dnn-videos-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	color: inherit;
	text-decoration: none;
}

.dnn-videos-pagination .current {
	border-color: var(--dnn-videos-primary, #dd0000);
	background: var(--dnn-videos-primary, #dd0000);
	color: #fff;
}

.dnn-videos-empty {
	margin: 0;
	padding: 16px 0;
	color: inherit;
	font-size: 15px;
}

.dnn-videos-modal {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}

.dnn-videos-modal[aria-hidden="false"] {
	display: flex;
}

.dnn-videos-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
}

.dnn-videos-modal-panel {
	position: relative;
	z-index: 1;
	width: min(960px, 100%, calc(150vh - 96px));
	max-height: calc(100vh - 32px);
	padding-top: 48px;
}

@supports (height: 100dvh) {
	.dnn-videos-modal-panel {
		width: min(960px, 100%, calc(150dvh - 96px));
		max-height: calc(100dvh - 32px);
	}
}

.dnn-videos-modal-player {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: #000;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.dnn-videos-modal-player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.dnn-videos-modal-close {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.dnn-videos-modal-close:focus-visible {
	outline: 3px solid var(--dnn-videos-primary, #dd0000);
	outline-offset: 2px;
}

body.dnn-videos-modal-open {
	overflow: hidden;
}

/* Visual story slider. */
.dnn-videos-section .dnn-videos-heading { gap: 8px; margin-bottom: 12px !important; }
.dnn-videos-section .dnn-videos-heading .dnn-videos-heading-icon {
	flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--dnn-videos-primary, #dd0000); color: #fff;
	font: 10px/22px Arial, sans-serif; text-align: center;
}
.dnn-videos-section .dnn-videos-heading > .dnn-videos-heading-divider {
	height: 0; background: transparent; border-top: 1px dotted #111;
}
.dnn-videos-section .dnn-videos-heading h2 { font-size: 16px; line-height: 1.25; }
.dnn-videos-section .dnn-videos-track { gap: 12px; padding: 2px 0 8px !important; }
.dnn-videos-section[data-dnn-videos] .dnn-videos-card { flex: 0 0 calc((100% - 72px) / 6.5); min-width: 112px; }
.dnn-videos-section .dnn-videos-media { aspect-ratio: 9 / 16; border-radius: 6px; }
.dnn-videos-section .dnn-videos-play {
	top: 8px !important; right: 8px !important; bottom: auto !important; left: auto !important;
	width: 24px !important; height: 24px !important; border: 0 !important;
	transform: none !important; background: rgba(0,0,0,.6) !important;
}
.dnn-videos-section .dnn-videos-play::before { border-top-width: 5px !important; border-bottom-width: 5px !important; border-left-width: 7px !important; }
.dnn-videos-section .dnn-videos-card-title { font-size: 13px; line-height: 1.3; padding: 36px 7px 10px; border-radius: 0 0 6px 6px; }
.dnn-videos-section .dnn-videos-nav { top: 50%; width: 30px; height: 44px; background: rgba(0,0,0,.48); color: #fff; border: 0; }
.dnn-videos-section .dnn-videos-nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
	.dnn-videos-section[data-dnn-videos] .dnn-videos-card { flex-basis: min(40%, 170px); min-width: 120px; }
}

@media (min-width: 641px) {
	.dnn-videos-section[data-dnn-videos] .dnn-videos-card { flex-basis: calc((100% - 72px) / 6.5); }
}

@media (min-width: 560px) {
	.dnn-videos-card {
		flex-basis: calc((100% - 24px) / 3);
	}

	.dnn-videos-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 760px) {
	.dnn-videos-section[data-dnn-videos] .dnn-videos-card {
		flex-basis: calc((100% - 72px) / 6.5);
	}
}

@media (min-width: 900px) {
	.dnn-videos-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.dnn-videos-card {
		flex-basis: calc((100% - 48px) / 5);
	}

	.dnn-videos-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.dnn-videos-section,
	.dnn-videos-archive {
		padding: 0 12px !important;
	}

	.dnn-videos-heading {
		gap: 10px;
		margin-bottom: 18px;
	}

	.dnn-videos-heading h1,
	.dnn-videos-heading h2 {
		font-size: 18px;
	}

	.dnn-videos-track {
		gap: 12px;
		padding-bottom: 16px !important;
	}

	.dnn-videos-nav {
		width: 34px;
		height: 30px;
		font-size: 24px;
	}
}

/* Keep headlines readable even when thumbnails contain baked-in text. */
.dnn-videos-section .dnn-videos-card,
.dnn-videos-archive .dnn-videos-card {
	border-radius: 6px !important;
	overflow: hidden;
	transform: none !important;
}
.dnn-videos-section .dnn-videos-card:hover,
.dnn-videos-archive .dnn-videos-card:hover {
	transform: none !important;
	box-shadow: none !important;
	filter: none !important;
}
.dnn-videos-section .dnn-videos-card-title,
.dnn-videos-archive .dnn-videos-card-title {
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 72px;
	padding: 8px !important;
	background: #111 !important;
	color: #fff !important;
	font-size: 13px;
	line-height: 1.3;
}
.dnn-videos-card-title > span {
	display: -webkit-box;
	max-height: 3.9em;
	overflow: hidden;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.dnn-videos-section .dnn-videos-card:hover .dnn-videos-play,
.dnn-videos-section .dnn-videos-card:focus-visible .dnn-videos-play {
	transform: none !important;
	background: rgba(0,0,0,.75) !important;
}

.dnn-videos-section[data-dnn-videos] {
	margin-top: 32px !important;
}
.dnn-videos-section .dnn-videos-all-link {
	flex: 0 0 auto;
	padding: 6px 10px;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: var(--dnn-videos-primary, #dd0000);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.dnn-videos-section .dnn-videos-all-link:hover,
.dnn-videos-section .dnn-videos-all-link:focus-visible {
	background: var(--dnn-videos-primary, #dd0000);
	color: #fff;
}
