/* Gasify Gauteng — install gallery */

@property --flame {
	syntax: "<angle>";
	inherits: true;
	initial-value: 210deg;
}

.gasify-gallery-page .wp-site-blocks,
.gasify-gallery-page .gasify-gallery-main,
.gasify-gallery-page .gasify-gallery-main > .wp-block-post-content,
.gasify-gallery-page .gasify-gallery-main > .entry-content {
	max-width: none !important;
	padding-left: 0;
	padding-right: 0;
}

.gasify-gallery-main,
.gasify-gallery-main > .wp-block-post-content,
.gasify-gallery-main > .entry-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.gasify-gallery {
	--gallery-gap: 0.7rem;
	--gallery-radius: 1.5rem;
	position: relative;
	isolation: isolate;
	padding: 0.35rem 0.9rem 2.5rem;
	background:
		radial-gradient(1200px 480px at 12% -10%, rgba(0, 194, 255, 0.1), transparent 55%),
		var(--gasify-canvas);
}

.gasify-gallery-bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: minmax(11.5rem, 27vh) minmax(11.5rem, 27vh) minmax(13.5rem, 32vh);
	gap: var(--gallery-gap);
	min-height: calc(100svh - 6.4rem);
}

.gasify-shot {
	position: relative;
	margin: 0;
	min-width: 0;
	border-radius: var(--gallery-radius);
	background: var(--gasify-navy);
}

.gasify-shot--paloma {
	grid-column: 1 / 9;
	grid-row: 1 / 3;
}

