/* BH Snapshot: the few rules Elementor's JavaScript used to set inline, and our own bits. */

/* popups */
.elementor-popup-modal { z-index: 9999; }
.elementor-popup-modal .dialog-widget-content { position: relative; }
body.dialog-prevent-scroll { overflow: hidden; }


/* gallery (e-gallery) laid out without its script */
.bh-gallery.e-gallery-grid, .bh-gallery { display: grid !important; grid-template-columns: repeat(var(--bh-cols, 4), 1fr); gap: var(--bh-gap, 10px); height: auto !important; }
.bh-gallery .e-gallery-item { position: relative !important; inset: auto !important; width: auto !important; margin: 0 !important; opacity: 1 !important; transform: none !important; }
.bh-gallery .e-gallery-image { padding-bottom: var(--bh-ratio, 66.66%); background-size: cover; background-position: center; }

/* toggles start closed unless marked open */
.elementor-toggle .elementor-tab-content:not(.elementor-active) { display: none; }

/* lightbox */
.bh-lightbox { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(0, 0, 0, .88); padding: 24px; }
.bh-lightbox.is-open { display: flex; }
.bh-lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.bh-lightbox__title { color: #ddd; font: 14px/1.4 sans-serif; margin: 10px 0 0; }
.bh-lightbox__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* forms */
.elementor-form-waiting { opacity: .6; pointer-events: none; }

/* signature */
.bh-credit { text-align: center; padding: 10px 16px 14px; font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bh-credit a { color: inherit; opacity: .55; text-decoration: none; }
.bh-credit a:hover { opacity: .9; text-decoration: underline; }
.bh-credit__sep { opacity: .55; }

/* pages without a snapshot */
.bh-plain__main { max-width: 820px; margin: 0 auto; padding: 32px 20px 56px; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* background slideshow (bh.js) */
.bh-slideshow { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bh-slideshow .elementor-background-slideshow__slide { position: absolute; inset: 0; opacity: 0; transition-property: opacity; transition-timing-function: ease; }
.bh-slideshow .elementor-background-slideshow__slide.is-active { opacity: 1; }
.bh-slideshow .elementor-background-slideshow__slide__image { width: 100%; height: 100%; background-size: cover; background-position: center; }
.bh-slideshow .elementor-ken-burns { transition: transform 10s linear; }
.bh-slideshow .elementor-ken-burns--in { transform: scale(1); }
.bh-slideshow .elementor-ken-burns--in.elementor-ken-burns--active { transform: scale(1.3); transition-duration: 20s; }
.bh-slideshow .elementor-ken-burns--out { transform: scale(1.3); }
.bh-slideshow .elementor-ken-burns--out.elementor-ken-burns--active { transform: scale(1); transition-duration: 20s; }
