/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */

 .lvooe-post-tiles-widget {
	background-color: white;
	display: grid; 	
	gap: 2px;
}

.lvooe-post-tiles-grid-item {
	position: relative;
	background: black;	
	display: block;
}

/* Prefixed to win over Elementor's "img { height: auto }". */
.lvooe-post-tiles-grid-item .lvooe-post-tile-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lvooe-post-tile {
	position: relative;
	height: 100%;
	display: flex; 
	flex-direction: column;
	
	color: white;
	overflow: hidden;
}

.lvooe-post-tile:hover {
	color: #C3E7A3;
}

.lvooe-post-tile-spacer {
	flex-grow: 1;
}

.lvooe-post-tile-post-type {	
	align-self: flex-end;
	text-transform: uppercase;
	background: black;	
	box-decoration-break: clone;
	padding: 0.5em;
	margin-bottom: auto;
	color: white;
}

.lvooe-post-tile-content {
	display: flex; 
	flex-direction: column;
	padding: 0px 30px 30px 30px;
		
	background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 80%, rgba(0, 0, 0, 0) 100%);
}

.lvooe-post-tile-date {
	margin-bottom: -4px;
}

.lvooe-post-tile-verein {
	margin: -8px 0 8px;
	font-size: 0.85em;
	opacity: 0.85;
}

/* Tiles that size themselves (e.g. a paged list), instead of filling the height of the container. */

.lvooe-post-tiles-widget--auto {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Defaults; the Berichte widget overrides the columns with its responsive "Spalten" setting. */
@media (max-width: 1024px) {
	.lvooe-post-tiles-widget--auto {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.lvooe-post-tiles-widget--auto {
		grid-template-columns: minmax(0, 1fr);
	}
}

.lvooe-post-tiles-widget--auto .lvooe-post-tiles-grid-item {
	display: flex;
	flex-direction: column;
	/* A minimum: the tile grows if the text needs more space. */
	aspect-ratio: 4 / 3;
}

.lvooe-post-tiles-widget--auto .lvooe-post-tile {
	flex: 1 1 auto;
	height: auto;
}
