/* ----------------------------------------------------------------
    Portfolio demo styles
-----------------------------------------------------------------*/


:root {
	--cnvs-themecolor: #003638;
	--cnvs-themecolor-rgb: 0, 54, 56;
	--cnvs-primary-font: halyard-text, sans-serif;
	--cnvs-secondary-font: quiche-sans, sans-serif;
	--bs-bg-opacity: 1;
}

body.dark {
	--cnvs-themecolor: #FFE036;
	--cnvs-themecolor-rgb: 255, 224, 54;
}

* {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}


body,
#wrapper,
#content,
.page-transition-wrap {
	background-color: #ece3da;
}


body.dark,
.dark #wrapper,
.dark #content,
.dark .page-transition-wrap {
	background-color: #000;
}

.dark #header,
#header.dark,
.dark #header-wrap {
	background-color: #121212;
	box-shadow: 7px 0 14px 3px #000000;
}

.is-expanded-menu.side-header .menu-item:not(:first-child) {
	margin-top: 1rem;
}

.is-expanded-menu .menu-item .menu-link {
	font-weight: normal;
	font-size: 1.125rem;
}

.grid-filter li:nth-child(1).activeFilter {
	display: none;
	visibility: hidden;
}

.canvas-cursor {
	pointer-events: none;
	position: fixed;
	top: 0;
	left: 0;
	transform: translate3d(0, 0, 0);
	z-index: 999999;
	transition: transform .05s ease;
}

.canvas-cursor-follower,
.canvas-cursor-dot {
	width: 1.25rem;
	height: 1.25rem;
	background: rgba(var(--cnvs-themecolor-rgb), 0.2);
	border-radius: 50%;
	transition: 0.25s ease;
	transition-property: width, height, border, background;
	position: fixed;
	top: 0;
	left: 0;
	transform: translate(-50%, -50%);
}

.canvas-cursor-dot {
	width: 0.25rem;
	height: 0.25rem;
	background-color: rgba(var(--cnvs-themecolor-rgb), 0.2);
	border: 0;
}

.canvas-cursor-action .canvas-cursor-follower {
	width: 3rem;
	height: 3rem;
	border-color: transparent;
	background: rgba(var(--cnvs-themecolor-rgb), 0.3);
}

#demo-portfolio-filter a {
	display: block;
	position: relative;
	overflow: hidden;
}

#demo-portfolio-filter a img {
	transition: transform .5s ease-out;
	will-change: transform;
	transform-origin: center center;
}

#demo-portfolio-filter a:hover img {
	transform: scale(1.1);
}

.text-stretch {
	position: relative;
	width: calc(100% + 360px);
	z-index: 1;
}

#theme-scheme-btn {
	top: auto;
	left: auto;
	bottom: 30px;
	right: 80px;
	position: fixed;
	width: 40px;
	height: 40px;
	font-size: .875rem;
	line-height: 36px;
	text-align: center;
	color: #FFF;
	cursor: pointer;
	z-index: 9;
	transition: background-color .2s linear;
}


/* ----------------------------------------------------------------
    Additive: WordPress engine reconciliation
    (The lines above this marker are the 1:1 ported demo stylesheet;
    everything below is added to reconcile CSS specificity, asset
    classes, and FSE-block residue.)
-----------------------------------------------------------------*/

/* The default `.grid-filter` (kit) is a float row; the design wants a flex
 * row aligned to the right edge (the "Show All" pill sits flush against the
 * first filter). The `style-4` sliding-underline style is already chosen;
 * the only thing missing is flex + justify-content so the items distribute
 * exactly as the source does (Show All on the left, 5 pills right-aligned
 * via `ms-auto` on the second). */
.portfolio .grid-filter.style-4 {
    display: flex;
    align-items: center;
    width: 100%;
}

.portfolio .grid-filter.style-4 li {
    list-style: none;
    padding: 0;
}

/* The grid-tile anchor's hover-scale keyframe is keyed off the CSS variable
 * being present; the source ships it as a transform on the <img>. The
 * default `.bg-overlay` opacity is wired through the standard theme, but
 * the `data-hover-animate="fadeIn"` on the content needs the initial state
 * to be opacity:0 (kit default is visibility:hidden on `.bg-overlay-content`
 * which we don't want here: we want it revealed on hover). */
body.portfolio .bg-overlay-content[data-hover-animate="fadeIn"] {
    opacity: 0;
    transition: opacity .35s ease;
}

body.portfolio a:hover .bg-overlay-content[data-hover-animate="fadeIn"] {
    opacity: 1;
}

/* The kit's `.heading-block` adds a bottom border by default; the source
 * uses a plain eyebrow + heading without that frame. The About me eyebrow
 * is wrapped in a `.hstack` (kit primitive), which already provides the
 * flex + gap behaviour we need. No further rules needed. */
