.attl .nav-link:after {
	font-family: 'Glyphicons Regular', 'Glyphicons';
	font-size: 14px;
	padding: 0px;
	content: '\E011';
}

.attl a:hover {
	text-decoration: none;
}

.icon-attachments {
	position: relative;
}

.icon-attachments:after {
	font-family: FontAwesome;
	content: '\f030';
	position: absolute;
	top: 50%;
	left: 3px;
	height: 14px;
	margin-top: -7px;
	text-align: center;
	font-size: 12px;
	line-height: 14px;
	vertical-align: baseline;
	font-weight: normal;
	font-style: normal;
	text-transform: none;
	text-indent: 0;
	pointer-events: none;
	color: #3462A0;
}

/* Grid layout вместо column-count */
.attach_list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

@media (max-width: 1500px) {
	.attach_list { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1300px) {
	.attach_list { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
	.attach_list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 850px) {
	.attach_list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.attach_list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.attach_list { gap: 8px; }
	.lazy-image-container { height: 150px; }
}

.attach_list_pic {
	width: 100%;
	border-radius: 6px;
	border: 1px solid rgba(128, 128, 128, 0.3);
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
	overflow: hidden;
	color: inherit;
}

.attach_list_img {
	width: 100% !important;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	background: transparent;
}

/* Lazy loading контейнер без явного фона */
.lazy-image-container {
	position: relative;
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 4px;
	/* background не задаём! */
}

.attach_list_img img,
.attach_list_img > a > img,
.lazy-image {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: none !important;
	display: block;
	object-fit: cover;
	box-sizing: border-box;
	background: transparent;
	transition: opacity 0.3s ease;
}

.lazy-image {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lazy-image[loading="lazy"] {
	opacity: 1;
}

.attach_list_desc {
	padding: 0.3em;
	font-size: 0.9em;
	line-height: 1.4;
	color: inherit;
	background: transparent;
	text-align: center;
	border-top: 1px solid rgba(128, 128, 128, 0.3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	box-sizing: border-box;
}

.attach_list_desc .topic-label {
	display: inline-block;
	margin-right: 4px;
	white-space: nowrap;
}

.attach_list_desc .topic-title {
	display: inline-block;
	vertical-align: bottom;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
	text-decoration: none;
}

/* Обнуляем старые свойства */
.attach_list_pic,
.attach_list_img,
.attach_list_img > a {
	width: 100% !important;
	text-align: inherit !important;
	font-size: inherit !important;
	float: none !important;
}

/* Убираем иконку в навигации на узких экранах */
@media only screen and (max-width: 700px) {
	.attl .nav-link:after { display: none; }
}

/* Оптимизация производительности */
.attach_list { will-change: auto; contain: layout style paint; }
.attach_list_pic { contain: layout style paint; }
.lazy-image-container { contain: layout style paint; }