.custom-revolution-slider-wrapper {
	position: relative;
	margin: 0 auto;
	overflow: hidden;
	min-height: 300px;
}

.swiper-container {
	width: 100% !important;
	height: 100% !important;
}

.swiper-slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

.post-slide {
	background-size: cover;
	background-position: center;
}

.post-content {
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 20px;
	text-align: center;
	max-width: 80%;
	z-index: 2;
}

.post-content a {
	color: #fff;
	text-decoration: none;
}

.post-content a:hover {
	text-decoration: underline;
}

.slide-layers {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: #fff;
	z-index: 3;
	padding: 20px;
    max-width: 90%;
}

/* Layer-based effects (used when transition_effect is "bounce" or "outin") */
.rs-effect-bounce .slide-layers { animation: rs-bounce-in 0.8s ease both; }
@keyframes rs-bounce-in {
  0% { transform: translate(-50%, -45%) scale(0.95); opacity: 0; }
  60% { transform: translate(-50%, -52%) scale(1.02); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.rs-effect-outin .swiper-slide-prev .slide-layers { animation: rs-out 0.4s ease forwards; }
.rs-effect-outin .swiper-slide-next .slide-layers { animation: rs-in 0.4s 0.2s ease both; }
@keyframes rs-out { to { opacity: 0; transform: translate(-50%, -50%) scale(0.98); } }
@keyframes rs-in { from { opacity: 0; transform: translate(-50%, -50%) scale(1.02); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Extra layer effects */
.rs-effect-zoom-in .slide-layers { animation: rs-zoom-in 0.6s ease both; }
@keyframes rs-zoom-in { from { transform: translate(-50%, -50%) scale(0.92); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.rs-effect-zoom-out .slide-layers { animation: rs-zoom-out 0.6s ease both; }
@keyframes rs-zoom-out { from { transform: translate(-50%, -50%) scale(1.08); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.rs-effect-rotate-in .slide-layers { animation: rs-rotate-in 0.6s ease both; }
@keyframes rs-rotate-in { from { transform: translate(-50%, -50%) rotate(-6deg); opacity: 0; } to { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; } }

.rs-effect-flip-x .slide-layers { animation: rs-flip-x 0.6s ease both; transform-style: preserve-3d; }
@keyframes rs-flip-x { from { transform: translate(-50%, -50%) rotateX(-90deg); opacity: 0; } to { transform: translate(-50%, -50%) rotateX(0deg); opacity: 1; } }

.rs-effect-flip-y .slide-layers { animation: rs-flip-y 0.6s ease both; transform-style: preserve-3d; }
@keyframes rs-flip-y { from { transform: translate(-50%, -50%) rotateY(90deg); opacity: 0; } to { transform: translate(-50%, -50%) rotateY(0deg); opacity: 1; } }

.rs-effect-slide-up .slide-layers { animation: rs-slide-up 0.6s ease both; }
@keyframes rs-slide-up { from { transform: translate(-50%, -40%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

.rs-effect-slide-down .slide-layers { animation: rs-slide-down 0.6s ease both; }
@keyframes rs-slide-down { from { transform: translate(-50%, -60%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

.rs-effect-blur-in .slide-layers { animation: rs-blur-in 0.6s ease both; }
@keyframes rs-blur-in { from { filter: blur(10px); opacity: 0; } to { filter: blur(0); opacity: 1; } }

.slide-heading {
	font-size: 48px;
	margin: 0 0 10px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-subheading {
	font-size: 24px;
	margin: 0 0 20px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-button {
	display: inline-block;
	padding: 12px 24px;
	background-color: #1e73be;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.slide-button:hover {
	background-color: #135a9e;
}

.swiper-button-next,
.swiper-button-prev {
	color: #fff;
	z-index: 4;
}

.swiper-pagination-bullet-active {
	background: #1e73be;
}

@media (max-width: 768px) {
    .slide-heading { font-size: 32px; }
    .slide-subheading { font-size: 18px; }
    .slide-button { padding: 10px 20px; font-size: 14px; }
    /* Mobile force defaults (will be overridden by per-instance inline <style> with !important) */
    .custom-revolution-slider-wrapper .slide-heading,
    .custom-revolution-slider-wrapper .slide-subheading { margin: 0 0 16px 0; padding: 0 0 0 0; }
}