.sophisticated-modal-overlay-9898 {
	opacity: 0;
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8); /* Fallback */
	z-index: 99999;
	align-items: center;
	justify-content: center;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	display: none;
}

.sophisticated-modal-overlay-9898.sophisticated-modal-show-9898 {
	opacity: 1;
	visibility: visible;
}

.sophisticated-modal-content-wrap-9898 {
	position: relative;
	background-color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	max-height: 90vh;
	overflow-y: auto;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
	margin: 0 auto;
}

.sophisticated-modal-close-9898 {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	color: #333;
	z-index: 10;
	transition: color 0.3s ease, transform 0.3s ease;
}

.sophisticated-modal-close-9898:hover {
	transform: scale(1.1);
}

.sophisticated-modal-body-9898 {
	color: #666;
}

.sophisticated-modal-body-9898 img {
	max-width: 100%;
	height: auto;
	display: block;
}

.sophisticated-modal-caption-9898 {
	text-align: center;
	margin-top: 15px;
	font-style: italic;
	color: #777;
}

.sophisticated-modal-body-9898 iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
}

/* Animations */
/* fade-in-zoom */
[data-animation="fade-in-zoom"] .sophisticated-modal-content-wrap-9898 {
	transform: scale(0.7);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="fade-in-zoom"] .sophisticated-modal-content-wrap-9898 {
	transform: scale(1);
	opacity: 1;
}

/* slide-in-right */
[data-animation="slide-in-right"] .sophisticated-modal-content-wrap-9898 {
	transform: translateX(100%);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="slide-in-right"] .sophisticated-modal-content-wrap-9898 {
	transform: translateX(0);
	opacity: 1;
}

/* slip-in-top */
[data-animation="slip-in-top"] .sophisticated-modal-content-wrap-9898 {
	transform: translateY(-100%);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="slip-in-top"] .sophisticated-modal-content-wrap-9898 {
	transform: translateY(0);
	opacity: 1;
}

/* fade-in-zoom-out */
[data-animation="fade-in-zoom-out"] .sophisticated-modal-content-wrap-9898 {
	transform: scale(1.5);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="fade-in-zoom-out"] .sophisticated-modal-content-wrap-9898 {
	transform: scale(1);
	opacity: 1;
}

/* flip-vertical */
[data-animation="flip-vertical"] {
	perspective: 1300px;
}
[data-animation="flip-vertical"] .sophisticated-modal-content-wrap-9898 {
	transform-style: preserve-3d;
	transform: rotateX(-70deg);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="flip-vertical"] .sophisticated-modal-content-wrap-9898 {
	transform: rotateX(0deg);
	opacity: 1;
}

/* rotate-horizontal */
[data-animation="rotate-horizontal"] {
	perspective: 1300px;
}
[data-animation="rotate-horizontal"] .sophisticated-modal-content-wrap-9898 {
	transform-style: preserve-3d;
	transform: rotateY(-70deg);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="rotate-horizontal"] .sophisticated-modal-content-wrap-9898 {
	transform: rotateY(0deg);
	opacity: 1;
}

/* rotate-down-top */
[data-animation="rotate-down-top"] {
	perspective: 1300px;
}
[data-animation="rotate-down-top"] .sophisticated-modal-content-wrap-9898 {
	transform-style: preserve-3d;
	transform: translateY(-100%) rotateX(90deg);
	transform-origin: top;
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="rotate-down-top"] .sophisticated-modal-content-wrap-9898 {
	transform: translateY(0) rotateX(0deg);
	opacity: 1;
}

/* rotate-up-bottom */
[data-animation="rotate-up-bottom"] {
	perspective: 1300px;
}
[data-animation="rotate-up-bottom"] .sophisticated-modal-content-wrap-9898 {
	transform-style: preserve-3d;
	transform: translateY(100%) rotateX(-90deg);
	transform-origin: bottom;
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="rotate-up-bottom"] .sophisticated-modal-content-wrap-9898 {
	transform: translateY(0) rotateX(0deg);
	opacity: 1;
}

/* fade-scale */
[data-animation="fade-scale"] .sophisticated-modal-content-wrap-9898 {
	transform: scale(0.8);
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="fade-scale"] .sophisticated-modal-content-wrap-9898 {
	transform: scale(1);
	opacity: 1;
}

/* 3d-sign */
[data-animation="3d-sign"] {
	perspective: 1300px;
}
[data-animation="3d-sign"] .sophisticated-modal-content-wrap-9898 {
	transform-style: preserve-3d;
	transform: rotateX(-60deg);
	transform-origin: 50% 0;
	opacity: 0;
}
.sophisticated-modal-show-9898[data-animation="3d-sign"] .sophisticated-modal-content-wrap-9898 {
	transform: rotateX(0deg);
	opacity: 1;
}

/* Exit Animation (Scale Down) */
.sophisticated-modal-closing-9898 .sophisticated-modal-content-wrap-9898 {
	transform: scale(0.8) !important; /* Force scale down on close regardless of entrance animation */
	opacity: 0 !important;
}

/* Hide modal wrapper in editor completely except for the placeholder */
.elementor-editor-active .sophisticated-modal-overlay-9898 {
	display: none !important;
}