/**
 * Videos V2 — preview grid (ported from mockup .video-section).
 * Block: .videos-v2
 */

.videos-v2 {
	background: var(--m114-alt);
}

.videos-v2__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.videos-v2__card {
	display: block;
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 9px;
	background: var(--m114-navy);
}

.videos-v2__card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s;
}

.videos-v2__card::after {
	content: '';
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(transparent, rgba(9, 28, 43, 0.92));
}

.videos-v2__platform {
	position: absolute;
	right: 15px;
	top: 15px;
	background: #102b3ade;
	color: #fff;
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 10px;
	z-index: 1;
}

.videos-v2__play {
	position: absolute;
	left: 50%;
	top: 48%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	background: var(--m114-paper);
	color: var(--m114-navy);
	border-radius: 50%;
	font-size: 20px;
	padding-left: 4px;
	z-index: 1;
	box-shadow: 0 5px 25px #0003;
	transition: transform 0.2s;
}

.videos-v2__card:hover .videos-v2__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.videos-v2__caption {
	position: absolute;
	bottom: 25px;
	left: 25px;
	right: 25px;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 700;
	z-index: 1;
}

.videos-v2__card:hover img {
	transform: scale(1.035);
}

.videos-v2__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-top: 22px;
	font-size: 11px;
	color: var(--m114-muted);
}

.videos-v2__foot p {
	margin: 0;
}

.videos-v2__foot > div {
	display: flex;
	gap: 20px;
	white-space: nowrap;
}

.videos-v2__foot a {
	text-decoration: underline;
	text-underline-offset: 4px;
	color: var(--m114-ink);
}

@media (max-width: 700px) {
	.videos-v2__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.videos-v2__card {
		width: 100%;
		max-width: 390px;
		margin: auto;
	}
	.videos-v2__foot {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.videos-v2__card img,
	.videos-v2__play {
		transition: none;
	}
}
