/**
 * ATB Block: Vehicle Comfort Gallery
 *
 * Назначение:
 * - 6 компактных карточек в один ряд на desktop;
 * - CSS не влияет на соседние блоки.
 *
 * Уникальные классы:
 * - .atb-vehicle-gallery
 */

.atb-vehicle-gallery {
	padding: 10px 0 46px;
	background: #ffffff;
}

.atb-vehicle-gallery__container {
	width: min(calc(100% - 40px), 1320px);
		max-width: 1320px;
		margin-right: auto;
		margin-left: auto;
}

.atb-vehicle-gallery__title {
	margin: 0 0 14px;
	font-size: clamp(20px, 1.8vw, 26px);
	line-height: 1.18;
	font-weight: 850;
	letter-spacing: -0.03em;
	color: #07111f;
}

.atb-vehicle-gallery__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.atb-vehicle-gallery__card {
	overflow: hidden;
	border-radius: 9px;
	background: #07111f;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.atb-vehicle-gallery__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 8.2;
	background: #07111f;
}

.atb-vehicle-gallery__media--empty {
	background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .86));
}

.atb-vehicle-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.atb-vehicle-gallery__overlay {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	align-items: flex-end;
	min-height: 62%;
	padding: 34px 9px 9px;
	background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, .70) 58%, rgba(2, 6, 23, .94) 100%);
}

.atb-vehicle-gallery__card-title {
	width: 100%;
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 800;
	text-align: center;
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

@media (max-width: 1180px) {
	.atb-vehicle-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.atb-vehicle-gallery__media {
		aspect-ratio: 16 / 7;
	}
}

@media (max-width: 760px) {
	.atb-vehicle-gallery {
		padding: 6px 0 38px;
	}

	.atb-vehicle-gallery__container {
		width: min(calc(100% - 32px), 100%);
	}

	.atb-vehicle-gallery__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.atb-vehicle-gallery__media {
		aspect-ratio: 16 / 7;
	}

	.atb-vehicle-gallery__card-title {
		font-size: 14px;
	}
}

/* ATB vehicle revision spacing */
.atb-vehicle-gallery {
	padding-top: 6px;
	padding-bottom: 34px;
}
