/*-- 
	Updated CSS for redesigned Body.
	Shared between:
	- Breakdown Services
	- Breakdown Express
--*/

:root {
	--bd-tile-gap: 8px;
}

/* --BODY-- */
.bd-tile-section {
	width: 100%;
	max-width: 100%;
	padding: 0 8px;
	background-color: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: var(--bd-tile-gap);
}

.bd-tile-frame {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	flex: 1 0 200px;
}

.bd-tile-frame::before {
	height: 100%;
	width: 100%;
	content: "";
	display: block;
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	z-index: 1;
	pointer-events: none;
	-webkit-filter: blur(5px);
	-moz-filter: blur(5px);
	-o-filter: blur(5px);
	-ms-filter: blur(5px);
	filter: blur(5px);
	overflow: hidden;
	background-image: inherit;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	background-origin: border-box;
}

.bd-tile-frame-content {
	z-index: 2;
	position: absolute;
	border: 1px solid #FFFFFF;
	outline: 8px rgba(0, 0, 0, 0.25) solid;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: inherit;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	background-origin: border-box;
}

.bd-tile-image-casting {
	background-image: url('/global/assets/images/tile-casting@2x.jpg');
}

.bd-tile-image-filmmakers {
	background-image: url('/global/assets/images/tile-filmmakers@2x.jpg');
}

.bd-tile-image-studios {
	background-image: url('/global/assets/images/tile-studios@2x.jpg');
}

.bd-tile-image-representatives {
	background-image: url('/global/assets/images/tile-representatives@2x.jpg');
}

.bd-tile-image-actors {
	background-image: url('/global/assets/images/tile-actors@2x.jpg');
}

.bd-tile-image-post {
	background-image: url('/global/assets/images/tile-post@2x.jpg');
}

.bd-tile-image-services {
	background-image: url('/global/assets/images/tile-services@2x.jpg');
}

.bd-tile-frame.bd-tile-breakdown-services {
	background-image: none;
	flex: 0 0 400px;
}

.bd-tile-link {
	width: 100%;
	height: 75px;
	padding: 0 8px;
	background: #FFFFFF;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 26px;
	letter-spacing: 1px;
	color: #000000;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	margin: 0;
}

.bd-tile-breakdown-services {
	background-color: initial;
	padding: 40px;
	align-items: baseline;
	border: none;
	position: relative;
}

.bd-tile-breakdown-services::before {
	border: none;
}

.bd-tile-text-breakdown {
	z-index: 1;
	font-family: 'Open Sans', sans-serif;
	letter-spacing: 0.5px;
	color: #FFFFFF;
}

.bd-tile-vertical-logo {
	height: calc(100% - 40px);
	position: absolute;
	left: 20px;
	top: 20px;
	bottom: 20px;
	z-index: 1;
}

/* -- TABLET PORTRAIT -- */
@media only screen and (min-width: 688px) {
	.bd-tile-section {
		height: 1000px;
		padding: 0;
		flex-wrap: wrap;
	}

	.bd-tile-frame {
		width: calc((100% - var(--bd-tile-gap)) / 2);
	}
}

/* -- TABLET LANDSCAPE -- */
@media only screen and (min-width: 977px) {
	.bd-tile-section {
		height: 600px;
	}

	.bd-tile-frame {
		width: calc((100% - (var(--bd-tile-gap) * 2)) / 3);
	}

	.bd-tile-frame:nth-of-type(n+4):nth-of-type(-n+5) {
		flex: 0 1 25%;
	}

	.bd-tile-frame:nth-of-type(6) {
		flex: auto;
	}
}

/* -- DESKTOP VIEW -- */
@media only screen and (min-width: 1265px) {
	.bd-tile-section {
		height: calc(100vw / 2.4);
	}

	.bd-tile-frame,
	.bd-tile-frame:nth-of-type(n+4):nth-of-type(-n+5) {
		flex: 1 0 30%;
		width: calc((100% - (var(--bd-tile-gap) * 3)) / 4);
		aspect-ratio: 2.5 / 1;
	}

	.bd-tile-frame:nth-of-type(6) {
		flex: 1 0 100%;
	}
}


/* -- FONT STYLES -- */
@media screen and 
(min-width: 688px) and (max-width: 964px) {
	.bd-tile-text-breakdown {
		font-size: 10px;
		line-height: 20px;
	}
}

@media screen and 
(min-width: 800px) and (max-width: 1224px),
(min-width: 320px) and (max-width: 687px) {
	.bd-tile-text-breakdown {
		font-size: 12px;
		line-height: 24px;
	}
}

@media screen and 
(min-width: 1224px) and (max-width: 1356px),
(min-width: 330px) and (max-width: 376px) {
	.bd-tile-text-breakdown {
		font-size: 14px;
		line-height: 28px;
	}
}

@media screen and 
(min-width: 1356px) and (max-width: 1484px),
(min-width: 416px) and (max-width: 532px) {
	.bd-tile-text-breakdown {
		font-size: 16px;
		line-height: 32px;
	}
}

@media screen and 
(min-width: 1484px) and (max-width: 1662px),
(min-width: 480px) and (max-width: 687px) {
	.bd-tile-text-breakdown {
		font-size: 18px;
		line-height: 36px;
	}
}

@media screen and 
(min-width: 1662px) and (max-width: 1767px) {
	.bd-tile-text-breakdown {
		font-size: 20px;
		line-height: 40px;
	}
}

@media screen and 
(min-width: 1767px) and (max-width: 1882px) {
	.bd-tile-text-breakdown {
		font-size: 22px;
		line-height: 44px;
	}
}

@media screen and (min-width: 1882px) {
	.bd-tile-text-breakdown {
		font-size: 24px;
		line-height: 48px;
	}
}