

/* Start:/local/templates/geom/components/bitrix/news.list/progress/style.css?17695808191833*/
.gallery {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	padding: 0;
	margin: 0;
	list-style: none;
	max-width: 1400px;
	margin: 0 auto;
}
.gallery__item-wrap {
	aspect-ratio: 1 / 1;
	/* квадрат */
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}
.gallery__item-wrap:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.gallery__figure {
	margin: 0;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}
.gallery__item {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}
.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.gallery__item:hover img {
	transform: scale(1.05);
}
.gallery__figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 15px 15px;
	background: linear-gradient(to top,
			rgba(0, 0, 0, 0.5) 0%,
			rgba(0, 0, 0, 0.25) 60%,
			rgba(0, 0, 0, 0.05) 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	/* Текст всегда виден - без transform */
}
/* Адаптивность */
@media (max-width: 1200px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
		padding: 0 15px;
	}
	.gallery__figcaption {
		padding: 15px 12px 12px;
	}
}
@media (max-width: 600px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 0 10px;
	}
	.gallery__figcaption {
		padding: 12px 8px 8px;
		font-size: 14px;
	}
}
@media (max-width: 400px) {
	.gallery {
		grid-template-columns: 1fr;
	}
}
/* End */
/* /local/templates/geom/components/bitrix/news.list/progress/style.css?17695808191833 */
