.elite-gallery-page {
	background: #fff;
	padding: 40px 0 84px;
}

.elite-gallery-page .elite-container {
	width: min(1220px, calc(100% - 40px));
	margin: 0 auto;
}

.elite-gallery-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 88px);
	background: #071927;
	color: #fff;
}

.elite-gallery-hero::after {
	position: absolute;
	top: -180px;
	right: -120px;
	width: 430px;
	height: 430px;
	border: 1px solid rgba(200, 171, 111, .22);
	border-radius: 50%;
	content: "";
}

.elite-gallery-eyebrow {
	margin: 0 0 16px;
	color: #c8ab6f;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.elite-gallery-hero h1,
.elite-gallery-intro h2,
.elite-gallery-cta h2 {
	font-family: Georgia, "Times New Roman", serif;
}

.elite-gallery-hero h1 {
	max-width: 800px;
	margin: 0 0 22px;
	color: #fff;
	font-size: clamp(2.55rem, 6vw, 5rem);
	line-height: 1.02;
}

.elite-gallery-hero p {
	max-width: 820px;
	margin: 0;
	color: rgba(255, 255, 255, .84);
	font-size: 1.05rem;
	line-height: 1.75;
}

.elite-gallery-links {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.elite-gallery-links a {
	padding: 13px 17px;
	border: 1px solid rgba(255, 255, 255, .36);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease, color .2s ease;
}

.elite-gallery-links a:hover,
.elite-gallery-links a:focus-visible {
	background: #fff;
	color: #071927;
}

.elite-gallery-intro {
	padding: 68px 0 30px;
}

.elite-gallery-intro h2 {
	margin: 0 0 16px;
	color: #071927;
	font-size: clamp(2.2rem, 4vw, 3.7rem);
	line-height: 1.08;
}

.elite-gallery-intro > p:last-child {
	max-width: 760px;
	margin: 0;
	color: #4b5962;
	font-size: 1rem;
	line-height: 1.7;
}

.elite-gallery-plugin-wrap {
	padding-bottom: 70px;
}

.elite-gallery-cta {
	padding: clamp(42px, 6vw, 72px);
	background: #071927;
	color: #fff;
	text-align: center;
}

.elite-gallery-cta h2 {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(2.1rem, 4vw, 3.5rem);
	line-height: 1.1;
}

.elite-gallery-cta > p:not(.elite-gallery-eyebrow) {
	max-width: 720px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, .82);
	line-height: 1.7;
}

.elite-gallery-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.elite-gallery-actions a {
	padding: 15px 20px;
	border: 1px solid #c8ab6f;
	background: #c8ab6f;
	color: #071927;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
}

.elite-gallery-actions a + a {
	border-color: rgba(255, 255, 255, .5);
	background: transparent;
	color: #fff;
}

.elite-glass-gallery {
	--egg-navy: #071927;
	--egg-navy-soft: #17384c;
	--egg-gold: #c8ab6f;
	--egg-line: #d6dde0;
}

.elite-glass-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}

.elite-glass-gallery__filters button {
	appearance: none;
	border: 1px solid var(--egg-line);
	border-radius: 0;
	background: #fff;
	color: var(--egg-navy);
	cursor: pointer;
	font: inherit;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1;
	padding: 13px 16px;
	text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.elite-glass-gallery__filters button:hover,
.elite-glass-gallery__filters button:focus-visible,
.elite-glass-gallery__filters button.is-active {
	background: var(--egg-navy);
	border-color: var(--egg-navy);
	color: #fff;
}

.elite-glass-gallery__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 18px;
}

.elite-glass-gallery__card {
	position: relative;
	display: block;
	grid-column: span 4;
	min-height: 360px;
	overflow: hidden;
	background: var(--egg-navy);
	box-shadow: 0 12px 32px rgba(7, 25, 39, .12);
}

.elite-glass-gallery__card[hidden] {
	display: none !important;
}

.elite-glass-gallery__card.is-wide {
	grid-column: span 8;
}

.elite-glass-gallery__card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease, filter .5s ease;
}

.elite-glass-gallery__card:hover img,
.elite-glass-gallery__card:focus-visible img {
	transform: scale(1.035);
	filter: saturate(1.04);
}

.elite-glass-gallery__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 30px;
	background: linear-gradient(0deg, rgba(4, 14, 24, .9), rgba(4, 14, 24, .08) 70%);
	color: #fff;
}

