/* Сайдбар: теги «Все работы» и сетка круглых фото работ */

#leftcol #tag-cloud-container,
#tag-cloud-container,
#leftcol .sidebar-works {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.3;
	width: 100%;
	margin: 0 0 18px;
	padding: 0 0 10px !important;
	overflow: visible;
	background: transparent;
	border: none;
	border-radius: 0;
	box-sizing: border-box;
}

#tag-cloud-container .tag-cloud-title,
.sidebar-works .tag-cloud-title {
	flex: 1 0 100%;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 0 8px;
	padding: 12px 0 11px;
	font-size: 18px;
	font-weight: normal;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	text-shadow: 0 -1px 0 #a91c1a;
	background: url("../images/bg-decorate-title.png") repeat-x #c23534;
	border: 0;
	border-bottom: 1px solid #ad2625;
	border-radius: 0 4px 4px 0;
	box-sizing: border-box;
}

#tag-cloud-container a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin: 0;
	padding: 4px 9px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	color: #4e4e4e;
	text-decoration: none !important;
	background: #f6f6f6;
	border: 1px solid #e4e4e4;
	border-radius: 14px;
	box-sizing: border-box;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

#tag-cloud-container a:hover {
	background: #c23736;
	border-color: #c23736;
	color: #fff !important;
}

.sidebar-works-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	padding: 4px 12px 8px;
	box-sizing: border-box;
}

.sidebar-works-grid a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: #ececec;
	line-height: 0;
}

.sidebar-works-grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	transition: transform .2s ease;
}

.sidebar-works-grid a:hover img {
	transform: scale(1.08);
}

@media screen and (max-width: 733px) {
	.sidebar-works-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
		padding: 4px 14px 10px;
	}
}
