/* ==========================================================================
STYLES
========================================================================== */

#ipad-animation {
	align-content: center;
	/* height: 100svh; */
	margin-block-start: 0;
	.frames-container {
		overflow: hidden;
		position: absolute;
		width: 100%;
		height: 100%;
		display: none;
		img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			object-fit: contain;
		}
	}
	.content {
		aspect-ratio: 1.28 / 1;
		max-width: 600px;
		margin: 0 auto;
		position: relative;
	}
	.wrap-owl-tablet-demo {
		/* position: absolute;
		width: 100%;
		height: 100%; */
		z-index: 99;
		margin-block: var(--wp--custom--main-size);
		position: relative;
		.owl-tablet-demo {
			&:before {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-image: url(../assets/convertido_90.webp);
				background-size: 100% auto;
				background-repeat: no-repeat;
			}
		}
		.tablet-navigation {
			display: flex;
			flex-wrap: nowrap;
			gap: calc(var(--wp--custom--main-size) * .5);
			margin-block-end: var(--wp--custom--main-size);
			margin-inline-start: calc(var(--wp--custom--main-size) * -1);
			/* position: absolute;
			transform: translateY(-150%);
			left: calc(var(--wp--custom--main-size) * -1); */
			z-index: 99;
			.item {
				flex: 0 0 80px;
				cursor: pointer;
				text-transform: uppercase;
				font-size: 10px;
				text-align: center;
				position: relative;
				opacity: .5;
				transition: opacity .3s ease-out;
				&.active {
					opacity: 1;
				}
				p {
					margin: .5rem 0 0 0;
					font-weight: 600;
				}
				img {
					aspect-ratio: 1/1;
					width: 35px;
					object-fit: contain;
				}
				&:hover {
					opacity: 1;
				}
			}
		}
	}
	.video {
		video {
			width: 100%;
			height: 100%;
			object-fit: cover;
			aspect-ratio: 1.28 / 1;
			mask-image: url(../assets/mask.png);
			mask-repeat: no-repeat;
			mask-size: cover;
			mask-position: center;
			padding: 2.4%;
			display: block;
		}
		.description {
			padding-top: var(--wp--custom--main-size);
			max-width: 300px;
			font-size: 0.875rem;
			h3 {
				text-transform: uppercase;
				font-size: 1rem;
				font-weight: 600;
			}
			p {
				margin-top: 1rem;
			}
			.btn-link {
				padding: 0;
				font-size: 0.75rem;
				text-decoration: none;
			}
		}
	}

}

@media (max-width: 767px) {
	#ipad-animation .wrap-owl-tablet-demo .tablet-navigation {
		padding-inline: var(--wp--custom--main-size);
		width: 100vw;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		-ms-overflow-style: -ms-autohiding-scrollbar;
	}
	#ipad-animation .wrap-owl-tablet-demo .tablet-navigation::-webkit-scrollbar {
		display: none;
	}
}

@media (min-width: 768px) {
	#ipad-animation {
		.wrap-owl-tablet-demo {
			.tablet-navigation {
				left: unset;
				width: 100%;
				gap: 6px;
				justify-content: center;
			}
		}
	}
}

@media (min-width: 992px) {
	#ipad-animation {
		.wrap-owl-tablet-demo {
			.tablet-navigation {
				width: auto;
				flex-direction: column;
				gap: calc(var(--wp--custom--main-size) * .5);
				transform: translateY(-50%);
				left: -120px;
				top: 50%;
				position: absolute;
				&.disabled {
					pointer-events: none;
				}
				.item {
					flex: 0 0 auto;
					&::after {
						content: '';
						position: absolute;
						top: 18px;
						left: 100%;
						width: 0;
						height: 2px;
						background-color: var(--wp--preset--color--primary);
						transform-origin: 0 100%;
						transition: width .3s ease-out;
					}
					&.active {
						&:after {
							width: 65%;
						}
					}
				}
			}
			.owl-tablet-demo {
				.owl-stage-outer {
					overflow: unset;
				}
				.owl-item:not(.active) {
					opacity: 0;
					pointer-events: none;
					/* .video {
						opacity: 0;
					} */
				}
			}
		}
		.video {
			position: relative;
			.description {
				padding-inline-start: calc(var(--wp--custom--main-size) * .5);
				width: 190px;
				max-width: unset;
				position: absolute;
				left: 100%;
				z-index: 99;
				top: 0;
			}
		}
	}
}

@media (min-width: 1200px) {
	#ipad-animation {
		height: auto;
		.content {
			max-width: 650px;
		}
		.video {
			.description {
				padding-inline-start: var(--wp--custom--main-size);
				width: 200px;
			}
		}
	}
}

@media (min-width: 1300px) {
	#ipad-animation {
		.video {
			.description {
				width: 250px;
			}
		}
	}
}