/* New bits for the static site (things the WordPress plugins' JavaScript used to do). */

/* Sliders (was Owl Carousel). Fade sliders stack their slides; the others slide sideways. */
.ev-owl.owl-carousel { display: block; visibility: visible; }
.ev-owl .owl-stage-outer { position: relative; overflow: hidden; }
.ev-owl.ev-fade .owl-stage { display: grid; transform: none !important; width: 100%; }
.ev-owl.ev-fade .owl-item { grid-area: 1 / 1; float: none; width: 100%; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.ev-owl.ev-fade .owl-item.active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.ev-owl.ev-slide .owl-stage { display: flex; transition: transform .7s ease; width: 100%; }
.ev-owl.ev-slide .owl-item { float: none; flex: 0 0 100%; max-width: 100%; }
.ev-owl:not(.ev-fade):not(.ev-slide) .owl-item:not(:first-child) { display: none; }
.ev-owl .owl-nav button, .ev-owl .owl-dots button { cursor: pointer; }

/* Appointment pop-up (was Popup Maker). */
#pum-276.ev-pum-open { display: block !important; opacity: 1 !important; z-index: 1999999999; overflow-y: auto; }
#pum-276.ev-pum-open .pum-container { display: block !important; opacity: 1 !important; position: absolute; left: 0; right: 0; margin-left: auto; margin-right: auto; top: 100px; }
html.pum-open.pum-open-overlay { overflow: hidden; }
html.pum-open.pum-open-overlay body { overflow: hidden; }

/* Multi-step forms: only the current step shows. */
.frm-fluent-form .fluentform-step { display: none; }
.frm-fluent-form .fluentform-step.active { display: block; }
.frm-fluent-form .has-conditions { display: none; }
.frm-fluent-form input[type="date"].ff-el-form-control { min-height: 42px; }

/* Turnstile spam check */
.ev-turnstile { margin: 10px 0 15px; min-height: 0; }

/* Before/after photos */
.twentytwenty-container img { max-width: 100%; height: auto; }
.twentytwenty-container { cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.frm-fluent-form .ff-step-body { width: auto !important; left: 0 !important; margin-left: 0 !important; }
.frm-fluent-form .fluentform-step { float: none; width: 100% !important; height: auto; overflow: visible; }
/* Fluent hid the submit button until its script reached the last step; the step script shows one step at a time instead */
.frm-fluent-form .fluentform-step.active .ff-btn-submit { visibility: visible; }

/* Photo lightbox (was Simple Lightbox) */
.ev-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 2147483000; }
.ev-lightbox.open { display: flex; }
.ev-lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.ev-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 10px 16px; }
.ev-lb-close { top: 10px; right: 14px; }
.ev-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.ev-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
