/* Plethora Custom Slider — Frontend Styles */

.pcs-slider-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	--pcs-desktop-height: 500px;
	--pcs-mobile-height: 300px;
}

.pcs-slider-track {
	position: relative;
	width: 100%;
	height: var(--pcs-desktop-height);
}

.pcs-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, transform .6s ease;
	transform: translateX(30px);
}

.pcs-slide.pcs-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	position: relative;
}

.pcs-slider-wrap[data-transition="fade"] .pcs-slide {
	transform: none;
}

/* Layer 1: main image — fills the entire slide, same size as the slider */
.pcs-slide-media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.pcs-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Layer 2: optional small overlay image, positioned by style */
.pcs-slide-overlay {
	position: absolute;
	z-index: 3;
	max-width: 90%;
}

.pcs-slide-overlay img {
	width: 100%;
	height: auto;
	display: block;
}

.pcs-pos-top-left     { top: 20px; left: 20px; }
.pcs-pos-top-right    { top: 20px; right: 20px; }
.pcs-pos-bottom-left  { bottom: 20px; left: 20px; }
.pcs-pos-bottom-right { bottom: 20px; right: 20px; }
.pcs-pos-center       { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pcs-pos-bottom-center{ bottom: 20px; left: 50%; transform: translateX(-50%); }

/* Layer 3: text content, aligned left or right */
.pcs-slide-content-wrap {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

.pcs-content-left {
	justify-content: flex-start;
}

.pcs-content-right {
	justify-content: flex-end;
}

/* No fixed panel behind the content anymore — each element hugs its own
   text width, and only shows a background if that element's "Add Shade"
   option is turned on. */
.pcs-slide-content {
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pcs-content-left .pcs-slide-content {
	align-items: flex-start;
	text-align: left;
}

.pcs-content-right .pcs-slide-content {
	align-items: flex-end;
	text-align: right;
}

.pcs-slide-title,
.pcs-slide-subtitle,
.pcs-slide-extra-title {
	margin: 0;
	line-height: 1.3;
	max-width: 100%;
}

.pcs-slide-title {
	font-weight: 800;
}

.pcs-slide-extra-title {
	font-weight: 700;
}

.pcs-slide-tags {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 100%;
}

.pcs-content-right .pcs-slide-tags {
	align-items: flex-end;
}

.pcs-tag {
	display: inline-block;
	width: fit-content;
	line-height: 1.4;
}

/* Elements with "Add Shade" turned on get a tight box around just their own text. */
.pcs-slide-title.pcs-has-shade,
.pcs-slide-subtitle.pcs-has-shade,
.pcs-slide-extra-title.pcs-has-shade,
.pcs-tag.pcs-has-shade {
	padding: 6px 14px;
	border-radius: 2px;
	width: fit-content;
}

/* Button is intentionally compact */
.pcs-slide-button {
	display: inline-block;
	text-decoration: none;
	padding: 8px 18px;
	font-weight: 600;
	letter-spacing: .02em;
	border-radius: 3px;
	transition: filter .3s ease;
}

.pcs-slide-button:hover {
	filter: brightness(0.92);
}

/* When "Add Background" is off, the button becomes plain colored text. */
.pcs-slide-button-plain {
	padding: 4px 0;
	text-decoration: underline;
}

/* Arrows */
.pcs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .3s ease;
}

.pcs-arrow:hover {
	background: rgba(255,255,255,.3);
}

.pcs-prev { left: 15px; }
.pcs-next { right: 15px; }

/* Dots */
.pcs-dots {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}

.pcs-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,.4);
	border: none;
	cursor: pointer;
	padding: 0;
}

.pcs-dot-active {
	background: #fff;
}

/* Responsive */
@media (max-width: 782px) {
	.pcs-slider-track {
		height: var(--pcs-mobile-height);
	}
	.pcs-slide-content-wrap {
		padding: 0 18px;
	}
	.pcs-slide-content {
		max-width: 92%;
		padding: 14px 16px;
	}
	.pcs-slide-overlay {
		max-width: 60px !important;
		width: 60px !important;
	}
	.pcs-arrow {
		width: 34px;
		height: 34px;
	}
}
