/* Home page, built on the product page sections of product.css. Classes are prefixed with hp-. */
.hp {
	padding-top: 40px;
}

/* The 2016 mobile styles cap every image at 90% of its container */
.hp img {
	max-width: 100%;
}

.hp .pp-eyebrow b {
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}

.hp-heroImage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1920 / 470;
	border: 1px solid var(--pp-surface-border);
	border-radius: var(--pp-radius);
	background: #000;
	box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}

	.hp-heroImage img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 57% 30%;
	}

/* Facts strip under the hero */
.hp-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

	.hp-facts li {
		margin: 0;
		padding: 22px 24px;
		border: 1px solid var(--pp-surface-border);
		border-radius: var(--pp-radius);
		background: var(--pp-tile);
	}

	.hp-facts strong {
		display: block;
		margin-bottom: 6px;
		font-size: 26px;
		font-weight: var(--font-weight-light);
		letter-spacing: -0.4px;
		color: var(--pp-title);
	}

		.hp-facts strong b {
			font-weight: var(--font-weight-bold);
		}

	.hp-facts span {
		font-size: 14.5px;
		line-height: 1.5;
		color: var(--pp-muted);
	}

/* Product chooser */
.hp-products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.hp-product {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 22px 20px;
	border: 1px solid var(--pp-surface-border);
	border-radius: var(--pp-radius);
	background: var(--pp-surface);
	transition: border-color 0.3s;
}

	.hp-product:hover {
		border-color: rgba(61, 184, 185, 0.45);
	}

.hp-productHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.hp-productHead .icon {
	width: 34px;
	height: 34px;
	color: var(--icon-color);
}

.hp-tag {
	padding: 3px 10px;
	border: 1px solid var(--pp-accent);
	border-radius: 999px;
	font-size: 12px;
	color: var(--pp-accent);
}

.hp-product h3 {
	margin: 0;
	font-size: 20px;
	font-weight: var(--font-weight-light);
	color: var(--pp-title);
}

	.hp-product h3 strong {
		font-weight: var(--font-weight-bold);
	}

.hp-product p {
	flex: 1;
	margin: 0;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--pp-muted);
}

.hp-product .pp-actions {
	gap: 4px 16px;
}

.hp .hp-product a.pp-link {
	font-size: 14px;
}

.hp-also {
	margin: 20px 2px 0;
	font-size: 14.5px;
	color: var(--pp-muted);
}

	.hp-also a {
		color: var(--pp-accent);
	}

/* Made with Ornatrix: productions first, as studios' trailers people know, then the community's work */
.hp-galleryHeading {
	margin: 30px 0 14px;
	font-size: 22px;
	font-weight: var(--font-weight-light);
	color: var(--pp-title);
}

	.hp-galleryHeading strong {
		font-weight: var(--font-weight-bold);
	}

	.hp-galleryHeading span {
		display: inline-block;
		margin-left: 14px;
		font-size: 14.5px;
		font-weight: var(--font-weight-normal);
		color: var(--pp-muted);
	}

.hp-productions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

	.hp-productions .hp-shot {
		aspect-ratio: 16 / 9;
	}

	.hp-productions .hp-shot figcaption {
		padding-top: 26px;
	}

.hp-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: -30px 0 0 -23px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background-color 0.2s, transform 0.2s;
}

	.hp-play svg {
		width: 20px;
		height: 20px;
		margin-left: 3px;
		fill: #fff;
	}

	.hp-shotImage:hover .hp-play {
		background: var(--primary-color);
		transform: scale(1.08);
	}

/* Made with Ornatrix: a mosaic of 16 cells for the first twelve shots (one large, one tall), so that no row is left half empty */
.hp-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 220px;
	grid-auto-flow: dense;
	gap: 12px;
}

	.hp-gallery:not(.hp-galleryOpen) .hp-shotMore {
		display: none;
	}

.hp-shot {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: var(--pp-radius);
	background: #000;
}

.hp-shotLarge {
	grid-column: span 2;
	grid-row: span 2;
}

.hp-shotTall {
	grid-row: span 2;
}

	.hp-shotImage {
		display: block;
		height: 100%;
	}

		.hp-shotImage img {
			display: block;
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: 50% 30%;
			transition: transform 0.6s ease;
		}

		.hp-shotImage:hover img {
			transform: scale(1.04);
		}

	/* The credit lies over the bottom of the picture; only its link takes clicks, the rest lets them through to the picture */
	.hp-shot figcaption {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 34px 14px 10px;
		background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78));
		font-size: 13px;
		line-height: 1.35;
		color: rgba(255, 255, 255, 0.82);
		pointer-events: none;
	}

		.hp .hp-shot figcaption a {
			color: rgba(255, 255, 255, 0.82);
			pointer-events: auto;
		}

			.hp .hp-shot figcaption a:hover {
				color: #fff;
				text-decoration: underline;
			}

.hp-shotTitle {
	display: block;
	overflow: hidden;
	font-weight: var(--font-weight-bold);
	color: #fff;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hp-galleryActions {
	align-items: center;
	margin-top: 22px;
}

.hp-galleryShare {
	margin: 0;
	font-size: 14.5px;
	color: var(--pp-muted);
}

	.hp .hp-galleryShare a {
		color: var(--pp-accent);
	}

