/* Media page shortcode */

.wte-media-page {
	--wte-media-teal: #008880;
	--wte-media-gold: #c9a227;
	--wte-media-muted: #8a9a9a;
	--wte-media-text: #3a5555;
	--wte-media-radius: 16px;

	/* Shell matches header; content below stays narrower */
	width: min(100% - 40px, var(--wte-container, 1180px));
	margin: 2.75rem auto 4.5rem;
	padding: 0 0 2.5rem;
	box-sizing: border-box;
	font-family: "Libre Franklin", "Segoe UI", Tahoma, sans-serif;
	color: var(--wte-media-text);
}

.wte-media-page *,
.wte-media-page *::before,
.wte-media-page *::after {
	box-sizing: border-box;
}

.wte-media-page > *:not(.wte-media-hero) {
	width: min(100%, 1100px);
	margin-left: auto;
	margin-right: auto;
}

/* Hero — same width as header */
.wte-media-hero {
	width: 100%;
	margin: 0 0 2.75rem;
}

.wte-media-hero__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: clamp(180px, 26vw, 260px);
	border-radius: var(--wte-media-radius);
	overflow: hidden;
	background: #1a3a3a;
	box-shadow: 0 8px 28px rgba(0, 40, 40, 0.16);
}

.wte-media-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wte-media-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.18) 100%);
	z-index: 1;
	pointer-events: none;
}

.wte-media-hero__title {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	color: #fff;
	font-size: clamp(1.45rem, 3.8vw, 2.5rem);
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.1;
	text-transform: uppercase;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
	text-align: left;
}

.wte-media-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.35rem;
	margin-top: 0.25rem;
}

.wte-media-card {
	margin: 0;
	padding: 0 0 1rem;
	border: 2px solid rgba(0, 136, 128, 0.4);
	border-radius: 30px;
	overflow: hidden;
	background: #fff;
}

.wte-media-card__media {
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	line-height: 0;
	background: #d9e8e8;
}

.wte-media-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.wte-media-card:hover .wte-media-card__media img {
	transform: scale(1.04);
}

.wte-media-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	margin: 0;
	padding: 0.85rem 1rem 0.15rem;
	text-align: left;
}

.wte-media-card__date {
	color: var(--wte-media-gold);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wte-media-card__caption {
	margin: 0;
	color: var(--wte-media-teal);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wte-media-cta {
	display: flex;
	justify-content: center;
	margin-top: 2.75rem;
}

.wte-media-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	background: var(--wte-media-teal);
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wte-media-btn:hover {
	background: #006f69;
	transform: translateY(-1px);
	color: #fff !important;
}

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

@media (max-width: 700px) {
	.wte-media-page {
		width: min(100% - 32px, var(--wte-container, 1180px));
		padding: 0 0 2rem;
		margin-top: 2rem;
		margin-bottom: 3.5rem;
	}

	.wte-media-hero {
		margin-bottom: 2rem;
	}

	.wte-media-hero__title {
		font-size: clamp(1.3rem, 7vw, 1.9rem);
	}

	.wte-media-grid {
		grid-template-columns: 1fr;
		gap: 1.1rem;
	}

	.wte-media-cta {
		margin-top: 2rem;
	}
}
