/*
	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 .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: 1fr;
	grid-template-rows: 1fr;
	gap: 15px;
	padding: 0 15px;
}

.core-mosaic .mosaic-tile {
	position: relative;
	overflow: hidden;
}


.core-mosaic .mosaic-tile .slide-img,
.core-mosaic .mosaic-tile .mosaic-tile-link {
	position: absolute;
	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;
}


.core-mosaic .mosaic-tile:nth-child(1) .mosaic-tile-inner {
	padding-bottom: calc((534/640) * 100%);
}

.mosaic-tile .mosaic-tile-inner {
	position: relative;
	padding-bottom: calc((377/640) * 100%);
	width: 100%;
	height: 0;
	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 {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(2, 1fr);
		padding: 0 15px;
	}

	.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 {
		grid-column: span 2;
		grid-row: span 1;
	}

	.core-mosaic .mosaic-tile .mosaic-tile-inner,
	.core-mosaic .mosaic-tile:nth-child(1) .mosaic-tile-inner {
		padding-bottom: calc((100/200) * 100%);
	}
	
	.core-mosaic .mosaic-tile .tile-title {
		font-size: var(--text-xl);
	}
}

@media (min-width: 64em) {
	.core-mosaic .widget-header {
		margin-top: 60px;
		margin-bottom: 45px;
	}

	.core-mosaic .mosaic-tiles-wrapper {
		grid-template-columns: repeat(26, 1fr);
		grid-template-rows: repeat(12, 1fr);
		gap: 30px;
	}

	.core-mosaic .mosaic-tile:nth-child(1) {
		grid-column:  span 16;
		grid-row: span 12;
	}

	.core-mosaic .mosaic-tile:nth-child(2) {
		grid-column:  span 10;
		grid-row: span 6;
	}

	.core-mosaic .mosaic-tile:nth-child(3) {
		grid-column: span 5;
		grid-row: span 6;
	}

	.core-mosaic .mosaic-tile:nth-child(4) {
		grid-column: span 5;
		grid-row: span 6;
	}

	.core-mosaic .mosaic-tile {
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	} 

 	.core-mosaic .mosaic-tile:nth-child(1) .mosaic-tile-inner {
		padding-bottom: calc(100% * 12 / 16);
	}
	.core-mosaic .mosaic-tile:nth-child(2) .mosaic-tile-inner {
		padding-bottom: calc(100% * 6 / 10);
	}
	.core-mosaic .mosaic-tile:nth-child(3) .mosaic-tile-inner,
	.core-mosaic .mosaic-tile:nth-child(4) .mosaic-tile-inner {
		padding-bottom: calc(100% * 6/ 5);
	}


}

@media (min-width: 90em) {
	.core-mosaic .shared-play-button {
		right: unset;
		transform: translate(-50%, -50%);
		left: 50%;
		top: 50%;
	}
}
