.mcg-gallery {
	--mcg-ink: #3a3029;
	--mcg-muted: #75695d;
	--mcg-paper: #fffaf2;
	--mcg-cream: #f4efe7;
	--mcg-rose: #a85c4e;
	--mcg-rose-dark: #914b40;
	--mcg-olive: #31483d;
	--mcg-gold: #d6a647;
	--mcg-border: #e2d7c8;
	background-color: var(--mcg-cream);
	background-image: radial-gradient(circle at 10% 5%, rgba(214, 166, 71, .12), transparent 22rem), radial-gradient(circle at 95% 36%, rgba(168, 92, 78, .08), transparent 24rem);
	border-radius: 26px;
	box-sizing: border-box;
	color: var(--mcg-ink);
	font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
	margin: 24px auto;
	max-width: 1380px;
	padding: clamp(22px, 5vw, 58px);
}

.mcg-gallery *,
.mcg-gallery *::before,
.mcg-gallery *::after {
	box-sizing: border-box;
}

.mcg-gallery-header {
	margin: 0 auto 34px;
	max-width: 780px;
	text-align: center;
}

.mcg-gallery-eyebrow {
	color: var(--mcg-rose);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	margin: 0 0 11px;
	text-transform: uppercase;
}

.mcg-gallery-header h2 {
	color: var(--mcg-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 6vw, 68px);
	font-weight: 400;
	letter-spacing: -.05em;
	line-height: 1;
	margin: 0;
}

.mcg-gallery-description {
	color: var(--mcg-muted);
	font-size: 15px;
	line-height: 1.8;
	margin: 18px auto 0;
	max-width: 680px;
}

.mcg-gallery-description > :last-child {
	margin-bottom: 0;
}

.mcg-gallery-grid {
	display: grid;
	gap: clamp(10px, 1.5vw, 20px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mcg-gallery-item {
	aspect-ratio: 4 / 3;
	background: #e8dfd2;
	border: 1px solid rgba(58, 48, 41, .1);
	border-radius: 18px;
	cursor: zoom-in;
	display: block;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

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

.mcg-gallery-item:hover img,
.mcg-gallery-item:focus-visible img {
	transform: scale(1.045);
}

.mcg-gallery-item:focus-visible {
	outline: 3px solid var(--mcg-gold);
	outline-offset: 3px;
}

.mcg-gallery-item-icon {
	align-items: center;
	background: rgba(49, 72, 61, .88);
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 50%;
	color: #fffaf2;
	display: flex;
	font-size: 16px;
	height: 38px;
	justify-content: center;
	opacity: 0;
	position: absolute;
	right: 14px;
	top: 14px;
	transform: translateY(4px);
	transition: opacity .2s ease, transform .2s ease;
	width: 38px;
}

.mcg-gallery-item:hover .mcg-gallery-item-icon,
.mcg-gallery-item:focus-visible .mcg-gallery-item-icon {
	opacity: 1;
	transform: translateY(0);
}

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

body.mcg-lightbox-open {
	overflow: hidden;
}

.mcg-lightbox {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 100000;
}

.mcg-lightbox-backdrop {
	background: rgba(24, 28, 25, .88);
	border: 0;
	cursor: default;
	inset: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}

.mcg-lightbox-dialog {
	align-items: center;
	display: flex;
	justify-content: center;
	max-height: calc(100vh - 48px);
	max-width: min(1200px, 100%);
	position: relative;
	width: 100%;
	z-index: 1;
}

.mcg-lightbox-figure {
	align-items: center;
	display: flex;
	flex-direction: column;
	margin: 0;
	max-height: calc(100vh - 70px);
	max-width: calc(100% - 116px);
}

.mcg-lightbox-image {
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 10px;
	display: block;
	height: auto;
	max-height: calc(100vh - 120px);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.mcg-lightbox-caption {
	color: #fffaf2;
	font-size: 13px;
	line-height: 1.5;
	margin-top: 12px;
	text-align: center;
}

.mcg-lightbox-close,
.mcg-lightbox-nav {
	align-items: center;
	background: rgba(255, 250, 242, .13);
	border: 1px solid rgba(255, 250, 242, .36);
	border-radius: 50%;
	color: #fffaf2;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	justify-content: center;
	padding: 0;
	position: absolute;
	transition: background .2s ease, transform .2s ease;
}

.mcg-lightbox-close:hover,
.mcg-lightbox-nav:hover,
.mcg-lightbox-close:focus-visible,
.mcg-lightbox-nav:focus-visible {
	background: rgba(255, 250, 242, .28);
	outline: 2px solid var(--mcg-gold);
	outline-offset: 2px;
}

.mcg-lightbox-close {
	font-size: 30px;
	height: 44px;
	right: 0;
	top: -58px;
	width: 44px;
}

.mcg-lightbox-nav {
	font-size: 37px;
	height: 48px;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	z-index: 2;
	pointer-events: auto;
	touch-action: manipulation;
}

.mcg-lightbox-nav[hidden] {
	display: none !important;
}

.mcg-lightbox-prev {
	left: 0;
}

.mcg-lightbox-next {
	right: 0;
}

.mcg-lightbox-count {
	bottom: -28px;
	color: rgba(255, 250, 242, .75);
	font-size: 11px;
	left: 50%;
	margin: 0;
	position: absolute;
	transform: translateX(-50%);
}

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

@media (max-width: 560px) {
	.mcg-gallery {
		border-radius: 18px;
		padding: 24px 16px;
	}

	.mcg-gallery-header {
		margin-bottom: 22px;
	}

	.mcg-gallery-grid {
		gap: 9px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mcg-gallery-item {
		border-radius: 12px;
	}

	.mcg-gallery-item-icon {
		height: 30px;
		opacity: 1;
		right: 8px;
		top: 8px;
		transform: none;
		width: 30px;
	}

	.mcg-lightbox {
		padding: 12px;
	}

	.mcg-lightbox-dialog {
		max-height: calc(100vh - 24px);
	}

	.mcg-lightbox-figure {
		max-height: calc(100vh - 42px);
		max-width: calc(100% - 78px);
	}

	.mcg-lightbox-image {
		max-height: calc(100vh - 100px);
	}

	.mcg-lightbox-close {
		height: 40px;
		right: -2px;
		top: -48px;
		width: 40px;
	}

	.mcg-lightbox-nav {
		height: 38px;
		width: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcg-gallery-item img,
	.mcg-gallery-item-icon,
	.mcg-lightbox-close,
	.mcg-lightbox-nav {
		transition: none;
	}
}
