/* Additions to the WordPress theme CSS for the EmDash port. */

/* Page bodies imported as inline HTML blocks keep the theme's own spacing. */
.emdash-html-block {
	margin: 0 !important;
}

/* Lightbox replacement (Lightbox 2.6 look: dark overlay, white frame, caption below) */
.apc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
}
.apc-lightbox[hidden] {
	display: none;
}
.apc-lightbox figure {
	margin: 0;
	max-width: 92vw;
}
.apc-lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 82vh;
	border: 10px solid #fff;
	border-radius: 3px;
	background: #fff;
}
.apc-lightbox figcaption {
	color: #ccc;
	padding: 8px 4px;
	font-weight: bold;
}
.apc-lightbox-close {
	position: absolute;
	top: 12px;
	right: 18px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
}

/* Contact form (forms plugin) laid out like the Contact Form 7 form: placeholders, no visible labels,
   Send button on the right. The fields get Bootstrap's .form-control/.btn classes from a script. */
.wpcf7 form.ec-form .ec-form-field {
	margin: 0 0 10px;
}
.wpcf7 form.ec-form .ec-form-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.wpcf7 form.ec-form textarea {
	height: auto;
	min-height: 160px;
}
.wpcf7 form.ec-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}
.wpcf7 form.ec-form .ec-form-nav {
	text-align: right;
}
.wpcf7 form.ec-form .ec-form-error {
	color: #f00;
	font-size: 1em;
	display: block;
}
.wpcf7 form.ec-form .ec-form-status {
	margin: 1em 0;
	padding: 0.4em 1em;
	border: 2px solid #398f14;
}
.wpcf7 form.ec-form .ec-form-status:empty {
	display: none;
}
@media (max-width: 767px) {
	.wpcf7 form.ec-form .ec-form-nav {
		text-align: center;
	}
}

/* Google map in place of the CP Google Maps plugin */
.contact-map {
	width: 100%;
	height: 450px;
	border: 0;
	margin: 10px auto;
	display: block;
}
