/**
 * Scroll reveal. Opt in: class aa-reveal on any block.
 * Same model as the IG lander (.aa-ig-reveal): hidden until .is-in.
 */

.aa-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.aa-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Hub lodge cards: crop the zoom so the photo stays inside the frame. */
.aa-chile-card .wp-block-image {
	overflow: hidden;
}

.aa-chile-card .wp-block-image img {
	transition: transform 0.35s ease;
}

.aa-chile-card .wp-block-image:hover img {
	transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.aa-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.aa-chile-card .wp-block-image img {
		transition: none;
	}

	.aa-chile-card .wp-block-image:hover img {
		transform: none;
	}
}
