@import '@splidejs/splide/dist/css/themes/splide-default.min.css';

.splide {
	//height: calc(100vh - 150px);
	z-index: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	overflow-x: hidden;
	cursor: grab;
	&__track {
		height: 100%;
		width: 100%;
		overflow: visible;
		.splide__list {
			height: 100%;
			width: 100%;
			.splide__slide {
				height: 100%;
				width: 100%;
				background-position: 50% 50%;
				position: relative;
				display: flex;
				justify-content: center;

				.slide--image {
					height: 100%;
					width: 100%;
					img {
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
				}
				.slide--text {
					position: absolute;
					top: 40%;
					// max-width: 1250px;
					// width: 100%;
					color: $secondary-color;
					display: flex;
					align-items: flex-start;

					.box {
						max-width: 530px;
						background-color: rgba(0, 0, 0, 0.8);
						padding: 32px;
						transform: translateX(-50%);
						opacity: 0;
						transition: all 0.3s ease-in;
					}
					a {
						opacity: 0;
						transition: opacity 0.5s ease-in-out 0.1s;
						margin-top: 2%;
						&:last-child {
							transition-delay: 0.2s;
						}
					}
					@media (min-width: 1024px) {
						@media (max-height: 750px) {
							top: 25%;
						}
						@media (max-height: 670px) {
							a {
								margin-top: 1%;
								padding: 16px;
							}
						}
					}
				}
				&.is-active {
					.slide--text {
						.box {
							transform: translateX(0%);
							opacity: 1;
						}
						a {
							opacity: 1;
						}
					}
				}
			}
		}
	}
	&__arrow {
		//background: transparent;
		background: #ede6e68c;
		height: 40px;
		width: 40px;
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 1;
		transition: all 0.25s ease-in-out;

		&--prev {
			left: 2em;
		}
		&--next {
			right: 2em;
		}
		svg {
			height: 100%;
			width: 100%;
			//fill: $tertiary-color;
		}
		@media (max-width: 600px) {
			display: none;
			//background: transparent;
			height: 30px;
			width: 30px;
			&--prev {
				left: 1em;
			}
			&--next {
				right: 1em;
			}
		}
	}
	&__pagination {
		bottom: 2em;
		z-index: 0;
		li {
			border: 1px solid $secondary-color;
			border-radius: 50%;
			display: flex;
			margin: 0 4px;
		}
		&__page {
			background: $quaternary-color;
		}
	}
}
