.msm-wrapper {
	display: flex;
	width: 100%;
	align-items: flex-start;
}

.msm-sidebar {
	width: 30%;
	margin-right: 20px;
	box-sizing: border-box;
}

.msm-tab {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #ccc;
	color: #000;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.msm-tab a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.msm-content {
	width: calc(70% - 20px);
	box-sizing: border-box;
}

.msm-panel {
	display: none;
}

.msm-panel.active {
	display: block;
}

.msm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.msm-grid.msm-cols-2 { grid-template-columns: repeat(2, 1fr)  !important;}
.msm-grid.msm-cols-3 { grid-template-columns: repeat(3, 1fr) !important;}
.msm-grid.msm-cols-4 { grid-template-columns: repeat(4, 1fr) !important;}
.msm-grid.msm-cols-5 { grid-template-columns: repeat(5, 1fr) !important;}
.msm-grid.msm-cols-6 { grid-template-columns: repeat(6, 1fr) !important;}

.msm-item {
	text-align: center;
}

.msm-item a {
	text-decoration: none;
	display: block;
}

.msm-item img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 10px;
}

.msm-item.msm-square img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.msm-item-title {
	font-size: 16px;
	font-weight: 500;
	color: #410076;
}

/* Icons, bold/indent rows (nested-menu style) */
.msm-tab-icon {
	margin-right: 6px;
}

.msm-tab-icon{
	width:18px;
}

.msm-tab.msm-bold {
	font-weight: 700;
}

.msm-tab.msm-indent {
	padding-left: 28px;
}

.msm-indent a > span{
	display:flex;
}

/* Single-image panel */
.msm-panel-image img {
	max-width: 100%;
	height: auto;
	display: block;
	width:100%;
}

.msm-panel-image a {
	display: block;
}

/* Prevent layout jump: stack panels absolutely, active one back in flow */
.msm-prevent-jump .msm-content {
	position: relative;
}

.msm-prevent-jump .msm-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.msm-prevent-jump .msm-panel.active {
	position: relative;
	z-index: 2;
}

/* Mobile: stack tabs above content */
@media (max-width: 767px) {
	.msm-wrapper {
		flex-direction: column;
	}
	.msm-wrapper .msm-sidebar,
	.msm-wrapper .msm-content {
		width: 100% !important;
		margin-right: 0 !important;
	}
	.msm-wrapper .msm-sidebar {
		margin-bottom: 15px;
	}
}
