/* --------------------------------------------|
|                                              |
|  Component (Teaser) Matrix (with images)     |
|                                              |
|-------------------------------------------- */

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

@media (min-width: 700px) {
	.matrix-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.matrix-item {
	position: relative;
	transition: box-shadow 0.3s;
}

.matrix-imgwrap {
	position: relative;
	overflow: hidden;
}

.matrix-imgwrap img {
	width: 100%;
	display: block;
	transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), filter 0.3s;
	backface-visibility: hidden;
}

.matrix-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(51, 51, 51, 0.3);
	color: #fff;
	padding: 10px;
	transition: background 0.3s cubic-bezier(0.4, 2, 0.6, 1);
	pointer-events: none;
	z-index: 2;
	text-align: center;
    font-size:24px;
}

.matrix-item a,
.matrix-item a:visited {
	color: inherit;
	text-decoration: none;
	display: block;
	height: 100%;
}

.matrix-item:hover .matrix-imgwrap img,
.matrix-item:focus-within .matrix-imgwrap img {
	transform: scale(1.055);
	filter: brightness(1.08);
}

.matrix-item:hover .matrix-caption,
.matrix-item:focus-within .matrix-caption {
	background: rgba(0, 0, 0, 0.8);
}

.item--matrix {
    padding:0;
    border-bottom: none;
}
