/**
 * Gallery page — same shell as Elementor inner pages (Contact, etc.).
 * Site section background: #1e293b (slate / Elementor accent).
 */

body.masc-gallery-page {
	--masc-gallery-bg: #1e293b;
	--masc-gallery-bg-soft: #243247;
	background-color: var(--masc-gallery-bg) !important;
	color: #f5f0e6;
}

/* Theme Builder header: solid bar so white logo + nav are readable */
body.masc-gallery-page .elementor-location-header,
body.masc-gallery-page .elementor-location-header > .e-con,
body.masc-gallery-page .elementor-location-header > .elementor-element {
	background-color: var(--masc-gallery-bg) !important;
	background-image: none !important;
}

body.masc-gallery-page .elementor-location-header {
	position: relative;
	z-index: 40;
	width: 100%;
	box-shadow: 0 1px 0 rgba(250, 217, 90, 0.12);
}

/* Header overlays the page, so keep the title below it. */
body.masc-gallery-page .site-main,
body.masc-gallery-page main#content {
	margin-top: 0 !important;
	padding-top: 8.75rem !important;
	background: transparent !important;
	color: inherit;
	position: relative;
	z-index: 1;
}

body.masc-gallery-page .page-content,
body.masc-gallery-page article.page {
	margin-top: 0 !important;
	padding-top: 0 !important;
	background: transparent !important;
	color: inherit;
}

body.masc-gallery-page .page-header {
	margin: 0 auto;
	padding: 1.75rem 1rem 0.5rem;
	max-width: 1180px;
	text-align: center;
	background: transparent !important;
}

body.masc-gallery-page .page-header .entry-title,
body.masc-gallery-page h1.entry-title {
	margin: 0;
	font-family: Georgia, 'Times New Roman', Palatino, serif;
	font-size: clamp(1.75rem, 4vw, 2.4rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

body.masc-gallery-page .site-main::before,
body.masc-gallery-page main#content::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	width: min(920px, 92vw);
	height: 240px;
	transform: translateX(-50%);
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(226, 197, 106, 0.16), transparent 68%);
}

/* Gallery grid sits on site bg — no white/black slab behind cards */
body.masc-gallery-page .cytg {
	margin-top: 0.75rem;
	margin-bottom: 3rem;
	background: transparent !important;
	color: #f5f0e6;
}

body.masc-gallery-page .cytg-item {
	background: rgba(255, 255, 255, 0.04);
}

/* Pagination inherits cyt-gallery gold CTAs on dark shell */

body.masc-gallery-page .cytg-empty {
	color: rgba(245, 240, 230, 0.7);
}

/* Footer already Elementor — keep continuous dark */
body.masc-gallery-page .elementor-location-footer {
	background-color: var(--masc-gallery-bg);
}
