.wallex-structure-main {
	padding-block: clamp(32px, 5vw, 72px);
}

.wallex-structure {
	display: flex;
	flex-direction: column;
	gap: clamp(24px, 4vw, 40px);
}

.wallex-structure-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 760px;
}

.wallex-structure-title {
	color: var(--color-text-1, #252525);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}

.wallex-structure-description {
	color: var(--color-text-2, #666);
	font-size: 1rem;
	line-height: 1.9;
}

.wallex-structure-description p {
	margin: 0;
}

.wallex-structure-posts {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(var(--wallex-structure-columns, 3), minmax(0, 1fr));
}

.wallex-structure--columns-2 {
	--wallex-structure-columns: 2;
}

.wallex-structure--columns-3 {
	--wallex-structure-columns: 3;
}

.wallex-structure--columns-4 {
	--wallex-structure-columns: 4;
}

.wallex-structure--layout-list .wallex-structure-posts {
	display: flex;
	flex-direction: column;
}

.wallex-structure-card {
	background: var(--color-bg, #fff);
	border: 1px solid var(--color-stroke-2, #00000014);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.wallex-structure--layout-list .wallex-structure-card {
	display: grid;
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
}

.wallex-structure-card-media {
	aspect-ratio: 16 / 10;
	background: var(--color-bg-2, #f5f7fa);
	display: block;
	overflow: hidden;
}

.wallex-structure--layout-list .wallex-structure-card-media {
	aspect-ratio: auto;
	min-height: 100%;
}

.wallex-structure-card-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wallex-structure-card-placeholder {
	background: linear-gradient(135deg, var(--color-primaryBrandBg-5, #f2f8ff), var(--color-bg-3, #eef1f4));
	display: block;
	height: 100%;
	width: 100%;
}

.wallex-structure-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.wallex-structure-card-meta {
	align-items: center;
	color: var(--color-text-3, #777);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	gap: 10px;
	line-height: 1.7;
}

.wallex-structure-card-meta a {
	color: inherit;
	text-decoration: none;
}

.wallex-structure-card-title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.65;
	margin: 0;
}

.wallex-structure-card-title a {
	color: var(--color-text-1, #252525);
	text-decoration: none;
}

.wallex-structure-card-title a:hover,
.wallex-structure-card-title a:focus {
	color: var(--color-primaryBrandBg, #007aff);
}

.wallex-structure-card-excerpt {
	color: var(--color-text-2, #666);
	font-size: 0.9375rem;
	line-height: 1.9;
	margin: 0;
}

.wallex-structure-empty {
	border: 1px solid var(--color-stroke-2, #00000014);
	border-radius: 8px;
	padding: 24px;
}

.wallex-structure--single {
	display: block;
	max-width: 860px;
	margin-inline: auto;
}

.wallex-structure-single-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}

.wallex-structure-single-excerpt {
	color: var(--color-text-2, #666);
	font-size: 1.125rem;
	line-height: 1.9;
	margin: 0;
}

.wallex-structure-single-media {
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	margin-bottom: 32px;
	overflow: hidden;
}

.wallex-structure-single-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wallex-structure-single-content {
	font-size: 1rem;
	line-height: 2;
}

.wallex-structure-single-footer {
	border-top: 1px solid var(--color-stroke-2, #00000014);
	margin-top: 32px;
	padding-top: 20px;
}

@media screen and (max-width: 900px) {
	.wallex-structure-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wallex-structure--layout-list .wallex-structure-card {
		grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
	}
}

@media screen and (max-width: 640px) {
	.wallex-structure-posts,
	.wallex-structure--layout-list .wallex-structure-card {
		display: flex;
		flex-direction: column;
	}
}
