.cd-gallery-page {
	--cdg-ink: #18202a;
	--cdg-muted: #5a6572;
	--cdg-line: #dfe4e8;
	--cdg-panel: #f4f5f6;
	--cdg-orange: #f26a00;
	background: #fff;
	color: var(--cdg-ink);
}

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

.cd-gallery-shell {
	width: min(1180px, calc(100% - 36px));
	margin-inline: auto;
}

.cd-gallery-hero {
	padding: clamp(68px, 8vw, 112px) 0 clamp(54px, 6vw, 82px);
	background:
		linear-gradient(115deg, rgba(20, 26, 33, .98), rgba(26, 35, 44, .92)),
		linear-gradient(90deg, #111820, #29323b);
	color: #fff;
}

.cd-gallery-hero .cd-gallery-shell {
	max-width: 900px;
	margin-left: max(18px, calc((100vw - 1180px) / 2));
}

.cd-gallery-eyebrow {
	margin: 0 0 12px;
	color: var(--cdg-orange);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cd-gallery-hero h1 {
	max-width: 850px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 4.6rem);
	font-weight: 820;
	letter-spacing: -.045em;
	line-height: 1.02;
}

.cd-gallery-intro {
	max-width: 680px;
	margin: 24px 0 0;
	color: #dce1e5;
	font-size: clamp(1.05rem, 1.8vw, 1.28rem);
	line-height: 1.65;
}

.cd-gallery-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.cd-gallery-summary span {
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: .84rem;
}

.cd-gallery-content {
	padding: clamp(58px, 7vw, 94px) 0;
}

.cd-gallery-heading {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
	gap: 42px;
	align-items: end;
	margin-bottom: 30px;
}

.cd-gallery-heading h2,
.cd-gallery-cta h2 {
	margin: 0;
	color: var(--cdg-ink);
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	letter-spacing: -.035em;
	line-height: 1.08;
}

.cd-gallery-heading > p,
.cd-gallery-cta p {
	margin: 0;
	color: var(--cdg-muted);
	line-height: 1.65;
}

.cd-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 12px;
}

.cd-gallery-filters button {
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid var(--cdg-line);
	border-radius: 999px;
	background: #fff;
	color: var(--cdg-ink);
	font: inherit;
	font-size: .92rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.cd-gallery-filters button:hover,
.cd-gallery-filters button:focus-visible {
	border-color: var(--cdg-orange);
}

.cd-gallery-filters button.is-active {
	border-color: var(--cdg-ink);
	background: var(--cdg-ink);
	color: #fff;
}

.cd-gallery-status {
	margin: 0 0 22px;
	color: var(--cdg-muted);
	font-size: .86rem;
}

.cd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 28px);
}

.cd-gallery-card {
	min-width: 0;
	border: 1px solid var(--cdg-line);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(26, 32, 40, .06);
}

.cd-gallery-card[hidden] {
	display: none;
}

.cd-gallery-open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: zoom-in;
}

.cd-gallery-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9ecef;
}

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

.cd-gallery-open:hover .cd-gallery-media img,
.cd-gallery-open:focus-visible .cd-gallery-media img {
	transform: scale(1.035);
}

.cd-gallery-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(18, 24, 31, .86);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .2s ease, transform .2s ease;
}

.cd-gallery-open:hover .cd-gallery-zoom,
.cd-gallery-open:focus-visible .cd-gallery-zoom {
	opacity: 1;
	transform: translateY(0);
}

.cd-gallery-card-copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 20px 22px;
}

.cd-gallery-category {
	color: var(--cdg-orange);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cd-gallery-card-copy strong {
	color: var(--cdg-ink);
	font-size: 1.08rem;
	line-height: 1.25;
}

.cd-gallery-card-copy > span:last-child {
	color: var(--cdg-muted);
	font-size: .9rem;
	line-height: 1.55;
}

.cd-gallery-open:focus-visible {
	outline: 3px solid var(--cdg-orange);
	outline-offset: -3px;
}

.cd-gallery-empty {
	padding: 32px;
	border-radius: 12px;
	background: var(--cdg-panel);
	color: var(--cdg-muted);
}

.cd-gallery-cta {
	padding: clamp(54px, 7vw, 86px) 0;
	background: var(--cdg-panel);
}

.cd-gallery-cta .cd-gallery-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 36px;
	align-items: center;
}

