.ds-home-video {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: var(--wd-container-w);
	margin: 40px auto 0;
	padding: 48px 15px 52px;
	isolation: isolate;
}

.ds-home-video::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: #e2ddd6 url('../images/home-video/01-about-background.jpg') center center / cover no-repeat;
}

.ds-home-video__inner {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
}

.ds-home-video__panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.ds-home-video__media {
	background: #111;
	min-height: 400px;
}

.ds-home-video__player {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 400px;
	object-fit: cover;
	vertical-align: middle;
}

.ds-home-video__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 36px 40px;
}

.ds-home-video__kicker {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #222;
}

.ds-home-video__title {
	margin: 0 0 16px;
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.25;
	font-weight: 800;
	color: #111;
}

.ds-home-video__text {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}

.ds-home-video__text p {
	margin: 0 0 10px;
}

.ds-home-video__btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 999px;
	background: #3b9ae1;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.ds-home-video__btn:hover {
	background: #1f6fb8;
	color: #fff !important;
}

.ds-home-video__carousel-wrap {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 30px;
	gap: 10px;
	align-items: center;
	margin-top: 20px;
	padding: 0;
}

.ds-home-video__carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	align-items: flex-start;
	scroll-snap-type: x proximity;
}

.ds-home-video__carousel::-webkit-scrollbar {
	display: none;
}

.ds-home-video__thumb {
	flex: 0 0 calc((100% - 72px) / 4);
	min-width: calc((100% - 72px) / 4);
	max-width: none;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ds-home-video__thumb-media {
	display: block;
	width: 100%;
	max-width: 210px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
	border: 2px solid transparent;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.ds-home-video__thumb-hit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	line-height: 0;
}

.ds-home-video__thumb-hit:hover,
.ds-home-video__thumb-hit:focus,
.ds-home-video__thumb-hit:focus-visible {
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
}

.ds-home-video__thumb.is-active .ds-home-video__thumb-media {
	border-color: #3b9ae1;
}

.ds-home-video__thumb-hit:hover .ds-home-video__thumb-media {
	border-color: rgba(59, 154, 225, 0.45);
}

.ds-home-video__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ds-home-video__thumb-fallback {
	display: grid;
	width: 100%;
	aspect-ratio: 4 / 3;
	place-items: center;
	font-size: 22px;
	color: #888;
	background: #e8e8e8;
}

.ds-home-video__thumb-label {
	display: block;
	width: 100%;
	max-width: 210px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	line-height: 1.25;
	text-align: center;
	text-shadow: none !important;
	box-shadow: none !important;
	background: transparent !important;
	pointer-events: none;
}

.ds-home-video__arrow {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(59, 154, 225, 0.15);
	color: #3b9ae1;
	font-size: 20px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transform: none;
	justify-self: center;
}

.ds-home-video__arrow:hover {
	background: rgba(59, 154, 225, 0.22);
	transform: none;
}

.ds-home-video__arrow--prev,
.ds-home-video__arrow--next {
	left: auto;
	right: auto;
}

@media (max-width: 900px) {
	.ds-home-video__panel {
		grid-template-columns: 1fr;
	}

	.ds-home-video__copy {
		padding: 24px 20px 28px;
	}

	.ds-home-video__thumb {
		flex: 0 0 calc((100% - 24px) / 2);
		min-width: calc((100% - 24px) / 2);
	}
}

@media (max-width: 768px) {
	.ds-home-video {
		margin-top: 32px;
		margin-bottom: 0;
		padding: 36px 16px 40px;
	}

	.ds-home-video__media,
	.ds-home-video__player {
		min-height: 260px;
	}

	.ds-home-video__text {
		display: -webkit-box;
		margin-bottom: 16px;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.ds-home-video__text p {
		display: inline;
		margin: 0;
	}

	.ds-home-video__text p:not(:last-child)::after {
		content: ' ';
	}
}
