
:root {
	--mg-c-green: #85c441;
	--mg-c-dark: #0f3f2e;
	--mg-c-text: #31453b;
	--mg-c-muted: #6b7e74;
	--mg-c-soft: #f7faf4;
	--mg-c-soft2: #eef5e8;
	--mg-c-line: #e2ebde;
	--mg-c-white: #fff;
	--mg-c-shadow: 0 16px 38px rgba(15,63,46,.07);
}

.mg-content-page {
	background: #fff;
	color: var(--mg-c-text);
}

.mg-content-container,
.mg-article-container {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.mg-content-hero,
.mg-article-hero {
	padding: 34px 0 58px;
	border-bottom: 1px solid var(--mg-c-line);
	background: linear-gradient(135deg, #f8fbf5, #eef5e8);
}

.mg-content-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 44px;
	color: var(--mg-c-muted);
	font-size: 13px;
}

.mg-content-breadcrumbs a {
	color: var(--mg-c-dark);
	text-decoration: none;
}

.mg-content-eyebrow {
	display: block;
	margin-bottom: 12px;
	color: #6da82d;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
}

.mg-content-hero h1,
.mg-article-hero h1 {
	max-width: 900px;
	margin: 0;
	color: var(--mg-c-dark);
	font-size: clamp(40px, 6vw, 66px);
	line-height: 1.04;
	letter-spacing: -.035em;
}

.mg-content-hero__body > p {
	max-width: 700px;
	margin: 20px 0 0;
	color: #52675c;
	font-size: 18px;
	line-height: 1.65;
}

.mg-content-main {
	padding: 58px 0 84px;
}

.mg-blog-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 32px;
}

.mg-blog-categories a {
	padding: 9px 14px;
	border: 1px solid var(--mg-c-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mg-c-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.mg-blog-categories a:hover,
.mg-blog-categories a.is-active {
	border-color: #b9da96;
	background: var(--mg-c-soft2);
}

.mg-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.mg-blog-card {
	overflow: hidden;
	border: 1px solid var(--mg-c-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--mg-c-shadow);
}

.mg-blog-card__image {
	display: block;
	height: 245px;
	overflow: hidden;
	background: var(--mg-c-soft);
}

.mg-blog-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.mg-blog-card:hover .mg-blog-card__image img {
	transform: scale(1.035);
}

.mg-blog-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--mg-c-dark);
	font-weight: 900;
}

.mg-blog-card__body {
	padding: 21px;
}

.mg-blog-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--mg-c-muted);
	font-size: 11px;
}

.mg-blog-card__meta span {
	padding: 4px 7px;
	border-radius: 5px;
	background: var(--mg-c-soft2);
	color: var(--mg-c-dark);
}

.mg-blog-card h2 {
	margin: 0 0 11px;
	font-size: 21px;
	line-height: 1.25;
}

.mg-blog-card h2 a {
	color: var(--mg-c-dark);
	text-decoration: none;
}

.mg-blog-card__excerpt {
	min-height: 66px;
	margin-bottom: 16px;
	color: var(--mg-c-muted);
	font-size: 14px;
	line-height: 1.55;
}

.mg-blog-card__more {
	color: #659f29;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
}

.mg-pagination {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 42px;
}

.mg-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	border: 1px solid var(--mg-c-line);
	border-radius: 9px;
	color: var(--mg-c-dark);
	text-decoration: none;
}

.mg-pagination .current {
	border-color: var(--mg-c-green);
	background: var(--mg-c-green);
	color: #fff;
}

.mg-content-empty {
	padding: 48px;
	border-radius: 20px;
	background: var(--mg-c-soft);
	text-align: center;
}

.mg-gallery-intro {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 30px;
	margin-bottom: 30px;
}

.mg-gallery-intro h2,
.mg-gallery-note h2 {
	margin: 0 0 8px;
	color: var(--mg-c-dark);
	font-size: 30px;
}

.mg-gallery-intro p,
.mg-gallery-note p {
	max-width: 740px;
	margin: 0;
	color: var(--mg-c-muted);
	line-height: 1.6;
}

.mg-content-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 20px;
	border-radius: 10px;
	background: var(--mg-c-green);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
}

.mg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 18px;
}

.mg-gallery-card {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--mg-c-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--mg-c-shadow);
}

.mg-gallery-card--large {
	grid-column: span 2;
	grid-row: span 2;
}

