/**
 * Theme-side companion CSS for the vanilla replacements of Slider Revolution
 * (.pcs-slider), iLightBox (.pcs-lb) and small interaction helpers. Everything
 * visual about the old design itself lives in the vendored legacy bundles.
 */

/* ---- slider (SR6 fullwidth geometry is applied inline by legacy.js) ---- */
.pcs-slider {
	position: relative;
	overflow: hidden;
	visibility: visible;
}
.pcs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: 1;
	pointer-events: none;
}
.pcs-slide.pcs-active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}
/* outgoing slide stays opaque below the incoming one during the crossfade */
.pcs-slide.pcs-prev {
	opacity: 1;
	transition: none;
	z-index: 1;
}
.pcs-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-repeat: no-repeat;
}
.pcs-grid {
	position: absolute;
	top: 0;
	left: 50%;
	transform-origin: top center;
}
.pcs-layer {
	position: absolute;
	left: var(--pcs-x, 0);
	top: var(--pcs-y, 0);
	font-size: var(--pcs-fs, 20px);
	line-height: var(--pcs-lh, normal);
	white-space: nowrap;
}
.pcs-layer.pcs-yc {
	top: calc(50% + var(--pcs-yo, 0px));
	transform: translateY(-50%);
}
.pcs-layer.pcs-xc {
	left: calc(50% + var(--pcs-xo, 0px));
	transform: translateX(-50%);
}
.pcs-layer.pcs-xc.pcs-yc {
	transform: translate(-50%, -50%);
}
.pcs-layer img {
	max-width: 100%;
	width: 100%;
	height: auto;
	display: block;
}
.pcs-layer:not([style*="width"]) img {
	width: auto;
}
.pcs-layer a {
	color: inherit;
	text-decoration: none;
}

/* ---- boxed (sliderLayout:auto) modules keep the photo at natural size ---- */
.pcs-slider--boxed .pcs-bg {
	background-size: auto;
}

/* ---- desktop dropdowns: Avada JS lifts the li's overflow clip on hover ---- */
.fusion-main-menu li.fusion-dropdown-menu:hover,
.fusion-main-menu li.fusion-dropdown-menu.pcs-touch-open {
	overflow: visible;
}
.fusion-main-menu li.pcs-touch-open > .sub-menu {
	visibility: visible;
	opacity: 1;
}

/* ---- Avada main.js inlines padding-bottom:0 on the copyright notice ---- */
@media only screen and (max-width: 800px) {
	.fusion-copyright-notice {
		padding: 0;
	}
}

/* ---- lightbox (visual match for the iLightBox dark skin) ---- */
.pcs-lb {
	position: fixed;
	inset: 0;
	z-index: 100010;
	background: #000;
	background: rgba(0, 0, 0, 0.7);
	display: none;
}
.pcs-lb.pcs-lb-open {
	display: block;
}
body.pcs-lb-noscroll {
	overflow: hidden;
}
.pcs-lb-stage {
	position: absolute;
	inset: 30px 90px 110px; /* clears the 100px thumbnail rail */
	display: flex;
	align-items: center;
	justify-content: center;
}
.pcs-lb-stage img {
	max-width: 100%;
	max-height: 100%;
	background: #000;
	padding: 5px; /* iLightBox dark-skin holder frame */
	box-sizing: border-box;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}
.pcs-lb .pcs-lb-caption {
	display: none; /* iLightBox dark skin shows no title text */
}
.pcs-lb button {
	position: absolute;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	border: 0;
	cursor: pointer;
	opacity: 0.8;
	z-index: 2;
}
.pcs-lb button:hover {
	opacity: 1;
}
.pcs-lb button.pcs-lb-close {
	top: 15px;
	left: 15px; /* dark-skin toolbar sits top-left */
	width: 40px;
	height: 40px;
	background-image: url(../legacy/site/plugins/fusion-builder/assets/images/iLightbox/dark-skin/x-mark-icon-64.png);
	background-size: 24px;
}
.pcs-lb button.pcs-lb-prev,
.pcs-lb button.pcs-lb-next {
	top: 50%;
	margin-top: -82px; /* center within the area above the thumb rail */
	width: 64px;
	height: 64px;
	background-size: 32px;
}
.pcs-lb button.pcs-lb-prev {
	left: 10px;
	background-image: url(../legacy/site/plugins/fusion-builder/assets/images/iLightbox/dark-skin/arrow-prev-icon-64.png);
}
.pcs-lb button.pcs-lb-next {
	right: 10px;
	background-image: url(../legacy/site/plugins/fusion-builder/assets/images/iLightbox/dark-skin/arrow-next-icon-64.png);
}
.pcs-lb-thumbs {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.pcs-lb-thumbs img {
	height: 70px;
	width: auto;
	cursor: pointer;
	opacity: 0.5;
}
.pcs-lb-thumbs img:hover,
.pcs-lb-thumbs img.pcs-lb-thumb-active {
	opacity: 1;
}
@media (max-width: 640px) {
	.pcs-lb-stage {
		inset: 20px 10px 110px;
	}
	.pcs-lb button.pcs-lb-prev {
		left: 0;
	}
	.pcs-lb button.pcs-lb-next {
		right: 0;
	}
}

/* ---- facebook page plugin iframe replaces the SDK widget ---- */
.pcs-fb {
	display: block;
	margin: 0 auto 2px;
	max-width: 100%;
}