.gasify-gallery-lead {
	grid-column: 9 / 13;
	grid-row: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.85rem;
	min-width: 0;
	padding: 1.15rem 1.2rem 1.05rem;
	border-radius: var(--gallery-radius);
	background:
		linear-gradient(160deg, #132247 0%, var(--gasify-navy) 58%, #06101f 100%);
	color: #fff;
	box-shadow:
		0 0 0 2px #00c2ff,
		0 22px 40px -18px rgba(0, 194, 255, 0.45);
}

.gasify-gallery-lead::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: 1;
	border-radius: inherit;
	pointer-events: none;
	background:
		conic-gradient(from 200deg, #00c2ff 0 22%, #2563eb 38%, transparent 55% 72%, #00c2ff 92%);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	padding: 4px;
	opacity: 1;
}

.gasify-gallery-lead > * {
	position: relative;
	z-index: 2;
}

.gasify-shot--paloma button {
	box-shadow:
		0 0 0 2px #00c2ff,
		0 18px 36px -16px rgba(0, 194, 255, 0.5);
}

.gasify-shot--paloma .gasify-shot__flame {
	opacity: 1;
	padding: 4px;
	background:
		conic-gradient(from 180deg, #00c2ff 0 24%, transparent 40% 62%, #2563eb 78%, #00c2ff 100%);
}

.gasify-shot--hob {
	grid-column: 9 / 13;
	grid-row: 2;
}

.gasify-shot--fireplace {
	grid-column: 1 / 6;
	grid-row: 3;
}

.gasify-shot--cage {
	grid-column: 6 / 10;
	grid-row: 3;
}

.gasify-shot--regulator {
	grid-column: 10 / 13;
	grid-row: 3;
}

.gasify-gallery-title {
	margin: 0 !important;
	color: #fff !important;
	font-family: Syne, "Plus Jakarta Sans", sans-serif !important;
	font-size: clamp(1.55rem, 2.2vw, 2.2rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.04em !important;
	line-height: 0.88 !important;
	text-transform: uppercase;
}

.gasify-gallery-live {
	margin: 0 !important;
	color: #c5d4ea !important;
	font-size: 0.92rem;
	line-height: 1.4;
	max-width: 34ch;
	min-height: 3.8em;
}

.gasify-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.gasify-gallery-filters button {
	appearance: none;
	margin: 0;
	padding: 0.38rem 0.62rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: transparent;
	color: #dbe7f7;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.gasify-gallery-filters button:hover {
	border-color: var(--gasify-cyan);
	color: #fff;
}

.gasify-gallery-filters button.is-active {
	background: var(--gasify-cyan);
	border-color: var(--gasify-cyan);
	color: var(--gasify-navy);
}

.gasify-gallery-filters button:focus-visible,
.gasify-shot button:focus-visible,
.gasify-inspect__close:focus-visible,
.gasify-inspect__nav button:focus-visible,
.gasify-inspect__cta:focus-visible,
.gasify-inspect__call:focus-visible {
	outline: 2px solid var(--gasify-cyan);
	outline-offset: 3px;
}

.gasify-shot button {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: inherit;
	background: var(--gasify-navy);
	cursor: pointer;
	text-align: left;
	color: #fff;
}

.gasify-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.04);
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gasify-shot button:hover img,
.gasify-shot button:focus-visible img {
	transform: scale(1.1);
	filter: saturate(1.08) contrast(1.04);
}

.gasify-shot--paloma img {
	object-position: 82% 92%;
}

.gasify-shot--hob img {
	object-position: 55% 100%;
}

.gasify-shot--fireplace img {
	object-position: 50% 70%;
}

.gasify-shot--cage img {
	object-position: 50% 78%;
}

.gasify-shot--regulator img {
	object-position: 50% 42%;
}

.gasify-shot__flame {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	background:
		conic-gradient(from var(--flame, 210deg), transparent 0 62%, #00c2ff 72%, #2563eb 82%, transparent 92%);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	padding: 2px;
	transition: opacity 0.25s ease;
}

.gasify-shot button:hover .gasify-shot__flame,
.gasify-shot button:focus-visible .gasify-shot__flame,
.gasify-shot.is-hot .gasify-shot__flame {
	opacity: 1;
}

.gasify-shot__veil {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 3.2rem 1rem 0.9rem;
	background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 30, 0.78) 72%);
	clip-path: inset(100% 0 0 0);
	transition: clip-path 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gasify-shot button:hover .gasify-shot__veil,
.gasify-shot button:focus-visible .gasify-shot__veil,
.gasify-shot.is-hot .gasify-shot__veil {
	clip-path: inset(0 0 0 0);
}

.gasify-shot__name {
	font-family: Syne, "Plus Jakarta Sans", sans-serif;
	font-size: clamp(0.95rem, 1.4vw, 1.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	line-height: 1;
}

.gasify-shot__hint {
	flex-shrink: 0;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gasify-cyan);
}

.gasify-shot.is-hidden {
	display: none;
}

.gasify-gallery-bento.is-filtered {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto minmax(22rem, 1fr);
}

.gasify-gallery-bento.is-filtered .gasify-gallery-lead {
	grid-column: 1 / -1;
	grid-row: 1;
}

.gasify-gallery-bento.is-filtered .gasify-shot,
.gasify-gallery-bento.is-filtered .gasify-shot--paloma,
.gasify-gallery-bento.is-filtered .gasify-shot--hob,
.gasify-gallery-bento.is-filtered .gasify-shot--fireplace,
.gasify-gallery-bento.is-filtered .gasify-shot--cage,
.gasify-gallery-bento.is-filtered .gasify-shot--regulator,
.gasify-gallery-bento.is-filtered .gasify-shot:not(.is-hidden),
.gasify-gallery-bento.is-filtered[data-count="1"] .gasify-shot:not(.is-hidden),
.gasify-gallery-bento.is-filtered[data-count="2"] .gasify-shot:not(.is-hidden) {
	grid-column: auto;
	grid-row: 2;
	min-height: 48vh;
}

.gasify-gallery-bento.is-filtered[data-count="1"] .gasify-shot:not(.is-hidden) {
	grid-column: 1 / -1;
}

body.gasify-inspecting {
	overflow: hidden;
}

body.gasify-inspecting .gasify-site-header {
	z-index: 1;
}

.gasify-inspect {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(7, 13, 30, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.gasify-inspect[hidden] {
	display: none !important;
}

.gasify-inspect__frame {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr);
	width: min(1120px, 100%);
	max-height: calc(100svh - 2rem);
	overflow: hidden;
	border-radius: 1.6rem;
	background: var(--gasify-navy);
	box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.7);
}

.gasify-inspect__figure {
	position: relative;
	margin: 0;
	min-height: 0;
	background: #040814;
}

.gasify-inspect__figure img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: calc(100svh - 2rem);
	object-fit: cover;
}

.gasify-inspect__flame {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background:
		conic-gradient(from var(--flame, 120deg), transparent 0 55%, #00c2ff 68%, #2563eb 80%, transparent 90%);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	padding: 3px;
}

.gasify-inspect.is-lit .gasify-inspect__flame {
	opacity: 1;
}

.gasify-inspect__panel {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.6rem 1.5rem 1.35rem;
	color: #e8eef8;
	overflow: auto;
	scrollbar-color: var(--gasify-cyan) #132247;
	scrollbar-width: thin;
}

.gasify-inspect__index {
	margin: 0;
	color: var(--gasify-cyan);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.gasify-inspect__title {
	margin: 0 !important;
	color: #fff !important;
	font-family: Syne, "Plus Jakarta Sans", sans-serif !important;
	font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
	line-height: 0.92 !important;
	letter-spacing: -0.04em !important;
	text-transform: uppercase;
}

.gasify-inspect__copy {
	margin: 0;
	color: #c5d4ea;
	font-size: 1rem;
	line-height: 1.55;
	max-width: 38ch;
}

.gasify-inspect__actions {
	display: grid;
	gap: 0.55rem;
	margin-top: auto;
}

.gasify-inspect__cta,
.gasify-inspect__call,
.gasify-inspect__nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1rem;
	border-radius: 12px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.gasify-inspect__cta {
	background: var(--gasify-cyan);
	color: var(--gasify-navy);
}

.gasify-inspect__cta:hover {
	background: #fff;
}

.gasify-inspect__call {
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
}

.gasify-inspect__call:hover {
	border-color: var(--gasify-cyan);
	color: var(--gasify-cyan);
}

.gasify-inspect__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.gasify-inspect__nav button {
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: #d7e3f4;
	cursor: pointer;
}

.gasify-inspect__nav button:hover {
	border-color: #fff;
	color: #fff;
}

.gasify-inspect__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(7, 13, 30, 0.55);
	color: #fff;
	cursor: pointer;
}

.gasify-inspect__close:hover {
	background: var(--gasify-cyan);
	color: var(--gasify-navy);
}

@media (hover: none) {
	.gasify-shot__veil {
		clip-path: inset(58% 0 0 0);
	}
}

@media (max-width: 981px) {
	.gasify-gallery {
		padding: 0.15rem 0.7rem 1.75rem;
	}

	.gasify-gallery-bento,
	.gasify-gallery-bento.is-filtered {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
		min-height: 0;
	}

	.gasify-gallery-lead,
	.gasify-gallery-bento.is-filtered .gasify-gallery-lead,
	.gasify-shot--paloma,
	.gasify-gallery-bento.is-filtered[data-count="1"] .gasify-shot:not(.is-hidden) {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.gasify-shot--hob,
	.gasify-shot--fireplace,
	.gasify-shot--cage,
	.gasify-shot--regulator,
	.gasify-gallery-bento.is-filtered .gasify-shot:not(.is-hidden),
	.gasify-gallery-bento.is-filtered[data-count="2"] .gasify-shot:not(.is-hidden) {
		grid-column: auto;
		grid-row: auto;
		min-height: 46vw;
	}

	.gasify-shot--paloma,
	.gasify-gallery-bento.is-filtered[data-count="1"] .gasify-shot:not(.is-hidden) {
		min-height: 64vw;
	}

	.gasify-gallery-lead {
		min-height: 0;
		padding: 1.15rem 1.1rem 1rem;
	}

	.gasify-gallery-title {
		max-width: none;
		font-size: clamp(1.85rem, 7.4vw, 2.35rem) !important;
	}

	.gasify-gallery-live {
		min-height: 0;
	}

	.gasify-inspect__title {
		font-size: clamp(1.45rem, 8vw, 1.85rem) !important;
	}

	.gasify-inspect {
		padding: 0;
		align-items: stretch;
	}

	.gasify-inspect__frame {
		grid-template-columns: 1fr;
		width: 100%;
		max-height: none;
		height: 100svh;
		border-radius: 0;
	}

	.gasify-inspect__figure {
		min-height: 42svh;
		max-height: 48svh;
	}

	.gasify-inspect__figure img {
		max-height: 48svh;
	}
}

@media (max-width: 600px) {
	.gasify-shot--hob,
	.gasify-shot--fireplace,
	.gasify-shot--cage,
	.gasify-shot--regulator,
	.gasify-gallery-bento.is-filtered .gasify-shot:not(.is-hidden) {
		grid-column: 1 / -1;
		min-height: 58vw;
	}

	.gasify-gallery-filters button {
		min-height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gasify-shot img,
	.gasify-shot__veil,
	.gasify-shot__flame {
		transition: none;
	}

	.gasify-shot img {
		transform: none;
	}

	.gasify-shot__veil {
		clip-path: none;
	}

	.gasify-inspect {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
}
