/* ==========================================================================
   UNESCO Video Carousel — Frontend styles
   All selectors are scoped under uvc- prefixed classes to avoid any collision
   with other plugins' carousel/slider markup or styles.
   ========================================================================== */

.uvc-carousel-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.uvc-carousel-wrapper * {
	box-sizing: border-box;
}

.uvc-swiper {
	width: 100%;
	overflow: hidden;
}

.uvc-swiper .swiper-slide {
	height: auto;
}

.uvc-card {
	display: block;
	width: 100%;
	cursor: grab;
}

.uvc-card:active {
	cursor: pointer;
}

.uvc-card-cover {
	position: relative;
	width: 100%;
	height: 300px;
	border-radius: 25px;
	background-color: #e2e2e2;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
	transition: filter 0.25s ease;
}

.uvc-card:hover .uvc-card-cover {
	filter: brightness(0.9);
}

.uvc-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 22px;
	tex-align:justify;
	transition: transform 0.2s ease, background-color 0.2s ease;
	pointer-events: none;
}

.uvc-card:hover .uvc-play-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

.uvc-play-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.uvc-card-title {
	margin-top: 20px;
	padding-left: 20px;
	padding-right: 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #1a1a1a;
	text-align: justify;
	direction:rtl;
}

/* ==========================================================================
   Modal / lightweight lightbox player
   ========================================================================== */

.uvc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

.uvc-modal.is-open {
	display: flex;
}

.uvc-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.uvc-modal-inner {
	position: relative;
	z-index: 1;
	width: min(90vw, 960px);
	max-width: 960px;
}

.uvc-modal-frame-holder {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.uvc-modal-frame-holder iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.uvc-modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.uvc-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
	.uvc-modal-close {
		top: -40px;
		right: 0;
	}
}

body.uvc-modal-open {
	overflow: hidden;
}
