/*
/*
	README

	Do NOT modify this file directly; a number of widgets depend on this file being as is.
	Use the CSS file that is associated with your widget
	(ie. template: widget_template_custom_my_widget.html, CSS: widget_template_custom_my_widget.css)
	to make any theme-ing or overwrites you need.

	If you need to make significant changes such that overwriting would be complicated
	consider not using a different component from the Core Collection Library or
	not using the Core Component Library altogether.

	If you still feel the need to edit this file, copy/paste this CSS into a different file
	and use that instead.
*/

.core-mosaic  {
	position: relative;
	--text-color: var(--primary-color-900);
	--bg-color: var(--primary-color-100);
	padding-top: var(--space-8);
	margin-bottom: var(--space-12);
}

.core-mosaic .mosaic-tiles-wrapper {
	display: grid;
	grid-auto-flow: dense;
	align-items: start;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	gap: 5px;
	padding: 0 15px;
}

.core-mosaic .mosaic-tile {
	position: relative;
	overflow: hidden;
}

.core-mosaic .mosaic-tile .mosaic-tile-inner .tile-info-wrapper {
	position: absolute;
	left: 0px;
	bottom: 0px;
	z-index: 2;
	background-color: var(--bg-color);
	min-width: 100px;
	max-width: 220px;
	padding: 4px 12px;
	pointer-events: none;
	transition: background-color 0.25s ease;
}
 
.core-mosaic .mosaic-tile .tile-img,
.core-mosaic .mosaic-tile .mosaic-tile-link {
	position: relative;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
} 

.core-mosaic .mosaic-tile .tile-img {
	object-fit: cover;
}

.core-mosaic .mosaic-tile .tile-title {
	color: var(--text-color);
	font-size: var(--text-2xl);
	font-weight: 700;
	transition: color 0.25s ease;
}

.mosaic-tile .mosaic-tile-inner {
	position: relative;
	/* padding-bottom: 100%; */
	width: 100%;
	/* height: 0; */
	overflow: hidden;
}

@media (hover: hover) {

}

@media screen and (min-width: 40em) {
	.core-mosaic .mosaic-tile .tile-img,
    .core-mosaic .mosaic-tile .mosaic-tile-link {
	    position: relative;
	   } 
}

@media (min-width: 64em) {
	.core-mosaic .mosaic-tiles-wrapper {
		grid-template-columns: 2fr 1fr;
		grid-template-columns: repeat(4, 1fr);
		padding: 0;
	}

	.mosaic-tile {
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.core-mosaic .mosaic-tile .tile-img {
		display: block;
		position: absolute;
		top: 50%;
		left: 50%;
		object-fit: cover;
		width: 105%;
		height: 105%;
		transform: translate(-50%, -50%);
	}

	.core-mosaic .mosaic-tile:nth-child(1),
	.core-mosaic .mosaic-tile:nth-child(4),
	.core-mosaic .mosaic-tile:nth-child(7) {
		grid-column: span 2;
		grid-row: span 2;
	}
	
	.core-mosaic .mosaic-tile .tile-title {
		font-size: var(--text-xl);
	}
}

@media (min-width: 64em) and (hover: hover) {
	.core-mosaic .mosaic-tile:hover .mosaic-tile-inner .mosaic-tile-link .tile-info-wrapper {
		background-color: var(--text-color);
	}
	
	.core-mosaic .mosaic-tile:hover .mosaic-tile-inner .mosaic-tile-link .tile-info-wrapper .tile-title {
		color: var(--bg-color);
	}
}

@media (min-width: 64em) {
	.core-mosaic .mosaic-tiles-wrapper {
		grid-template-columns: repeat(6, 1fr);
	}

	 .core-mosaic .mosaic-tile:nth-child(1) {
		grid-column:  span 3;
		grid-row: span 2;
	}

	.core-mosaic .mosaic-tile:nth-child(3) {
		grid-column:  5 / span 2;
		grid-row: span 2;
	}

	.core-mosaic .mosaic-tile:nth-child(4) {
		grid-column: span 3;
		grid-row: span 2;
	}

	.core-mosaic .mosaic-tile:nth-child(7) {
		grid-column: span 1;
		grid-row: span 1;
	}

	.core-mosaic .mosaic-tile {
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	} 


}
