/* ========================================
   Pretpot Stylish Reveal Media 1 Widget
   Slit Reveal Effect - Image comes OUT of line
   ======================================== */

.pretpot-srm1-wrapper {
	position: relative;
	width: 100%;
	min-height: 100vh;
	overflow: visible;
}

/* Content Section - Fades out on scroll */
.pretpot-srm1-content {
	position: relative;
	z-index: 10;
	padding: 80px 20px 40px;
}

.pretpot-srm1-heading {
	margin: 0 0 20px;
	font-size: 48px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	transition: opacity 0.1s linear;
}

.pretpot-srm1-description {
	margin: 0 0 40px;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	opacity: 0.8;
	transition: opacity 0.1s linear;
}

/* Slit Container - Contains the media and masks it */
.pretpot-srm1-slit-container {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	z-index: 5;
}

/* Media Container - Positioned with 20% always visible above line */
.pretpot-srm1-media-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	/* 20% of media always visible above the line */
	padding-top: 0;
}

.pretpot-srm1-media-inner {
	position: relative;
	width: 60%;
	height: 100%;
	overflow: hidden;
	/* Start with 20% visible (translateY 80%), fully revealed at 0% */
	transform: translateY(80%);
	will-change: transform;
}

.pretpot-srm1-media-inner.pretpot-srm1-clickable {
	cursor: pointer;
}

/* The Line/Slit - Positioned at bottom of content, above image */
.pretpot-srm1-line {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	height: 2px;
	background-color: #ffffff;
	z-index: 20;
	pointer-events: none;
}

/* Play Button Overlay */
.pretpot-srm1-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 15;
	opacity: 1;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.pretpot-srm1-play-button::before {
	content: '';
	width: 0;
	height: 0;
	border-left: 25px solid #000;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	margin-left: 5px;
}

.pretpot-srm1-media-inner:hover .pretpot-srm1-play-button {
	transform: translate(-50%, -50%) scale(1.1);
}

.pretpot-srm1-media-inner.playing .pretpot-srm1-play-button {
	opacity: 0;
}

/* Media Elements */
.pretpot-srm1-media-inner img,
.pretpot-srm1-media-inner video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pretpot-srm1-media-inner iframe {
	width: 100%;
	height: 100%;
	border: none;
	object-fit: cover;
}

/* Popup Overlay */
.pretpot-srm1-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pretpot-srm1-popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

.pretpot-srm1-popup-overlay.blur-bg {
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	background-color: rgba(255, 255, 255, 0.1);
}

.pretpot-srm1-popup-overlay.dim-bg {
	background-color: rgba(0, 0, 0, 0.85);
}

.pretpot-srm1-popup-close {
	position: absolute;
	top: 30px;
	right: 40px;
	font-size: 50px;
	color: #fff;
	cursor: pointer;
	z-index: 10001;
	line-height: 1;
	transition: transform 0.2s ease, opacity 0.2s ease;
	opacity: 0.8;
}

.pretpot-srm1-popup-close:hover {
	transform: scale(1.2);
	opacity: 1;
}

.pretpot-srm1-popup-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pretpot-srm1-popup-content img,
.pretpot-srm1-popup-content video {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.pretpot-srm1-popup-content iframe {
	width: 80vw;
	height: 45vw;
	max-height: 90vh;
	border: none;
}

/* Tablet Styles */
@media (max-width: 1024px) {
	.pretpot-srm1-heading {
		font-size: 36px;
	}

	.pretpot-srm1-slit-container {
		height: 350px;
	}

	.pretpot-srm1-media-inner {
		width: 75%;
	}
}

/* Mobile Styles */
@media (max-width: 768px) {
	.pretpot-srm1-content {
		padding: 60px 15px 30px;
	}

	.pretpot-srm1-heading {
		font-size: 28px;
	}

	.pretpot-srm1-description {
		font-size: 14px;
		margin-bottom: 30px;
	}

	.pretpot-srm1-line {
		width: 95%;
	}

	.pretpot-srm1-slit-container {
		height: 300px;
	}

	.pretpot-srm1-media-inner {
		width: 90%;
	}

	.pretpot-srm1-play-button {
		width: 60px;
		height: 60px;
	}

	.pretpot-srm1-play-button::before {
		border-left: 20px solid #000;
		border-top: 12px solid transparent;
		border-bottom: 12px solid transparent;
	}

	.pretpot-srm1-popup-close {
		font-size: 36px;
		top: 15px;
		right: 20px;
	}
}

/* Extra Small Mobile */
@media (max-width: 480px) {
	.pretpot-srm1-heading {
		font-size: 24px;
	}

	.pretpot-srm1-slit-container {
		height: 250px;
	}

	.pretpot-srm1-media-inner {
		width: 95%;
	}
}

/* Elementor Editor Styles */
.elementor-editor-active .pretpot-srm1-wrapper {
	min-height: auto;
}

.elementor-editor-active .pretpot-srm1-slit-container {
	height: 400px;
	overflow: visible;
}

.elementor-editor-active .pretpot-srm1-media-inner {
	transform: translateY(0);
}