/* 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; }

/* Desktop menu dropdowns. On WordPress the Superfish script opened them; the theme CSS alone keeps them hidden
   (".genesis-responsive-menu ... :hover > .sub-menu {display:none}"). Open on hover and on keyboard focus. */
@media only screen and (min-width: 960px) {
  .genesis-responsive-menu .genesis-nav-menu .menu-item:hover > .sub-menu,
  .genesis-responsive-menu .genesis-nav-menu .menu-item:focus-within > .sub-menu {
    display: block; opacity: 1; left: auto;
  }
}

/* GetTerms legal documents start with their own H1 that repeats the page title (two titles, two H1s). */
.getterms-document-embed > div > h1:first-child { display: none; }
