/* Additions to the original theme stylesheet for things WordPress plugins used to provide. */

/* Phone and close icons were missing (404) on the WordPress site; supplied here. */
header .phone-number .phone-icon {
	background-size: contain;
	background-repeat: no-repeat;
}
.mobile-menu #close-mobile-menu {
	background-size: contain;
	cursor: pointer;
}

/* Carousel without Bootstrap's jQuery plugin: fade between slides. */
#home-carousel .item {
	display: block;
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
}
#home-carousel .item.active {
	position: relative;
	opacity: 1;
	z-index: 1;
}
#home-carousel .carousel-control {
	z-index: 2;
}
#home-carousel .item img {
	width: 100%;
	height: auto;
}

/* EmDash images inside the theme's columns behave like the old <img> tags. */
.image-with-caption img,
.page-content .col-md-6 img {
	max-width: 100%;
	height: auto;
}

/* Showcase thumbnails: WordPress "alignleft size-thumbnail" */
.gallery a.lightbox {
	float: left;
	margin: 0 7px 7px 0;
}
.gallery a.lightbox img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	display: block;
}

/* Lightbox (replaces the Simple Lightbox plugin) */
.sjg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sjg-lightbox[hidden] {
	display: none;
}
.sjg-lightbox img {
	max-width: 90vw;
	max-height: 88vh;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
	background: #fff;
	padding: 6px;
}
.sjg-lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
	padding: 12px 18px;
}
.sjg-lightbox-close {
	top: 10px;
	right: 10px;
}
.sjg-lightbox-prev {
	left: 10px;
}
.sjg-lightbox-next {
	right: 10px;
}

/* Contact form: EmDash forms markup styled like Bootstrap 3 .form-group / .form-control / .btn-success */
.ec-form fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}
.ec-form-field {
	margin-bottom: 15px;
}
.ec-form-label {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 5px;
	font-weight: bold;
}
.ec-form-required {
	display: none;
}
.ec-form-input {
	display: block;
	width: 100%;
	height: 34px;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.42857;
	color: #555;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
.ec-form-input:focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
textarea.ec-form-input {
	height: auto;
	min-height: 200px;
}
.ec-form button[type="submit"],
.ec-form .ec-form-submit {
	display: inline-block;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.42857;
	border: 1px solid #4cae4c;
	border-radius: 4px;
	color: #fff;
	background-color: #5cb85c;
	cursor: pointer;
}
.ec-form button[type="submit"]:hover,
.ec-form .ec-form-submit:hover {
	background-color: #449d44;
	border-color: #398439;
}
/* Labels read "Name:" like the old form; the colon stays out of the notification email. */
.ec-form-label::after {
	content: ":";
}