.cd-gallery-cta p:not(.cd-gallery-eyebrow) {
	max-width: 680px;
	margin-top: 15px;
}

.cd-gallery-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.cd-gallery-primary,
.cd-gallery-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 18px;
	border: 2px solid var(--cdg-orange);
	border-radius: 8px;
	font-weight: 800;
	text-decoration: none;
}

.cd-gallery-primary {
	background: var(--cdg-orange);
	color: #fff;
}

.cd-gallery-secondary {
	background: transparent;
	color: var(--cdg-ink);
}

.cd-gallery-primary:hover,
.cd-gallery-primary:focus-visible,
.cd-gallery-secondary:hover,
.cd-gallery-secondary:focus-visible {
	box-shadow: 0 8px 20px rgba(242, 106, 0, .18);
	transform: translateY(-1px);
}

.cd-gallery-lightbox {
	width: min(1100px, calc(100% - 28px));
	max-width: none;
	max-height: calc(100dvh - 28px);
	padding: 0;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #10161d;
	color: #fff;
}

.cd-gallery-lightbox::backdrop {
	background: rgba(5, 8, 12, .88);
	backdrop-filter: blur(3px);
}

.cd-gallery-dialog-inner {
	position: relative;
	min-height: 320px;
	padding: 46px 58px 28px;
}

.cd-gallery-lightbox figure {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin: 0;
}

.cd-gallery-lightbox img,
.cd-gallery-lightbox video {
	display: block;
	width: 100%;
	max-height: min(68dvh, 760px);
	object-fit: contain;
	border-radius: 8px;
	background: #090d11;
}

.cd-gallery-lightbox [hidden] {
	display: none;
}

.cd-gallery-lightbox figcaption {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 0 6px;
}

.cd-gallery-lightbox figcaption strong {
	color: #fff;
	font-size: 1.12rem;
}

.cd-gallery-lightbox figcaption > span:last-child {
	color: #cfd5da;
	font-size: .92rem;
	line-height: 1.5;
}

.cd-gallery-close,
.cd-gallery-nav {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(10, 15, 20, .82);
	color: #fff;
	cursor: pointer;
}

.cd-gallery-close {
	top: 10px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 1.6rem;
	line-height: 1;
}

.cd-gallery-nav {
	top: 45%;
	width: 42px;
	height: 52px;
	border-radius: 8px;
	font-size: 2rem;
}

.cd-gallery-nav.is-prev {
	left: 8px;
}

.cd-gallery-nav.is-next {
	right: 8px;
}

.cd-gallery-close:hover,
.cd-gallery-close:focus-visible,
.cd-gallery-nav:hover,
.cd-gallery-nav:focus-visible {
	border-color: var(--cdg-orange);
	outline: 2px solid var(--cdg-orange);
}

body.cd-gallery-dialog-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.cd-gallery-heading {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.cd-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cd-gallery-cta .cd-gallery-shell {
		grid-template-columns: 1fr;
	}

	.cd-gallery-cta-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.cd-gallery-shell {
		width: min(100% - 28px, 1180px);
	}

	.cd-gallery-hero {
		padding-top: 54px;
	}

	.cd-gallery-hero .cd-gallery-shell {
		margin-inline: auto;
	}

	.cd-gallery-summary span {
		font-size: .77rem;
	}

	.cd-gallery-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.cd-gallery-card-copy {
		padding: 17px 17px 19px;
	}

	.cd-gallery-filters {
		flex-wrap: nowrap;
		margin-inline: -14px;
		padding: 0 14px 4px;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.cd-gallery-filters button {
		flex: 0 0 auto;
	}

	.cd-gallery-cta-actions {
		flex-direction: column;
	}

	.cd-gallery-primary,
	.cd-gallery-secondary {
		width: 100%;
	}

	.cd-gallery-dialog-inner {
		padding: 46px 12px 18px;
	}

	.cd-gallery-nav {
		top: 42%;
		width: 38px;
		height: 48px;
	}

	.cd-gallery-nav.is-prev {
		left: 4px;
	}

	.cd-gallery-nav.is-next {
		right: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd-gallery-page *,
	.cd-gallery-page *::before,
	.cd-gallery-page *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
