/**
 * Clientes Videos — Page Builder
 * Swiper CLS guard, pagination, modal lightbox.
 */

.cortex-pb-clientes-videos__slider:not(.swiper-initialized) {
	overflow: hidden;
}

.cortex-pb-clientes-videos__slider:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	flex-direction: row;
}

.cortex-pb-clientes-videos__slider:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 100%;
	width: 100%;
	margin-right: 16px;
}

@media (min-width: 768px) {
	.cortex-pb-clientes-videos__slider:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 calc(50% - 10px);
		width: calc(50% - 10px);
		margin-right: 20px;
	}
}

@media (min-width: 1024px) {
	.cortex-pb-clientes-videos__slider:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 calc(33.333% - 16px);
		width: calc(33.333% - 16px);
		margin-right: 24px;
	}
}

.cortex-pb-clientes-videos__slider .swiper-button-prev::after,
.cortex-pb-clientes-videos__slider .swiper-button-next::after,
.cortex-pb-clientes-videos__arrow.swiper-button-prev::after,
.cortex-pb-clientes-videos__arrow.swiper-button-next::after {
	display: none;
}

.cortex-pb-clientes-videos__arrow.swiper-button-prev,
.cortex-pb-clientes-videos__arrow.swiper-button-next {
	position: static;
	margin: 0;
	width: 2.75rem;
	height: 2.75rem;
}

.cortex-pb-clientes-videos__pagination.swiper-pagination {
	position: static !important;
	width: auto !important;
	transform: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.cortex-pb-clientes-videos__pagination .cortex-pb-clientes-videos__dot {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 40px;
	background: #d0d5dd;
	opacity: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
	border: none;
	transition: width 0.3s ease, background 0.3s ease;
}

.cortex-pb-clientes-videos__pagination .cortex-pb-clientes-videos__dot::before {
	content: "";
	position: absolute;
	inset: -18px;
}

.cortex-pb-clientes-videos__pagination .cortex-pb-clientes-videos__dot.is-active {
	width: 22px;
	background: #f59a3d;
}

.cortex-pb-clientes-videos__controls:has(.swiper-button-disabled.swiper-button-lock) {
	display: none;
}

/* Modal */
.cortex-pb-clientes-videos__modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.cortex-pb-clientes-videos__modal[hidden] {
	display: none !important;
}

.cortex-pb-clientes-videos__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 27, 42, 0.82);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

.cortex-pb-clientes-videos__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	border-radius: 2px;
	overflow: hidden;
	background: #0d1b2a;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	animation: cortex-cv-modal-in 0.28s ease;
}

@keyframes cortex-cv-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.cortex-pb-clientes-videos__modal-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background: #0d1b2a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cortex-pb-clientes-videos__modal-title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
	min-height: 1.3em;
}

.cortex-pb-clientes-videos__modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cortex-pb-clientes-videos__modal-close:hover,
.cortex-pb-clientes-videos__modal-close:focus-visible {
	background: #ef7f00;
	outline: none;
}

.cortex-pb-clientes-videos__modal-player iframe,
.cortex-pb-clientes-videos__modal-player video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

body.cortex-pb-clientes-videos-modal-open {
	overflow: hidden;
}
