/* MS Projektübersicht – Website */
/* Container, damit Abstände in % sich auf die Rasterbreite beziehen (cqw) */
.msu-wrap { container-type: inline-size; width: 100%; }
.msu-grid {
	display: grid;
	grid-template-columns: repeat(var(--msu-cols, 6), minmax(0, 1fr));
	column-gap: var(--msu-gx, 15px);
	row-gap: var(--msu-gy, 15px);
	width: 100%;
}
.msu-tile { min-width: 0; }

/* Bildunterschrift */
.msu-grid .msu-caption {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0 0 var(--msu-cgap, 5px);
	padding: 0;
	line-height: 1 !important;
	font-family: var(--msu-cfont, inherit);
	font-size: var(--msu-csize, inherit);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.msu-caption-text { overflow: hidden; text-overflow: ellipsis; }
.msu-dot {
	flex: none;
	display: inline-block;
	width: var(--msu-dsize, 10px);
	height: var(--msu-dsize, 10px);
	border-radius: 50%;
	background: var(--msu-dot, #00ff00);
}

/* Feld: alle gleich hoch */
.msu-frame {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	aspect-ratio: var(--msu-ratio, 2/3);
	overflow: hidden;
	color: inherit;
	text-decoration: none !important;
	border: 0 !important;
}
a.msu-frame { cursor: var(--msu-cursor, pointer); }
a.msu-frame * { cursor: inherit; }
.msu-a-top    { justify-content: flex-start; }
.msu-a-middle { justify-content: center; }
.msu-a-bottom { justify-content: flex-end; }

.msu-box {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	flex: none;
}
.msu-box > img,
.msu-box > video,
.msu-hover > img,
.msu-hover > video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
	object-position: center top;
}
.msu-hover > img, .msu-hover > video { object-fit: cover; object-position: center top; } /* Hover-Bild füllt die Fläche */
.msu-fit-cover .msu-box > img,
.msu-fit-cover .msu-box > video { object-fit: cover; object-position: center; }

/* Farbflächen */
.msu-fill {
	position: absolute;
	inset: 0;
	display: flex;
}
.msu-text {
	hyphens: auto;
	-webkit-hyphens: auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: var(--msu-tpad, 8px);
	box-sizing: border-box;
	overflow: hidden;
}
.msu-v-top    { justify-content: flex-start; }
.msu-v-middle { justify-content: center; }
.msu-v-bottom { justify-content: flex-end; }
.msu-text p { margin: 0 0 .5em; }
.msu-text p:last-child { margin-bottom: 0; }

/* Hover */
.msu-hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--msu-tr, .3s) ease;
	pointer-events: none;
	z-index: 2;
}
.msu-frame:hover .msu-hover,
.msu-frame:focus-visible .msu-hover,
.msu-tile.is-active .msu-hover { opacity: 1; }
