.atm-video-grid {
	--atm-video-red: #c73737;
	--atm-video-purple: #6f2f84;
	--atm-video-text: #2b2032;
	width: 100%;
	font-family: inherit;
	color: var(--atm-video-text);
}

.atm-video-grid *,
.atm-video-grid *::before,
.atm-video-grid *::after {
	box-sizing: border-box;
}

.atm-video-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.atm-video-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	background: #18131d;
	box-shadow: none;
	cursor: pointer;
	text-align: left;
}

.atm-video-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.atm-video-card:hover img,
.atm-video-card:focus-visible img {
	transform: scale(1.035);
}

.atm-video-card:focus-visible {
	outline: 3px solid rgba(111, 47, 132, 0.28);
	outline-offset: 3px;
}

.atm-video-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
}

.atm-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #f24b46;
	transform: translate(-50%, -50%);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.atm-video-play span {
	display: block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 18px solid #ffffff;
}

.atm-video-title {
	position: absolute;
	left: 20px;
	right: 18px;
	bottom: 17px;
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.45;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.atm-video-empty {
	margin: 0;
	padding: 18px 0;
	color: #5d5363;
}

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

.atm-video-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(12, 9, 16, 0.78);
}

.atm-video-dialog {
	position: relative;
	width: min(980px, 100%);
	background: #000000;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.atm-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

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

.atm-video-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 1100px) {
	.atm-video-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
.atm-video-cards {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.atm-video-title {
		font-size: 16px;
	}
}