@import "settings/elementor-breakpoints";
@import "settings/variables";

.civi-modern-slider {
	.slide-bg-wrap {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
	}

	.slide-bg {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: $primary_color;
	}

	.container,
	.row {
		height: 100%;
	}

	.container {
		padding-left: 15px;
		padding-right: 15px;
	}

	.slide-content {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
	}

	.slide-layers {
		max-width: 600px;
		padding: 30px 0;
	}

	.sub-title-wrap {
		margin: 0 0 15px;
	}

	.sub-title {
		display: inline-block;
		font-size: 15px;
		font-weight: 600;
		line-height: 2;
		text-transform: uppercase;
		letter-spacing: 2px;
		color: #fff;
		margin-bottom: 0;
	}

	.title {
		font-size: 50px;
		line-height: 1.4;
		color: #fff;
		margin-bottom: 0;
	}

	.description-wrap {
		margin-top: 30px;
	}

	.description {
		font-size: 20px;
		color: #fff;
	}

	.button-wrap {
		margin-top: 34px;
	}

	.civi-button {
		display: inline-flex;
		min-width: 160px;
	}
}

.civi-slide-bg-animation-ken-burns {
	.slide-bg-wrap {
		-webkit-transform: scale(1.35);
		transform: scale(1.35);
		backface-visibility: hidden;
	}

	&.swiper-slide-active {
		.slide-bg-wrap {
			transform: scale(1);
			transition: transform 11s cubic-bezier(0.1, 0.2, 0.7, 1);
		}
	}
}

.slide-layer-transition {
	.animated {
		.slide-layer {
			transform: translateY(0);
			opacity: 1;
			visibility: visible;
			transition: all 0.6s cubic-bezier(0.1, 0.2, 0.7, 1);
		}

		.slide-layer-wrap {
			+ .slide-layer-wrap {
				.slide-layer {
					transition-delay: 0.2s;
				}

				+ .slide-layer-wrap {
					.slide-layer {
						transition-delay: 0.4s;
					}
				}
			}
		}
	}

	.slide-layer {
		opacity: 0;
		visibility: hidden;
		transform: translateY(30px);
		transition: all 0.1s;
	}
}

@include elementor-breakpoint-down(md) {
	.civi-modern-slider {
		.title {
			font-size: 40px;
		}
	}
}

@include elementor-breakpoint-down(sm) {
	.civi-modern-slider {
		.title {
			font-size: 30px;
		}
	}
}
