/* ==========================================================================
   Press & Media Manager — front-end styles
   ========================================================================== */

/* ---------- Homepage carousel ---------- */
.pmm-carousel-section {
	text-align: center;
	padding: 48px 20px;
}

.pmm-carousel-wrap {
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.pmm-carousel-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	position: static !important;
	float: none !important;
	column-count: initial !important;
	width: max-content;
	animation: pmm-scroll 40s linear infinite;
	will-change: transform;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.pmm-carousel-track:hover {
	animation-play-state: paused;
}

.pmm-logo-row {
	display: flex !important;
	flex-wrap: nowrap !important;
	flex-shrink: 0;
	position: static !important;
	float: none !important;
	column-count: initial !important;
	align-items: center;
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.pmm-logo-item {
	flex: 0 0 204px;
	width: 204px;
	box-sizing: border-box;
	position: static !important;
	float: none !important;
	display: flex !important;
	padding: 0 32px;
	align-items: center;
	justify-content: center;
	height: 60px;
	overflow: hidden;
}

.pmm-logo-item img {
	max-height: 36px;
	max-width: 140px;
	width: auto;
	height: auto;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

@media (max-width: 560px) {
	.pmm-logo-item {
		flex-basis: 136px;
		width: 136px;
		padding: 0 18px;
	}
	.pmm-logo-item img {
		max-height: 28px;
		max-width: 100px;
	}
}

@keyframes pmm-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.pmm-carousel-cta {
	margin-top: 28px;
}

.pmm-carousel-cta a {
	color: #c8862a;
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Press & Media grid page ---------- */
.pmm-grid-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 12px 48px;
	text-align: center;
}

.pmm-stats-bar {
	display: flex;
	justify-content: center;
	background: #2b1810;
	border-radius: 12px;
	padding: 28px 10px;
	margin-bottom: 40px;
}

.pmm-stat {
	flex: 1;
	color: #fff;
	padding: 0 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.pmm-stat:last-child {
	border-right: none;
}

.pmm-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #e0a63e;
}

.pmm-stat-label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #cbb89a;
	margin-top: 4px;
}

.pmm-grid {
	display: grid;
	grid-template-columns: repeat(var(--pmm-columns, 4), 1fr);
	gap: 20px;
	text-align: left;
}

.pmm-card {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 24px;
	background: #fff9f2;
	display: flex;
	flex-direction: column;
}

.pmm-card-logo {
	margin-bottom: 16px;
	height: 40px;
	display: flex;
	align-items: center;
}

.pmm-card-logo img {
	max-height: 36px;
	max-width: 100%;
	object-fit: contain;
}

.pmm-card-logo-fallback {
	font-weight: 700;
}

.pmm-card-text {
	font-size: 14px;
	color: #333;
	line-height: 1.5;
	flex: 1;
	margin-bottom: 16px;
}

.pmm-card-text p:first-child {
	margin-top: 0;
}

.pmm-card-link {
	color: #c8862a;
	font-weight: 600;
	text-decoration: none;
}

.pmm-card-link:hover {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.pmm-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.pmm-grid {
		grid-template-columns: 1fr;
	}
	.pmm-stats-bar {
		flex-direction: column;
		gap: 16px;
	}
	.pmm-stat {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
		padding-bottom: 16px;
	}
	.pmm-stat:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}
}

/* ---------- Theme-specific width fix ----------
   Your theme wraps page content in a Bootstrap-style column
   (.col-lg-10.offset-lg-1) that narrows it to ~83% width and centers
   it — that's what creates the wide side margins. This rule only
   neutralizes that wrapper when it contains our carousel or grid, so
   no other page or content on the site is affected. */
.col-lg-10.offset-lg-1:has(.pmm-grid-section),
.col-lg-10.offset-lg-1:has(.pmm-carousel-section) {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
}