/* The full-size picture over the page, made by home.js */
.hp-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 10, 10, 0.94);
	color: rgba(255, 255, 255, 0.85);
}

	.hp-lightbox::backdrop {
		background: transparent;
	}

	.hp-lightbox figure {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 14px;
		box-sizing: border-box;
		height: 100%;
		margin: 0;
		padding: 56px 76px 22px;
	}

	.hp-lightboxVideo {
		width: min(100%, calc((100vh - 150px) * 16 / 9));
		aspect-ratio: 16 / 9;
	}

		.hp-lightboxVideo iframe {
			display: block;
			width: 100%;
			height: 100%;
			border: 0;
			border-radius: var(--pp-radius);
		}

	.hp-lightbox img {
		min-height: 0;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		border-radius: var(--pp-radius);
	}

	.hp-lightbox figcaption {
		font-size: 15px;
		text-align: center;
	}

		.hp-lightbox figcaption a {
			color: var(--primary-color);
		}

		.hp-lightbox .hp-shotTitle {
			display: inline;
			margin-right: 8px;
		}

/* Not buttons: the site styles every button with !important */
.hp-lightboxControl {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
}

	.hp-lightboxControl:hover {
		background: rgba(255, 255, 255, 0.22);
	}

	.hp-lightboxControl svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	/* A single production has nothing to step to */
	.hp-lightbox .hp-lightboxControl[hidden] {
		display: none;
	}

.hp-lightboxClose {
	top: 12px;
	right: 14px;
}

.hp-lightboxPrevious,
.hp-lightboxNext {
	top: 50%;
	margin-top: -22px;
}

.hp-lightboxPrevious {
	left: 14px;
}

.hp-lightboxNext {
	right: 14px;
}

.hp-logosHead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin-bottom: 22px;
}

	.hp-logosHead h2 {
		margin: 0;
	}

/* News */
.hp-news {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.hp-newsItem {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pp-surface-border);
	border-radius: var(--pp-radius);
	background: var(--pp-surface);
	transition: border-color 0.3s;
}

	.hp-newsItem:hover {
		border-color: rgba(61, 184, 185, 0.45);
	}

	.hp-newsItem img {
		display: block;
		width: 100%;
		aspect-ratio: 3 / 2;
		object-fit: cover;
	}

		/* A product logo stands in for a post without a picture, and must not be cropped */
		.hp-newsItem img.hp-newsLogo {
			box-sizing: border-box;
			padding: 12%;
			object-fit: contain;
			background: var(--pp-tile);
		}

.hp-newsBody {
	padding: 16px 18px 20px;
}

	.hp-newsDate {
		display: block;
		margin-bottom: 6px;
		font-size: 13px;
		color: var(--text-color-light);
	}

	.hp-newsBody h3 {
		margin: 0 0 8px;
		font-size: 17px;
		font-weight: var(--font-weight-bold);
		line-height: 1.3;
		color: var(--pp-title);
	}

	.hp-newsBody p {
		display: -webkit-box;
		overflow: hidden;
		margin: 0;
		font-size: 14px;
		line-height: 1.5;
		color: var(--pp-muted);
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}

/* Site map above the existing footer bar */
.hp-siteMap {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0 10px 40px;
	padding: 34px 0 0;
	border-top: 1px solid var(--pp-surface-border);
}

	.hp-siteMap h4 {
		margin: 0 0 12px;
		font-size: 15px;
		font-weight: var(--font-weight-bold);
		color: var(--pp-heading);
	}

	.hp-siteMap ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.hp-siteMap li {
		margin: 0 0 8px;
		font-size: 14px;
	}

		.hp-siteMap li a {
			color: var(--pp-muted);
		}

			.hp-siteMap li a:hover {
				color: var(--pp-accent);
			}

	.hp-siteMap p {
		margin: 0 0 8px;
		font-size: 14px;
		line-height: 1.55;
		color: var(--pp-muted);
	}

.hp-siteMapBrand strong {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	color: var(--pp-heading);
}

@media screen and (max-width: 1100px) {
	.hp-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 1024px) {
	.hp-gallery,
	.hp-productions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hp-shotTall {
		grid-row: auto;
	}

	.hp-facts,
	.hp-news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hp-siteMap {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hp-siteMapBrand {
		grid-column: 1 / -1;
	}
}

/* 767.98px rather than 767px: with display scaling a window can be 767.5px wide, which neither these mobile rules nor the min-width: 768px desktop ones would match */
@media screen and (max-width: 767.98px) {
	.hp {
		padding-top: 20px;
	}

	/* The wide banner would be a thin strip on a phone, so it is cropped around the face instead */
	.hp-heroImage {
		aspect-ratio: 4 / 3;
	}

	.hp-products {
		grid-template-columns: minmax(0, 1fr);
	}

	.hp-facts li {
		padding: 18px;
	}

	.hp-facts strong {
		font-size: 21px;
	}

	.hp-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 170px;
		gap: 8px;
	}

	.hp-productions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

		/* A phone's tiles only have room for the title, the enlarged view shows the credit */
		.hp-productions .hp-shotCredit {
			display: none;
		}

	.hp-galleryHeading {
		margin-top: 22px;
		font-size: 19px;
	}

	.hp-play {
		width: 38px;
		height: 38px;
		margin: -24px 0 0 -19px;
	}

	.hp-shotTall {
		grid-row: span 2;
	}

	.hp-shot figcaption {
		padding: 26px 10px 8px;
		font-size: 12px;
	}

	.hp-lightbox figure {
		padding: 64px 12px 18px;
	}

	.hp-lightboxPrevious,
	.hp-lightboxNext {
		top: auto;
		bottom: 14px;
		margin-top: 0;
	}
}

@media screen and (max-width: 520px) {
	.hp-news {
		grid-template-columns: minmax(0, 1fr);
	}

	.hp-siteMap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
