/* Project Preview Menu — front-end layout */

/* --------------------------------------------------------------------------
 * Minimal Swiper structural styles, scoped to this widget. These guarantee the
 * slideshow renders on the front end even if Elementor's own Swiper stylesheet
 * isn't enqueued on the page. Scoping to .ppm-galleries avoids touching any
 * other Swiper instances on the site.
 * ----------------------------------------------------------------------- */
.ppm-galleries .swiper {
	position: relative;
	overflow: hidden;
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 1;
}

.ppm-galleries .swiper-wrapper {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	box-sizing: content-box;
	transition-property: transform;
	z-index: 1;
}

.ppm-galleries .swiper-slide {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	transition-property: transform;
}

.ppm-galleries .swiper-fade .swiper-slide {
	pointer-events: none;
	transition-property: opacity;
}

.ppm-galleries .swiper-fade .swiper-slide-active {
	pointer-events: auto;
}


.ppm-wrap {
	display: flex;
	gap: 40px;
	align-items: stretch;
}

/* ---- Titles column ---- */
.ppm-titles {
	flex: 0 0 35%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.ppm-title {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.6s ease, background-color 0.6s ease, opacity 0.6s ease;
}

a.ppm-title:hover,
a.ppm-title:focus {
	text-decoration: none;
}

.ppm-title:not(.is-active) {
	opacity: 0.55;
}

.ppm-title.is-active,
.ppm-title:hover,
.ppm-title:focus-visible {
	opacity: 1;
}

/* ---- Galleries column ---- */
.ppm-galleries {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 480px;
	overflow: hidden;
}

.ppm-gallery {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	z-index: 1;
}

.ppm-gallery.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.ppm-swiper {
	width: 100%;
	height: 100%;
}

.ppm-swiper .swiper-slide {
	overflow: hidden;
}

.ppm-img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
	.ppm-wrap {
		flex-direction: column !important;
	}

	.ppm-titles {
		flex-basis: auto;
		flex-direction: row;
		flex-wrap: wrap;
	}
}
