.df-videos {
	background: #fff;
	font-family: "Montserrat", sans-serif;
	color: #000;
}

.df-videos *,
.df-videos *::before,
.df-videos *::after {
	box-sizing: border-box;
}

.df-videos__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--df-section-y, 72px) var(--df-section-x, 24px);
}

.df-videos__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}

.df-videos__item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.df-videos__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #131313;
}

.df-videos__media:fullscreen,
.df-videos__media:-webkit-full-screen {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	background: #000;
}

.df-videos__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.df-videos__ui {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 28px 10px 8px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.df-videos__media:hover .df-videos__ui,
.df-videos__media:focus-within .df-videos__ui,
.df-videos__media.is-active .df-videos__ui,
.df-videos__media:fullscreen .df-videos__ui,
.df-videos__media:-webkit-full-screen .df-videos__ui {
	opacity: 1;
	pointer-events: auto;
}

.df-videos__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
}

.df-videos__btn {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	outline: none;
	box-shadow: none;
}

.df-videos__btn:hover,
.df-videos__btn:focus,
.df-videos__btn:focus-visible,
.df-videos__btn:active {
	background: transparent !important;
	color: #fff !important;
	outline: none;
	box-shadow: none;
}

.df-videos__btn svg {
	display: block;
	width: 18px;
	height: 18px;
}

.df-videos__time {
	flex: 0 0 auto;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.df-videos__spacer {
	flex: 1 1 auto;
}

.df-videos__progress {
	display: block;
	width: 100%;
	height: 3px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	accent-color: #ffffff !important;
	background: linear-gradient(
		to right,
		#fff var(--df-progress, 0%),
		rgba(255, 255, 255, 0.35) var(--df-progress, 0%)
	);
	cursor: pointer;
	appearance: none;
}

.df-videos__progress::-webkit-slider-runnable-track {
	height: 3px;
	background: transparent;
}

.df-videos__progress::-webkit-slider-thumb {
	width: 10px;
	height: 10px;
	margin-top: -3.5px;
	border: none;
	border-radius: 50%;
	background: #fff;
	appearance: none;
}

.df-videos__progress::-moz-range-track {
	height: 3px;
	background: rgba(255, 255, 255, 0.35);
}

.df-videos__progress::-moz-range-progress {
	height: 3px;
	background: #fff;
}

.df-videos__progress::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: #fff;
}

.df-videos__progress:focus,
.df-videos__progress:focus-visible {
	outline: none;
	box-shadow: none;
	accent-color: #ffffff !important;
}

.df-videos__caption {
	margin: 14px 0 0;
	color: #131313;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

@media (max-width: 1024px) {
	.df-videos__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}
}

@media (max-width: 767px) {
	.df-videos__list {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.df-videos__caption {
		font-size: 15px;
	}

	.df-videos__ui {
		opacity: 1;
		pointer-events: auto;
		padding: 24px 8px 8px;
	}
}
