/* Aeyhaye lightbox — vanilla, used by the Clients section */

.aey-lightbox[hidden] {
	display: none !important;
}

.aey-lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 220ms ease;
}

.aey-lightbox.is-open {
	opacity: 1;
}

.aey-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: zoom-out;
}

.aey-lightbox__stage {
	position: relative;
	z-index: 1;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	max-width: min(92vw, 1100px);
	width: 100%;
	transform: scale(0.96);
	transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aey-lightbox.is-open .aey-lightbox__stage {
	transform: scale(1);
}

.aey-lightbox__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 28px;
	padding: 28px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
	max-width: 100%;
	max-height: 80vh;
}

.aey-lightbox__img {
	display: block;
	max-width: min(85vw, 900px);
	max-height: calc(80vh - 56px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.aey-lightbox__caption {
	color: rgba(255, 255, 255, 0.9);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	min-height: 1em;
}

.aey-lightbox__close,
.aey-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 9999px;
	cursor: pointer;
	transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
}

.aey-lightbox__close:hover,
.aey-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.35);
}

.aey-lightbox__close:focus-visible,
.aey-lightbox__nav:focus-visible {
	outline: 2px solid #8ecfc0;
	outline-offset: 2px;
}

.aey-lightbox__close {
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
}

.aey-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 22px;
	line-height: 1;
}

.aey-lightbox.is-open .aey-lightbox__stage {
	transform: scale(1);
}

.aey-lightbox__nav--prev {
	left: 18px;
}

.aey-lightbox__nav--next {
	right: 18px;
}

@media (max-width: 640px) {
	.aey-lightbox__frame {
		padding: 18px;
		border-radius: 22px;
	}
	.aey-lightbox__nav {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	.aey-lightbox__nav--prev { left: 10px; }
	.aey-lightbox__nav--next { right: 10px; }
	.aey-lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 24px; }
}

body.aey-lightbox-open {
	overflow: hidden;
}