.mg-gallery-card__button {
	position: relative;
	display: block;
	width: 100%;
	height: 340px;
	padding: 0;
	border: 0;
	background: var(--mg-c-soft);
	cursor: zoom-in;
	overflow: hidden;
}

.mg-gallery-card--large .mg-gallery-card__button {
	height: 100%;
	min-height: 698px;
}

.mg-gallery-card__button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.mg-gallery-card:hover img {
	transform: scale(1.025);
}

.mg-gallery-card__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,.94);
	color: var(--mg-c-dark);
	font-size: 23px;
	box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.mg-gallery-card figcaption {
	padding: 17px 18px 19px;
}

.mg-gallery-card figcaption strong,
.mg-gallery-card figcaption span {
	display: block;
}

.mg-gallery-card figcaption strong {
	margin-bottom: 5px;
	color: var(--mg-c-dark);
	font-size: 17px;
}

.mg-gallery-card figcaption span {
	color: var(--mg-c-muted);
	font-size: 13px;
	line-height: 1.5;
}

.mg-gallery-note {
	margin-top: 42px;
	padding: 28px 30px;
	border-radius: 18px;
	background: var(--mg-c-soft);
}

body.mg-gallery-modal-open {
	overflow: hidden;
}

.mg-gallery-lightbox[hidden] {
	display: none !important;
}

.mg-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(5,12,8,.9);
	backdrop-filter: blur(8px);
}

.mg-gallery-lightbox__dialog {
	position: relative;
	width: min(1180px, 96vw);
	max-height: 94vh;
}

.mg-gallery-lightbox__dialog img {
	display: block;
	max-width: 100%;
	max-height: 92vh;
	margin: 0 auto;
	border-radius: 15px;
	object-fit: contain;
}

.mg-gallery-lightbox__close {
	position: absolute;
	z-index: 3;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--mg-c-dark);
	font-size: 30px;
	cursor: pointer;
}

/* Single article */
.mg-article-meta {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	color: var(--mg-c-muted);
	font-size: 12px;
}

.mg-article-meta span {
	padding: 5px 8px;
	border-radius: 5px;
	background: var(--mg-c-soft2);
}

.mg-article-lead {
	max-width: 820px;
	margin: 20px 0 0;
	color: #52675c;
	font-size: 19px;
	line-height: 1.6;
}

.mg-article-cover {
	width: min(1180px, calc(100% - 48px));
	height: min(580px, 52vw);
	margin: 42px auto 0;
	overflow: hidden;
	border-radius: 22px;
}

.mg-article-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mg-article-content {
	max-width: 860px;
	padding-top: 52px;
	padding-bottom: 52px;
	font-size: 17px;
	line-height: 1.8;
}

.mg-article-content h2,
.mg-article-content h3 {
	color: var(--mg-c-dark);
}

.mg-article-content h2 {
	margin-top: 46px;
	font-size: 32px;
}

.mg-article-content h3 {
	margin-top: 30px;
	font-size: 23px;
}

.mg-article-content img {
	height: auto;
	border-radius: 14px;
}

.mg-article-back {
	padding-bottom: 70px;
}

@media (max-width: 900px) {
	.mg-blog-grid,
	.mg-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mg-gallery-card--large {
		grid-column: auto;
		grid-row: auto;
	}

	.mg-gallery-card--large .mg-gallery-card__button {
		height: 340px;
		min-height: 0;
	}
}

@media (max-width: 600px) {
	.mg-content-container,
	.mg-article-container,
	.mg-article-cover {
		width: calc(100% - 28px);
	}

	.mg-content-hero,
	.mg-article-hero {
		padding: 22px 0 42px;
	}

	.mg-content-breadcrumbs {
		margin-bottom: 30px;
	}

	.mg-content-main {
		padding: 42px 0 58px;
	}

	.mg-blog-grid,
	.mg-gallery-grid,
	.mg-gallery-intro {
		grid-template-columns: 1fr;
	}

	.mg-blog-card__image {
		height: 230px;
	}

	.mg-gallery-card__button,
	.mg-gallery-card--large .mg-gallery-card__button {
		height: 390px;
	}

	.mg-gallery-intro {
		align-items: start;
	}

	.mg-content-button {
		width: 100%;
	}

	.mg-article-cover {
		height: 340px;
		margin-top: 24px;
	}

	.mg-article-content {
		padding-top: 34px;
		font-size: 16px;
	}
}
