/* Additions to the WordPress theme's compiled Tailwind (style.css) for the EmDash port. */

/* WordPress printed the theme's custom background (#ffffff) inline */
body {
	background-color: #fff;
}

/* Home slider: Slick's markup, cross-fading instead of jQuery sliding */
.home-slider .slick-track {
	position: relative;
	width: 100%;
}
.home-slider .slick-slide {
	display: block;
	position: absolute;
	inset: 0;
	float: none;
	opacity: 0;
	transition: opacity 0.6s ease;
	overflow: hidden;
}
.home-slider .slick-slide.slick-active {
	opacity: 1;
	z-index: 1;
}
.home-slider .slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}
.home-slider .slick-arrow {
	background: none;
	border: 0;
	cursor: pointer;
}

/* Image lightbox (replaces Easy FancyBox) */
dialog.hw-lightbox {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: 95vw;
	max-height: 95vh;
}
dialog.hw-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.8);
}
dialog.hw-lightbox img {
	display: block;
	max-width: 95vw;
	max-height: 90vh;
	margin: 0 auto;
}
dialog.hw-lightbox .hw-lightbox-caption {
	color: #fff;
	text-align: center;
	font-size: 1rem;
	padding: 0.5rem;
}
dialog.hw-lightbox .hw-lightbox-close {
	position: absolute;
	top: 0.25rem;
	right: 0.5rem;
	color: #fff;
	font-size: 2rem;
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 1;
}

/* Forms plugin inside the theme's .wpcf7 wrapper */
/* style.css covers text/email/select/textarea only; CF7 used text for the phone field */
.wpcf7 input[type="tel"] {
	width: 100%;
	display: block;
	border: 1px solid #9ca3af;
	border-radius: 0.375rem;
	padding: 0.75rem 1rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.wpcf7 .ec-form-label {
	display: block;
}
.wpcf7 .ec-form-submit {
	width: 100%;
	margin: 0;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
