/* =====================================================
   LowPolygonTeam2 — Custom styles
   Layered on top of the Massively base theme
   ===================================================== */

/* Intro logo */
.lp2-logo-intro {
	max-width: 360px;
	width: 80%;
	margin: 0 auto 1.5rem;
	display: block;
}

/* Intro title image (artistic game name) */
.lp2-title-img {
	max-width: 600px;
	width: 65%;
	margin: 0 auto 1.5rem;
	display: block;
	mix-blend-mode: multiply;
}

/* Header nav logo image */
.lp2-header-logo {
	height: 4rem;
	width: auto;
	display: block;
	mix-blend-mode: multiply;
}

/* Remove the white box border from .logo and let the image breathe */
#header .logo {
	border: none !important;
	padding: 0 !important;
	line-height: 0;
}

#header .logo:hover {
	border: none !important;
}

/* Intro — panoramic hero background */
#intro {
	background-color: #ddeef5;
	background-image:
		linear-gradient(to bottom, transparent 40%, rgba(25, 35, 45, 0.9) 100%),
		url('../../images/3840x1240.png') !important;
	background-size: 100% auto, 100% auto !important;
	background-position: top center, top center !important;
	background-repeat: no-repeat, no-repeat !important;
}

/* Disable the Massively fade-out so the intro scrolls away naturally
   (keeps background visible until physically scrolled off screen) */
#intro.hidden {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	transition: none !important;
	pointer-events: auto !important;
}

/* Language selector in nav */
.lp2-lang-wrap {
	display: flex;
	align-items: center;
	padding: 0 0.25rem;
}

.lp2-lang-select {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 4px;
	color: inherit;
	font-size: 0.75rem;
	font-family: inherit;
	padding: 0.2rem 0.4rem;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: border-color 0.2s;
}

.lp2-lang-select:hover,
.lp2-lang-select:focus {
	border-color: rgba(255,255,255,0.5);
}

.lp2-lang-select option {
	background: #1d2731;
	color: #fff;
}

/* Feature icon block */
.lp2-feature-icon {
	font-size: 2.5rem;
	margin: 1rem 0;
	color: #f2849e; /* accent color from Massively */
	text-align: center;
}

/* Tech list inside feature card */
.lp2-tech-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
}

.lp2-tech-list li {
	padding: 0.25rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	font-size: 0.85rem;
	color: #c2cad4;
}

.lp2-tech-list li:last-child {
	border-bottom: none;
}

/* Videos section */
.lp2-videos {
	margin-top: 3rem;
	padding: 2rem 0;
}

.lp2-videos .major {
	text-align: center;
	margin-bottom: 2rem;
}

.lp2-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 1.5rem;
}

.lp2-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.08);
}

.lp2-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Screenshots gallery */
.lp2-screenshots {
	margin-top: 3rem;
	padding: 2rem 0;
}

.lp2-screenshots .major {
	text-align: center;
	margin-bottom: 2rem;
}

.lp2-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.lp2-gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.08);
	transition: transform 0.2s, border-color 0.2s;
}

.lp2-gallery-item:hover {
	transform: scale(1.02);
	border-color: rgba(242,132,158,0.5);
}

.lp2-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Keep featured article image at a reasonable max height */
.post.featured .image.main img {
	max-height: 500px;
	object-fit: cover;
	width: 100%;
}

/* Minimize attribution text size */
#copyright {
	font-size: 0.55rem !important;
}
@media (max-width: 736px) {
	.lp2-logo-intro {
		max-width: 260px;
	}

	.lp2-gallery {
		grid-template-columns: 1fr;
	}
}
