/*
 * Editorial Gallery presentation.
 *
 * The page remains built from its existing Gutenberg blocks. This file adds
 * presentation only and is intentionally scoped to Gallery page identities.
 */

html:has(:is(body.epoxology-gallery-page, body.page-id-10)) {
	overflow-x: clip;
}

:is(body.epoxology-gallery-page, body.page-id-10) {
	--epx-gallery-navy: #283F4D;
	--epx-gallery-gold: #FAB617;
	--epx-gallery-slate: #819DB1;
	--epx-gallery-deep-navy: #21333D;
	--epx-gallery-muted: #697C84;
	--epx-gallery-surface: #F5F8FA;
	--epx-gallery-paper: #FFFFFF;
	--epx-gallery-border: rgba(40, 63, 77, 0.14);
	--epx-gallery-shadow: 0 18px 48px rgba(33, 51, 61, 0.12);
	--epx-gallery-radius: 24px;
	--epx-gallery-motion: 220ms ease;
	overflow-x: clip;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: auto;
	padding-inline: clamp(0.75rem, 2.5vw, 2.5rem);
	overflow: hidden;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > p:first-child {
	display: none;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group {
	box-sizing: border-box;
	width: 100%;
	margin-inline: 0;
	margin-block: clamp(2.75rem, 6vw, 5.5rem);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) {
	margin-top: clamp(0.75rem, 1.5vw, 1.5rem);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group > .wp-block-group__inner-container,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group > .wp-block-columns {
	max-width: 100%;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content h1,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content h2,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content h3 {
	text-align: center;
}

/* Hero */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) {
	position: relative;
	padding: clamp(1.25rem, 4vw, 4rem);
	color: #FFFFFF;
	background: var(--epx-gallery-deep-navy);
	border-radius: var(--epx-gallery-radius);
	box-shadow: var(--epx-gallery-shadow);
	overflow: hidden;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1)::before {
	position: absolute;
	top: -7rem;
	right: -5rem;
	width: 18rem;
	height: 18rem;
	background: radial-gradient(circle, rgba(250, 182, 23, 0.2), transparent 68%);
	content: '';
	pointer-events: none;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-columns {
	position: relative;
	align-items: center;
	flex-direction: column;
	gap: clamp(1.5rem, 5vw, 4rem);
	z-index: 1;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) h1 {
	max-width: 18ch;
	margin: 0 auto 1.25rem;
	color: #FFFFFF;
	font-size: clamp(2rem, 4vw, 4.25rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.98;
	text-wrap: balance;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) h1::after {
	display: block;
	width: 4rem;
	height: 0.3rem;
	margin: 1.25rem auto 0;
	background: var(--epx-gallery-gold);
	border-radius: 999px;
	content: '';
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) p {
	max-width: 58ch;
	margin: 0.75rem auto;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.75;
	text-align: center;
	text-wrap: pretty;
	word-break: normal;
	overflow-wrap: anywhere;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) p a {
	color: #FFFFFF;
	text-decoration-color: var(--epx-gallery-gold);
	text-decoration-thickness: 0.15em;
	text-underline-offset: 0.16em;
	white-space: normal;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) figure {
	margin: 0;
	border: 0.5rem solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) figure img {
	display: block;
	width: 100%;
	height: clamp(15rem, 35vw, 27rem);
	object-fit: cover;
}

/* Shared headings and content rhythm */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:not(:nth-of-type(1)) h2 {
	margin-block: 0 0.85rem;
	color: var(--epx-gallery-navy);
	font-size: clamp(1.8rem, 3vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.05;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:not(:nth-of-type(1)) h2::after {
	display: block;
	width: 3.25rem;
	height: 0.25rem;
	margin: 0.9rem auto 0;
	background: var(--epx-gallery-gold);
	border-radius: 999px;
	content: '';
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:not(:nth-of-type(1)) > p {
	max-width: 70ch;
	margin-inline: auto;
	color: var(--epx-gallery-muted);
	font-size: 1rem;
	line-height: 1.75;
}

/* Specialization and project type cards */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(2),
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(3) {
	text-align: center;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(2) {
	position: relative;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
	background: var(--epx-gallery-surface);
	border: 1px solid var(--epx-gallery-border);
	border-radius: var(--epx-gallery-radius);
	overflow: hidden;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(2)::before {
	position: absolute;
	top: -4rem;
	left: 50%;
	width: 10rem;
	height: 10rem;
	background: rgba(250, 182, 23, 0.16);
	border-radius: 50%;
	content: '';
	filter: blur(0.5rem);
	transform: translateX(-50%);
	pointer-events: none;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(2) > * {
	position: relative;
	z-index: 1;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(2) > p {
	margin-bottom: 2rem;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin-top: 1.5rem;
	text-align: center;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-card {
	position: relative;
	padding: 1.25rem 1rem;
	background: #FFFFFF;
	border: 1px solid var(--epx-gallery-border);
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(33, 51, 61, 0.06);
	transition: border-color var(--epx-gallery-motion), box-shadow var(--epx-gallery-motion), transform var(--epx-gallery-motion);
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-card:hover,
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-card:focus-within {
	border-color: var(--epx-gallery-gold);
	box-shadow: 0 14px 30px rgba(33, 51, 61, 0.12);
	transform: translateY(-4px);
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-card__label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--epx-gallery-gold);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-card h3 {
	margin: 0 0 0.5rem;
	color: var(--epx-gallery-navy);
	font-size: 1.1rem;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-card p {
	margin: 0;
	color: var(--epx-gallery-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-columns {
	gap: 1rem;
	margin-top: 2rem;
	text-align: left;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(3) .wp-block-column {
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: var(--epx-gallery-surface);
	border: 1px solid var(--epx-gallery-border);
	border-top: 0.3rem solid var(--epx-gallery-gold);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(33, 51, 61, 0.06);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(3) h3 {
	margin-block: 0 0.65rem;
	color: var(--epx-gallery-navy);
	font-size: 1.15rem;
	font-weight: 750;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(3) p {
	margin: 0;
	color: var(--epx-gallery-muted);
	line-height: 1.65;
}

/* Editorial masonry-inspired gallery */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.6rem, 1.4vw, 1rem);
	align-items: stretch;
	margin-block: clamp(3.5rem, 8vw, 7rem);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	height: auto;
	justify-self: stretch;
	aspect-ratio: 4 / 3;
	margin: 0;
	background: var(--epx-gallery-surface);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(33, 51, 61, 0.1);
	overflow: hidden;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:nth-child(-n + 2):not(#individual-image) {
	grid-column: span 2;
	aspect-ratio: 16 / 10;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) > img,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) > .epx-gallery-lightbox-trigger > img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform var(--epx-gallery-motion), filter var(--epx-gallery-motion);
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox-trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox-trigger::after {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	place-items: center;
	color: var(--epx-gallery-deep-navy);
	background: var(--epx-gallery-gold);
	border-radius: 50%;
	content: '+';
	font-size: 1.5rem;
	font-weight: 700;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity var(--epx-gallery-motion), transform var(--epx-gallery-motion);
	pointer-events: none;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox-trigger:hover::after,
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox-trigger:focus-visible::after {
	opacity: 1;
	transform: scale(1);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image):hover,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image):focus-within {
	box-shadow: 0 12px 30px rgba(33, 51, 61, 0.18);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image):hover > img,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image):focus-within > img,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image):hover > .epx-gallery-lightbox-trigger > img,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image):focus-within > .epx-gallery-lightbox-trigger > img {
	filter: saturate(1.08);
	transform: scale(1.045);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery figcaption {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.6rem 0.75rem;
	color: #FFFFFF;
	background: linear-gradient(transparent, rgba(33, 51, 61, 0.82));
	font-size: 0.75rem;
}

/* Coverage section */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(4) {
	padding: clamp(1.75rem, 4vw, 3.5rem);
	text-align: center;
	background: var(--epx-gallery-surface);
	border: 1px solid var(--epx-gallery-border);
	border-radius: var(--epx-gallery-radius);
}

/* Native FAQ blocks */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(5) {
	max-width: none;
	margin-inline: auto;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(5) h2 {
	text-align: center;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(5) details {
	margin-top: 0.8rem;
	padding: 0 1.25rem;
	background: var(--epx-gallery-paper);
	border: 1px solid var(--epx-gallery-border);
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(33, 51, 61, 0.05);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(5) summary {
	padding-block: 1.15rem;
	color: var(--epx-gallery-navy);
	font-weight: 700;
	cursor: pointer;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(5) details[open] summary {
	color: var(--epx-gallery-deep-navy);
	border-bottom: 1px solid var(--epx-gallery-border);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(5) details p {
	margin-block: 1rem 1.25rem;
	color: var(--epx-gallery-muted);
	line-height: 1.7;
}

/* CTA */
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) {
	position: relative;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	color: #FFFFFF;
	background: linear-gradient(135deg, var(--epx-gallery-navy) 0%, var(--epx-gallery-deep-navy) 100%);
	border: 1px solid rgba(250, 182, 23, 0.28);
	border-radius: var(--epx-gallery-radius);
	box-shadow: var(--epx-gallery-shadow);
	overflow: hidden;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6)::before {
	position: absolute;
	top: -5rem;
	right: -3rem;
	width: 13rem;
	height: 13rem;
	background: radial-gradient(circle, rgba(250, 182, 23, 0.25), transparent 68%);
	content: '';
	pointer-events: none;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) > * {
	position: relative;
	z-index: 1;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) h2,
:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) h3 {
	color: #FFFFFF;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) h2::after {
	background: var(--epx-gallery-gold);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) p {
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) .wp-block-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) .wp-block-button__link {
	display: block;
	min-height: 3rem;
	padding: 0.9rem 1.25rem;
	color: var(--epx-gallery-deep-navy);
	background: var(--epx-gallery-gold);
	border: 2px solid var(--epx-gallery-gold);
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	transition: background-color var(--epx-gallery-motion), border-color var(--epx-gallery-motion), transform var(--epx-gallery-motion);
}

:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) .wp-block-button__link:hover {
	background: #FFFFFF;
	border-color: #FFFFFF;
	transform: translateY(-2px);
}

:is(body.epoxology-gallery-page, body.page-id-10) a:focus-visible,
:is(body.epoxology-gallery-page, body.page-id-10) summary:focus-visible,
:is(body.epoxology-gallery-page, body.page-id-10) button:focus-visible {
	outline: 3px solid var(--epx-gallery-gold);
	outline-offset: 4px;
}

@media (min-width: 40rem) {
	:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-specialization-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 48rem) {
	:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-columns {
		flex-direction: row;
	}

	:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-group:nth-of-type(6) .wp-block-buttons {
		flex-direction: row;
		align-items: center;
	}

	:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:first-child:not(#individual-image) {
		grid-column: span 2;
	}

	:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery.has-nested-images > figure.wp-block-image:nth-child(2):not(#individual-image) {
		grid-column: span 1;
	}
}

@media (min-width: 67.5rem) {
	:is(body.epoxology-gallery-page, body.page-id-10) .entry-content > .wp-block-gallery {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Gallery lightbox */
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox[hidden] {
	display: none;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0.75rem;
	background: rgba(33, 51, 61, 0.94);
	z-index: 99999;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__panel {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
	align-items: center;
	gap: 0.5rem;
	width: min(100%, 84rem);
	max-height: 100%;
	z-index: 1;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__figure {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	margin: 0;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 72svh;
	border-radius: 12px;
	object-fit: contain;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__caption {
	width: min(100%, 48rem);
	margin: 0;
	padding: 0.75rem 1rem;
	color: #FFFFFF;
	background: var(--epx-gallery-deep-navy);
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: center;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__counter {
	grid-column: 2;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.85rem;
	font-weight: 700;
	text-align: center;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__close,
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__previous,
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__next {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	padding: 0;
	color: var(--epx-gallery-deep-navy);
	background: var(--epx-gallery-gold);
	border: 0;
	border-radius: 50%;
	font-size: 1.3rem;
	font-weight: 800;
	cursor: pointer;
	transition: background-color var(--epx-gallery-motion), color var(--epx-gallery-motion), transform var(--epx-gallery-motion);
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__close:hover,
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__previous:hover,
:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__next:hover {
	color: #FFFFFF;
	background: var(--epx-gallery-navy);
	transform: scale(1.05);
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__close {
	position: absolute;
	top: -0.75rem;
	right: 0;
	z-index: 2;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__previous {
	grid-column: 1;
}

:is(body.epoxology-gallery-page, body.page-id-10) .epx-gallery-lightbox__next {
	grid-column: 3;
}

html:has(:is(body.epoxology-gallery-page, body.page-id-10)).epx-gallery-lightbox-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	:is(body.epoxology-gallery-page, body.page-id-10) *,
	:is(body.epoxology-gallery-page, body.page-id-10) *::before,
	:is(body.epoxology-gallery-page, body.page-id-10) *::after {
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		scroll-behavior: auto;
	}
}
