/* =========================
   PROJECT HERO + TITLE BAR
========================= */
#main > div.project-hero-full {
	padding: 0 !important;
	border-top: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 90rem;
}
#main > div.project-title-bar {
	padding: 0;
}

.project-hero-full {
	overflow: hidden;
}

.project-hero-full a {
	display: block;
	border-bottom: none;
}

.project-hero-full img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease;
}

.project-hero-full a:hover img {
	transform: scale(1.02);
}

#main header.project-title-bar {
	background-color: rgb(20 20 20);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center !important;
}

#main header.project-title-bar h1 {
	margin: 0 0 0.5rem 0;
	color: #ffffff;
	text-align: center !important;
}

#main header.project-title-bar .project-title-bar-subtitle {
	margin: 0 0 0.75rem 0;
	color: rgba(255, 255, 255, 0.9);
	text-align: center !important;
}

/* =========================
   PAGINATION
========================= */

#main > .project-pagination {
	padding: 2rem;
}

.project-pagination {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	margin-top: 4rem;
	border-top: solid 1px rgba(0, 0, 0, 0.1);
}

.project-pagination-prev,
.project-pagination-next {
	flex: 1 1 0;
}

.project-pagination-next {
	text-align: right;
}

.project-pagination a {
	text-decoration: none;
	border-bottom: 0;
}

.project-pagination a:hover {
	text-decoration: underline;
}

/* =========================
   YOUTUBE EMBED
========================= */
.video-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	margin: 2rem 0;
}

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

/* =========================
   GAME SECTIONS
========================= */

.game--black-mesa h1 {
	color: #ff6600;
}

.game-page-header {
	margin-bottom: 2rem;
	text-align: center;
}

.game-page-header__subtitle {
	margin: 0.5rem 0 0 0;
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.game-intro-block {
	margin: 0 0 4rem 0;
}

.facts-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 2rem 0;
}

.facts-label {
	line-height: 1.4;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-content: center;
}

.facts li {
	display: inline-flex;
	align-items: center;

	padding: 0.45rem 0.75rem;

	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);

	font-size: 0.8rem;
	line-height: 1.4;
	white-space: nowrap;
}

.facts li strong {
	margin-right: 0.25rem;
	font-size: inherit;
	line-height: inherit;
}

.facts-icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	margin-left: 0.5rem;
	object-fit: contain;
	flex: 0 0 auto;
}

.game-summary-box {
	border: 1px solid rgba(33, 41, 49, 0.2);
	padding: 2rem;
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
}

.game-summary-box > header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.game-summary-box > header h3 {
	margin-bottom: 0;
}

.game-summary-box p {
	margin-bottom: 1.5rem;
}

.game-summary-box .actions {
	margin-bottom: 0;
}

.game-summary-box .image.fit {
	margin-bottom: 0;
}

@media screen and (min-width: 1680px) {
	.game-summary-content {
		display: flex;
		flex-direction: column;
		min-height: 100%;
	}

	.game-summary-content h3 {
		margin-top: 0;
	}

	.game-summary-content .actions {
		margin-top: auto;
		margin-bottom: 0;
	}
}

.game-card {
	text-align: center;
	padding: 0;
	background: transparent;
	border: 0;
}

.game-card__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto 1rem auto;
}

.game-card a {
	display: block;
}

.game-card__image {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.game-card a:hover .game-card__image {
	transform: scale(1.02);
	opacity: 0.95;
}

.game-links {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.game-card__links {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

@media screen and (max-width: 1680px) {
	.game-summary {
		grid-template-columns: 1fr;
	}

	.game-summary__side {
		max-width: 16rem;
	}
	
	.game-summary-box .image {
		max-width: 16rem;
		margin: 0 auto;
	}
}
/* =========================
   MEDIA PAGE
========================= */
.media-posts article {
	padding: 2rem; /* match your tighter grid */
}

.media-posts .video-embed {
	margin-bottom: 1rem;
}

.media-posts h2 {
	margin: 0 0 0.5rem 0;
	font-size: 1.3rem;
	line-height: 1.2;
}

/* =========================
   PORTFOLIO GALLERY
========================= */

/* Ensure the container clips the zoom */
.portfolio-gallery .image.fit {
	display: block;
	overflow: hidden;
}

/* Smooth animation */
.portfolio-gallery .image.fit img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

/* Zoom on hover */
.portfolio-gallery .gallery-item a:hover img {
	transform: scale(1.02);
}

/* =========================
   PROJECT SINGLE IMAGES
========================= */
.project-inline-image {
	overflow: hidden;
}

.project-inline-image a {
	display: block;
	overflow: hidden;
}

.project-inline-image img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease;
}

.project-inline-image a:hover img {
	transform: scale(1.04);
}

.project-inline-image-caption {
	margin: 0.75rem 0 0 0;
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.8;
}

/* =========================
   HOMEPAGE
========================= */

.portfolio-home-intro__copy {
	max-width: 58rem;
	margin: 0 auto 2rem auto;
	text-align: center;
}

.portfolio-home-intro__copy .actions {
	justify-content: center;
}

.portfolio-home-facts {
	gap: 1rem;
	max-width: 70rem;
	margin: 0 auto;
}

.portfolio-home-games {
	margin-top: 3rem;
}

.game-overview-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.game-overview-card {
	display: block;
	position: relative;
	border-bottom: 0;
	overflow: hidden;
	background: #212931;
}

.game-overview-card img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.game-overview-card span {
	display: block;
	padding: 1rem;
	background: #ffffff;
	color: #212931;
	font-family: "Lexend", Helvetica, sans-serif;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.075em;
}

.game-overview-card:hover img {
	transform: scale(1.03);
	opacity: 0.85;
}

.game-overview-card:hover span {
	background: #009966;
}

/* =========================
   BASE ICON STYLE
========================= */

.button.icon-img {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.button.icon-img::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* =========================
   PER-ICON OVERRIDES
========================= */

.icon-rp::before {
	background-image: url('/images/icons/rp-icon.png');
}

.icon-bms::before {
	background-image: url('/images/icons/bms-icon.png');
}