.elite-glass-gallery__overlay .elite-eyebrow {
	margin: 0 0 8px;
	color: var(--egg-gold);
	font-size: .69rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.elite-glass-gallery__title {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	line-height: 1.08;
}

.elite-glass-gallery__description {
	margin-top: 8px;
	max-width: 620px;
	color: rgba(255, 255, 255, .9);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .07em;
	line-height: 1.55;
	text-transform: uppercase;
}

.elite-glass-gallery__grid[data-visible-count="1"] .elite-glass-gallery__card {
	grid-column: 1 / -1;
	min-height: 520px;
}

.elite-glass-gallery__grid[data-visible-count="2"] .elite-glass-gallery__card {
	grid-column: span 6;
	min-height: 420px;
}

.elite-glass-gallery__grid[data-visible-count="3"] {
	grid-auto-rows: 220px;
}

.elite-glass-gallery__grid[data-visible-count="3"] .elite-glass-gallery__card {
	grid-column: span 4;
	min-height: 0;
}

.elite-glass-gallery__grid[data-visible-count="3"] .elite-glass-gallery__card.is-featured {
	grid-column: span 8;
	grid-row: span 2;
}

.elite-glass-gallery__dialog {
	width: min(1100px, calc(100vw - 40px));
	max-width: none;
	padding: 0;
	border: 0;
	background: var(--egg-navy);
	color: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.elite-glass-gallery__dialog::backdrop {
	background: rgba(2, 10, 16, .88);
}

.elite-glass-gallery__dialog-media {
	display: grid;
	place-items: center;
	min-height: 260px;
	max-height: 76vh;
	background: #020b12;
}

.elite-glass-gallery__dialog-media img {
	display: block;
	max-width: 100%;
	max-height: 76vh;
	object-fit: contain;
}

.elite-glass-gallery__dialog-copy {
	padding: 22px 28px 26px;
}

.elite-glass-gallery__dialog-copy h3 {
	margin: 0;
	color: #fff;
	font-size: 1.9rem;
}

.elite-glass-gallery__dialog-copy p {
	margin: 7px 0 0;
	color: rgba(255, 255, 255, .8);
}

.elite-glass-gallery__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 0;
	background: rgba(7, 25, 39, .76);
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
}

@media (max-width: 920px) {
	.elite-glass-gallery__card,
	.elite-glass-gallery__card.is-wide,
	.elite-glass-gallery__grid[data-visible-count="3"] .elite-glass-gallery__card,
	.elite-glass-gallery__grid[data-visible-count="3"] .elite-glass-gallery__card.is-featured {
		grid-column: span 6;
		grid-row: auto;
		min-height: 360px;
	}

	.elite-glass-gallery__grid[data-visible-count="1"] .elite-glass-gallery__card {
		grid-column: 1 / -1;
	}

	.elite-glass-gallery__grid[data-visible-count="3"] {
		grid-auto-rows: auto;
	}
}

@media (max-width: 640px) {
	.elite-gallery-page {
		padding-top: 20px;
	}

	.elite-gallery-page .elite-container {
		width: min(100% - 28px, 1220px);
	}

	.elite-gallery-hero {
		padding: 40px 26px;
	}

	.elite-gallery-links,
	.elite-gallery-actions {
		display: grid;
	}

	.elite-gallery-links a {
		text-align: center;
	}

	.elite-gallery-intro {
		padding-top: 48px;
	}

	.elite-gallery-cta {
		padding: 40px 24px;
	}

	.elite-gallery-actions a {
		display: block;
	}

	.elite-glass-gallery__filters {
		display: grid;
		grid-template-columns: 1fr;
	}

	.elite-glass-gallery__filters button {
		width: 100%;
	}

	.elite-glass-gallery__card,
	.elite-glass-gallery__card.is-wide,
	.elite-glass-gallery__grid[data-visible-count="1"] .elite-glass-gallery__card,
	.elite-glass-gallery__grid[data-visible-count="2"] .elite-glass-gallery__card,
	.elite-glass-gallery__grid[data-visible-count="3"] .elite-glass-gallery__card,
	.elite-glass-gallery__grid[data-visible-count="3"] .elite-glass-gallery__card.is-featured {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 330px;
	}

	.elite-glass-gallery__overlay {
		padding: 24px;
	}

	.elite-glass-gallery__description {
		font-size: .69rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elite-glass-gallery__card img {
		transition: none;
	}

	.elite-glass-gallery__card:hover img,
	.elite-glass-gallery__card:focus-visible img {
		transform: none;
	}
}
