/* =========================================================
   Naya ACF Slider — self-contained, nyac- namespace.
   Completely independent from the gallery widget.
   ========================================================= */
.nyac-slider {
	position: relative;
	width: 100%;
	--nyac-s-radius: 16px;
	--nyac-s-height: 520px;
	--nyac-s-fade: 800ms;
}

.nyac-slider__viewport {
	position: relative;
	width: 100%;
	height: var(--nyac-s-height);
	border-radius: var(--nyac-s-radius);
	overflow: hidden;
}

.nyac-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	opacity: 0;
	pointer-events: none;
	cursor: default;
	transition: opacity var(--nyac-s-fade) ease;
}

.nyac-slide.nyac-active { opacity: 1; pointer-events: auto; }
.nyac-slider--lightbox .nyac-slide.nyac-active { cursor: pointer; }

.nyac-slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.nyac-slide:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.nyac-slider-notice {
	padding: 16px;
	border: 1px dashed #c9c9c9;
	border-radius: 8px;
	color: #777;
	font-size: 14px;
	text-align: center;
}

/* =========================================================
   Slider's own lightbox (nyac- namespace)
   ========================================================= */
.nyac-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(8, 8, 10, .92);
	opacity: 0;
	transition: opacity .25s ease;
}
.nyac-lightbox.nyac-open { display: flex; opacity: 1; }

.nyac-lightbox__img {
	max-width: 90vw;
	max-height: 86vh;
	object-fit: contain;
	border-radius: 6px;
	user-select: none;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.nyac-lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}
.nyac-lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.nyac-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.nyac-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.nyac-lightbox__close { top: 20px; right: 20px; font-size: 28px; }

.nyac-lightbox__counter {
	position: absolute;
	top: 26px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
}

.nyac-lightbox__caption {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 80vw;
	text-align: center;
	color: rgba(255, 255, 255, .9);
	font-size: 14px;
}

.nyac-lightbox.nyac-single .nyac-lightbox__prev,
.nyac-lightbox.nyac-single .nyac-lightbox__next,
.nyac-lightbox.nyac-single .nyac-lightbox__counter { display: none; }

@media (max-width: 600px) {
	.nyac-lightbox__prev { left: 8px; }
	.nyac-lightbox__next { right: 8px; }
	.nyac-lightbox__btn { width: 42px; height: 42px; }
}
