/* Native lightbox + video modal + minimal animate (Lightbox/Lity/Animate.css yerine) */

/* === Lightbox & Video Modal ortak iskelet === */
.cms-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.cms-modal.open {
	display: flex;
	opacity: 1;
}
.cms-modal__inner {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
}

/* Görsel lightbox */
.cms-modal__img {
	max-width: 90vw;
	max-height: 80vh;
	display: block;
	border-radius: 4px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.cms-modal__title {
	color: #fff;
	text-align: center;
	margin-top: 12px;
	font-size: 14px;
}

/* Video iframe wrapper - 16:9 */
.cms-modal__video {
	position: relative;
	width: min(90vw, 960px);
	aspect-ratio: 16 / 9;
}
.cms-modal__video iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 4px;
}

/* Butonlar */
.cms-modal__close,
.cms-modal__prev,
.cms-modal__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background 0.15s;
}
.cms-modal__close:hover,
.cms-modal__prev:hover,
.cms-modal__next:hover {
	background: rgba(255, 255, 255, 0.25);
}
.cms-modal__close {
	top: 16px;
	right: 16px;
}
.cms-modal__prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}
.cms-modal__next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}
.cms-modal--single .cms-modal__prev,
.cms-modal--single .cms-modal__next {
	display: none;
}

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

@media (max-width: 640px) {
	.cms-modal__close,
	.cms-modal__prev,
	.cms-modal__next {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
	.cms-modal__prev {
		left: 8px;
	}
	.cms-modal__next {
		right: 8px;
	}
}

/* === Minimal animate.css ikamesi === */
/* slider hero kullanımı: data-animation-in="fadeInLeft" / "fadeInRight" + data-animation-out="animate-out fadeInLeft|Right" */
.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}
.animated.fadeInLeft {
	animation-name: cmsFadeInLeft;
}
.animated.fadeInRight {
	animation-name: cmsFadeInRight;
}
.animated.animate-out.fadeInLeft {
	animation-name: cmsFadeOutLeft;
}
.animated.animate-out.fadeInRight {
	animation-name: cmsFadeOutRight;
}

@keyframes cmsFadeInLeft {
	from {
		opacity: 0;
		transform: translate3d(-40px, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes cmsFadeInRight {
	from {
		opacity: 0;
		transform: translate3d(40px, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes cmsFadeOutLeft {
	from {
		opacity: 1;
		transform: none;
	}
	to {
		opacity: 0;
		transform: translate3d(-40px, 0, 0);
	}
}
@keyframes cmsFadeOutRight {
	from {
		opacity: 1;
		transform: none;
	}
	to {
		opacity: 0;
		transform: translate3d(40px, 0, 0);
	}
}
