.chs-video-gallery,
.chs-video-gallery * {
	box-sizing: border-box;
}

.chs-video-gallery .chs-video-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.chs-video-gallery .chs-video-card,
.chs-video-gallery .chs-featured-video {
	background: #f4f6f9;
	border-radius: 0 0 15px 15px;
	overflow: hidden;
	color: #242629;
}

.chs-video-gallery .chs-video-card__media,
.chs-video-gallery .chs-featured-video__media {
	position: relative;
	background: #dce1e7;
	overflow: hidden;
}

.chs-video-gallery .chs-video-card__media { aspect-ratio: 1.78 / 1; }
.chs-video-gallery .chs-featured-video__media { min-height: 340px; }

.chs-video-gallery .chs-video-card__media img,
.chs-video-gallery .chs-featured-video__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chs-video-gallery .chs-featured-video__media img { position: absolute; inset: 0; }

.chs-video-gallery .chs-video-cover-button {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.chs-video-gallery .chs-play-button {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #ce1d2e;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .17);
	transition: transform .2s ease, background-color .2s ease;
}

.chs-video-gallery .chs-play-button svg { width: 25px; height: 25px; fill: currentColor; margin-left: 3px; }
.chs-video-gallery .chs-video-cover-button:hover .chs-play-button,
.chs-video-gallery .chs-video-cover-button:focus-visible .chs-play-button { background: #aa1020; transform: scale(1.08); }
.chs-video-gallery .chs-video-cover-button:focus-visible { outline: 3px solid #087cff; outline-offset: -3px; }

.chs-video-gallery .chs-video-card__content { padding: 19px 19px 20px; }
.chs-video-gallery .chs-video-card h3,
.chs-video-gallery .chs-featured-video h2 {
	margin: 0;
	font-family: "Arial Narrow", Arial, sans-serif;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.chs-video-gallery .chs-video-card p,
.chs-video-gallery .chs-featured-video p {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.42;
	color: #68717e;
}

.chs-video-gallery .chs-video-actions { display: flex; gap: 10px; margin-top: 16px; }
.chs-video-gallery .chs-video-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 37px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chs-video-gallery .chs-video-action--watch { border: 1px solid #d70f24; background: #d70f24; color: #fff; }
.chs-video-gallery .chs-video-action--watch:hover,
.chs-video-gallery .chs-video-action--watch:focus-visible { border-color: #ad091a; background: #ad091a; color: #fff; }
.chs-video-gallery .chs-video-action--download { border: 1px solid #087cff; background: transparent; color: #0077f5; }
.chs-video-gallery .chs-video-action--download:hover,
.chs-video-gallery .chs-video-action--download:focus-visible { background: #087cff; color: #fff; }

.chs-video-gallery .chs-featured-video { display: grid; grid-template-columns: 58% 42%; border-radius: 0; }
.chs-video-gallery .chs-featured-video__content { display: flex; flex-direction: column; justify-content: center; padding: 40px 30px; }
.chs-video-gallery .chs-featured-video__content h2 { font-size: 25px; }
.chs-video-gallery .chs-featured-video__content .chs-video-actions { max-width: 354px; }

.chs-video-gallery .chs-video-modal { position: fixed; z-index: 999999; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; }
.chs-video-gallery .chs-video-modal.is-open { display: flex; }
.chs-video-gallery .chs-video-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 15, 21, .82); }
.chs-video-gallery .chs-video-modal__content { position: relative; width: min(100%, 1050px); max-height: calc(100vh - 44px); }
.chs-video-gallery .chs-video-modal__player { overflow: hidden; max-height: calc(100vh - 44px); background: #000; }
.chs-video-gallery .chs-video-modal video { display: block !important; width: 100% !important; max-height: calc(100vh - 106px) !important; background: #000 !important; }
.chs-video-gallery .chs-video-modal__close {
	all: unset !important;
	position: absolute !important;
	z-index: 2 !important;
	top: -20px !important;
	right: -20px !important;
	display: grid !important;
	place-items: center !important;
	width: 48px !important;
	height: 48px !important;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	background: #d70f24 !important;
	color: #fff !important;
	font-family: Arial, sans-serif !important;
	font-size: 34px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .45) !important;
}
.chs-video-gallery .chs-video-modal__close:hover,
.chs-video-gallery .chs-video-modal__close:focus-visible { background: #a90819 !important; transform: scale(1.08); }
.chs-video-gallery .chs-video-player-controls { display: flex !important; align-items: center; gap: 12px; min-height: 62px; padding: 11px 18px; background: #15191f; color: #fff; }
.chs-video-gallery .chs-video-player-controls__toggle {
	all: unset !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 82px !important;
	width: 82px !important;
	height: 38px !important;
	border: 1px solid #fff !important;
	border-radius: 999px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #d70f24 !important;
	color: #fff !important;
	font-family: Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	cursor: pointer !important;
}
.chs-video-gallery .chs-video-player-controls__toggle:hover,
.chs-video-gallery .chs-video-player-controls__toggle:focus-visible { background: #a90819 !important; }
.chs-video-gallery .chs-video-player-controls__progress { width: 100%; accent-color: #d70f24; cursor: pointer; }
.chs-video-gallery .chs-video-player-controls__time { flex: 0 0 auto; min-width: 92px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.chs-video-gallery .chs-video-notice { padding: 12px 16px; border-left: 4px solid #d70f24; background: #f4f6f9; }

@media (max-width: 900px) {
	.chs-video-gallery .chs-video-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.chs-video-gallery .chs-featured-video__media { min-height: 280px; }
}

@media (max-width: 640px) {
	.chs-video-gallery .chs-video-gallery-grid { grid-template-columns: 1fr; }
	.chs-video-gallery .chs-featured-video { grid-template-columns: 1fr; }
	.chs-video-gallery .chs-featured-video__media { aspect-ratio: 1.55 / 1; min-height: 0; }
	.chs-video-gallery .chs-featured-video__content { padding: 27px 22px; }
	.chs-video-gallery .chs-featured-video__content h2 { font-size: 22px; }
	.chs-video-gallery .chs-video-modal { padding: 16px; }
	.chs-video-gallery .chs-video-modal__content,
	.chs-video-gallery .chs-video-modal__player { max-height: calc(100vh - 32px); }
	.chs-video-gallery .chs-video-modal video { max-height: calc(100vh - 94px) !important; }
	.chs-video-gallery .chs-video-modal__close { top: -12px !important; right: -5px !important; }
	.chs-video-gallery .chs-video-player-controls { gap: 8px; min-height: 58px; padding: 10px; }
	.chs-video-gallery .chs-video-player-controls__toggle { flex-basis: 64px !important; width: 64px !important; }
	.chs-video-gallery .chs-video-player-controls__time { min-width: 81px; font-size: 12px; }
}
