/*
Theme Name: AlignedRight
Template: twentytwentyfive
Version: 1.0.0
Description: Clean rebuild of the AlignedRight Chiropractic site, child theme of the WordPress-core-maintained Twenty Twenty-Five block theme. No third-party theme code.
*/

/* Homepage hero carousel */
.ar-hero-carousel {
	position: relative;
	min-height: 480px;
	overflow: hidden;
	isolation: isolate;
}

.ar-hero-carousel__track {
	position: absolute;
	inset: 0;
}

.ar-hero-carousel__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.8s ease;
}

.ar-hero-carousel__slide.is-active {
	opacity: 1;
}

.ar-hero-carousel__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--wp--preset--color--brand-dark);
	opacity: 0.3;
}

.ar-hero-carousel__content {
	position: relative;
	z-index: 1;
	max-width: var(--wp--style--global--content-size, 1100px);
	margin: 0 auto;
	padding: 100px 24px;
}

.ar-hero-carousel__eyebrow {
	margin: 0 0 0.5em;
	color: var(--wp--preset--color--brand-green);
	font-weight: 700;
	text-transform: uppercase;
}

.ar-hero-carousel__heading {
	margin: 0 0 0.5em;
	color: var(--wp--preset--color--brand-white);
	font-size: 3rem;
}

.ar-hero-carousel__lead {
	margin: 0 0 1.5em;
	color: var(--wp--preset--color--brand-white);
	max-width: 40em;
}

.ar-hero-carousel__button {
	display: inline-block;
	padding: 0.7em 1.4em;
	border: 2px solid var(--wp--preset--color--brand-white);
	border-radius: 2px;
	color: var(--wp--preset--color--brand-white);
	text-decoration: none;
}

.ar-hero-carousel__button:hover,
.ar-hero-carousel__button:focus {
	background-color: var(--wp--preset--color--brand-white);
	color: var(--wp--preset--color--brand-dark);
}

.ar-hero-carousel__dots {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.ar-hero-carousel__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid var(--wp--preset--color--brand-white);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.ar-hero-carousel__dot.is-active {
	background-color: var(--wp--preset--color--brand-white);
}

@media (max-width: 600px) {
	.ar-hero-carousel__heading {
		font-size: 2rem;
	}

	.ar-hero-carousel__content {
		padding: 72px 20px;
	}

	/* Gutenberg writes a fixed pixel width as an inline style on resized
	   images, which beats any non-!important rule in this stylesheet. */
	.wp-block-image.is-resized img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
	}
}
