/* Foglight — animations.css
   Scroll-reveal state driven by assets/js/animations.js (IntersectionObserver).
   Elements are visible by default; JS only enhances when motion is allowed. */

[data-animate] {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.js-animations-ready [data-animate] {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity var(--duration-slow) var(--ease-out),
			transform var(--duration-slow) var(--ease-out);
	}

	.js-animations-ready [data-animate].is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Lightbox (assets/js/lightbox.js) --------------------------------------- */
.foglight-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 17, 17, 0.92);
	padding: var(--space-6);
}

.foglight-lightbox[hidden] {
	display: none;
}

.foglight-lightbox__figure {
	max-width: min(90vw, 1200px);
	max-height: 88vh;
	text-align: center;
}

.foglight-lightbox__image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	margin-inline: auto;
}

.foglight-lightbox__caption {
	margin-top: var(--space-3);
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--step--1);
}

.foglight-lightbox__close,
.foglight-lightbox__prev,
.foglight-lightbox__next {
	position: absolute;
	color: #ffffff;
	font-size: 2rem;
	line-height: 1;
	padding: var(--space-3);
}

.foglight-lightbox__close {
	top: var(--space-4);
	right: var(--space-4);
}

.foglight-lightbox__prev {
	left: var(--space-4);
	top: 50%;
	transform: translateY(-50%);
}

.foglight-lightbox__next {
	right: var(--space-4);
	top: 50%;
	transform: translateY(-50%);
}

body.foglight-lightbox-open {
	overflow: hidden;
}
