/*
	README

	This file should only be used to style structure of the widget. It should not
	contain fonts or theme styling. Use the shared_theme.css for that purpose.

	If simply theming the CCL, leave this file alone.

	If your design is very customized, edit this file as needed. 
*/

.core-mosaic  {
	position: relative;
}

.core-mosaic .widget-header {
	margin-block-end: 34px;
}

.core-mosaic .shared-play-button {
	transform: unset;
	left: unset;
	top: 20px;
	right: 20px;
}

.core-mosaic .mosaic-tiles-wrapper {
	display: grid;
	grid-auto-flow: dense;
	align-items: start;
	grid-template-columns: repeat(2, 1fr);
	gap: 13px 10px;
	padding: 0 20px;
}

.core-mosaic .mosaic-tile {
	position: relative;
}

.core-mosaic .mosaic-tile .slide-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 .slide-img {
	object-fit: cover;
}

.core-mosaic .mosaic-tile .tile-title {
	transition: color 0.25s ease;
}

.mosaic-tile .mosaic-tile-inner {
	position: relative;
	width: 100%;
	height: 100%;
	/* overflow: hidden; */
}

.mosaic-tile .credits {
	bottom: initial;
	top: 0;
}

.mosaic-tile .credits.video {
	right: unset;
	left: 0;
}

@media (min-width: 40em) {
	.core-mosaic .mosaic-tiles-wrapper {
		padding: 0 20px;
	}

	.mosaic-tile {
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	}
/* 
	.core-mosaic .mosaic-tile .slide-img {
		display: block;
		position: absolute;
		top: 50%;
		left: 50%;
		object-fit: cover;
		width: 105%;
		height: 105%;
		transform: translate(-50%, -50%);
	} */
	
	.core-mosaic .mosaic-tile .tile-title {
		font-size: var(--text-xl);
	}
}

@media (min-width: 64em) {
	.core-mosaic .widget-header {
		max-width: 500px;
		margin-inline: 100px auto;
		margin-block-end: -120px;
	}

	.core-mosaic .mosaic-tiles-wrapper {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 35px;
		row-gap: 24px;
		width: calc(100% - 272px);
		margin-inline: auto 0;
		padding: 0;
	}

	.core-mosaic .mosaic-tile {
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.core-mosaic .mosaic-tile:nth-of-type(1) {
		grid-column: 2 / span 1;
		grid-row: 1 / 4;
	}

	.core-mosaic .mosaic-tile:nth-of-type(2) {
		grid-column: 3 / span 1;
		grid-row: 2 / 5;
	}

	.core-mosaic .mosaic-tile:nth-of-type(3) {
		grid-column: 1 / span 1;
		grid-row: 3 / 5;
	}

	.core-mosaic .mosaic-tile:nth-of-type(4) {
		grid-column: 2 / span 1;
		grid-row: 4 / 6;
	}
}

@media (min-width: 90em) {
	.core-mosaic .widget-header {
		margin-block-end: -195px;
	}

	.core-mosaic .mosaic-tiles-wrapper {
		column-gap: 70px;
		row-gap: 47px;
	}

	.core-mosaic .shared-play-button {
		right: unset;
		transform: translate(-50%, -50%);
		left: 50%;
		top: 50%;
	}
}
