.news-gallery-block {
	margin: 0 0 clamp(20px, 3vw, 28px);
	max-width: 100%;
}

.news-gallery-block__grid {
	display: grid;
	gap: clamp(10px, 1.5vw, 14px);
	width: 100%;
}

.news-gallery-block--cols-1 .news-gallery-block__grid {
	grid-template-columns: minmax(0, 1fr);
}

.news-gallery-block--cols-2 .news-gallery-block__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-gallery-block--cols-3 .news-gallery-block__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-gallery-block__item {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--radius-lg, 16px);
	contain: layout paint;
}

.news-gallery-block--ratio-landscape .news-gallery-block__item {
	aspect-ratio: 16 / 10;
}

.news-gallery-block--cols-1.news-gallery-block--ratio-landscape .news-gallery-block__item {
	aspect-ratio: 16 / 9;
}

.news-gallery-block--ratio-square .news-gallery-block__item {
	aspect-ratio: 1 / 1;
}

.news-gallery-block--ratio-portrait .news-gallery-block__item {
	aspect-ratio: 3 / 4;
}

.news-gallery-block__item .news-gallery-block__img,
.news-gallery-block__item img {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	inset: 0;
}

.news-gallery-block__caption {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--grafit-secon-text, #6b6b6b);
}

@media (max-width: 767px) {
	.news-gallery-block--cols-3 .news-gallery-block__grid,
	.news-gallery-block--cols-2 .news-gallery-block__grid {
		grid-template-columns: 1fr;
	}
}
