/*
Theme Name: Revfactor
Theme URI: https://inshi.pro/
Author: Inshi
Author URI: https://inshi.pro/
Description: This WordPress theme has been custom-developed. It may contain specific features and design elements tailored to the requirements of the client. Please note that as a custom-designed product, it may not encompass the full range of functionalities found in generic WordPress themes. Any replication or redistribution of this theme without proper authorization is strictly prohibited.
Version: 1.0
Text Domain: Revfactor
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*<editor-fold desc="Wp Admin Bar">*/
#wpadminbar
{
	opacity: .3 !important;
	display: none;
}

#wpadminbar:hover
{
	opacity: 1 !important;
}

@media screen and (max-width: 768px)
{
	#wpadminbar
	{
		display: none;
	}
}

html[lang]
{
	margin-top: unset !important;
}

/*</editor-fold>*/

/*<editor-fold desc="Base">*/

html
{
	overflow-x: hidden;
}

figure
{
	display: flex;
	flex-direction: column;
}

body .wp-site-blocks
{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/* overflow: hidden; */
}

body .wp-site-blocks > footer
{
	margin-top: auto;
}

body .wp-block-post-content
{
	overflow-x: hidden;
}

body.page-id-301.popup-open .wp-block-post-content
{
	position: relative;
	z-index: 1000000;
}

:is(html,body).popup-open
{
	overflow: hidden;
}

/*</editor-fold>*/

/*<editor-fold desc="Helpers">*/
.technically-hidden
{
	display: none !important;
}

/*</editor-fold>*/

/*<editor-fold desc="Header">*/

header.main-header
{
	position: relative;
	z-index: 1000;
	background-color: var(--wp--preset--color--revfactor-white);
}

div.main-header
{
	position: absolute;
	width: 100%;
	inset: 0 0 auto 0;
	border-bottom: 1px solid rgba(243, 238, 231, 0);
	background-color: rgba(255, 255, 255, 0);
	z-index: 1000;
}

/*</editor-fold>*/

/*<editor-fold desc="Home: Trusted By">*/
.home-vertical-carousel
{
	overflow: hidden;
	position: relative;
}

.home-vertical-carousel::before,
.home-vertical-carousel::after
{
	content: '';
	position: absolute;
	z-index: 1;
}

.home-vertical-carousel-inner
{
	display: flex;
	align-items: center;
	gap: 44px;
	animation: marquee-v var(--timing) linear infinite;
}

/*
118


144

*/


.home-vertical-carousel-inner figure
{
	flex-shrink: 0 !important;
}

@keyframes marquee-v
{
	0%
	{
		transform: translateY(0);
	}
	100%
	{
		transform: translateY(var(--width));
	}
}

@keyframes marquee-h
{
	0%
	{
		transform: translateX(0);
	}
	100%
	{
		transform: translateX(var(--width));
	}
}

/* @media only screen and (max-width: 820px)
{ */
	.home-vertical-carousel
	{
		width: 100%;
		height: 48px;
		/* margin-top: 40px !important; */
	}

	.home-vertical-carousel-inner
	{
		flex-direction: row;
	}

	.home-vertical-carousel::before,
	.home-vertical-carousel::after
	{
		width: 70px;
		height: 100%;
		top: 0;
	}

	.home-vertical-carousel::before
	{
		left: 0;
		background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.00) 100%);
	}

	.home-vertical-carousel::after
	{
		right: 0;
		background: linear-gradient(-90deg, #000 0%, rgba(0, 0, 0, 0.00) 100%);
	}
/* }

@media only screen and (min-width: 821px)
{
	.home-vertical-carousel
	{
		width: 220px;
		height: 366px;
	}

	.home-vertical-carousel-inner
	{
		flex-direction: column;
	}

	.home-vertical-carousel::before,
	.home-vertical-carousel::after
	{
		width: 100%;
		height: 70px;
		left: 0;
	}

	.home-vertical-carousel::before
	{
		top: -1px;
		background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.00) 100%);
	}

	.home-vertical-carousel::after
	{
		bottom: -1px;
		background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.00) 100%);
	}

	.home-trusted-heading
	{
		padding-left: 34px;
	}
} */

/*</editor-fold>*/

/*<editor-fold desc="Case Studies">*/
.cases-grid
{
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	position: relative;
}

.case-item-card-wrapper:not(.active)
{
	position: relative;
}

.case-item-card-wrapper.active
{
	position: fixed !important;
	z-index: 100001;
	inset: 0 !important;
	width: 100vw;
	max-width: none !important;
	height: 100dvh;
}

.case-item-card-wrapper:not(.active) .case-item-popup-wrapper,
.case-item-card-wrapper.active :is(.case-item-card, .case-item-card-hover)
{
	display: none;
}

.case-item-card-hover
{
	position: absolute;
	inset: 0;
}

.case-item-popup-wrapper
{
	width: 100vw;
	max-width: none !important;
	height: 100dvh;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	padding: 20px;
	overflow: auto;
}

.case-popup-close-btn
{
	cursor: pointer;
}

.case-popup-close-btn
{
	position: sticky;
	top: 18px;
	z-index: 1;
	margin-left: auto !important;
}

.case-popup-close-btn + div
{
	margin-top: -44px;
}

.case-popup-close-btn figure
{
	position: absolute;
	z-index: 10;
	height: 36px;
	width: 36px;
	right: 0;
}

@media only screen and (max-width: 820px)
{
}

@media only screen and (min-width: 821px)
{
	.case-item-card-wrapper:hover .case-item-card,
	.case-item-card-wrapper:not(:hover) .case-item-card-hover
	{
		opacity: 0;
	}

	.case-item-card-wrapper .case-item-card,
	.case-item-card-wrapper .case-item-card-hover
	{
		transition: opacity 0.3s ease-in-out;
	}

	.case-item-card-wrapper::after
	{
		content: '';
		position: absolute;
		width: 589px;
		height: 411px;
		top: 20%;
		left: 70%;
		z-index: -2;
		transform-origin: center;
		transform: rotate(-20.644deg) translate(-50%, -50%) scale(1);
		border-radius: 589px;
		opacity: 0.24;
		background: #767FFD;
		filter: blur(51px);
		pointer-events: none;
	}

	.case-item-card-wrapper:not(:hover)::after
	{
		transform: rotate(-20.644deg) translate(-50%, -50%) scale(0);
	}

	.case-item-card-wrapper:not(.active):is(:nth-child(2), :nth-child(3), :nth-child(5))
	{
		position: relative;
		top: 100px !important;
	}

	.case-item-card-wrapper:not(.active):nth-child(3)
	{
		top: 200px !important;
	}
}
/*</editor-fold>*/