/* Small overrides so the Elementor markup works without Elementor's JavaScript. */

.elementor-invisible {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}

.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  background: #fff;
}

/*
  Desktop Elementor padding on the orange bar and the logo row is 7% / 5%.
  Align the phone, logo and menu with the page content inset (8% on each side),
  matching the hero heading and boxed sections at 1440 and 1920.
*/
@media (min-width: 1025px) {
  .elementor-58 .elementor-element.elementor-element-57eee7b9,
  .elementor-58 .elementor-element.elementor-element-b82e69e {
    --padding-left: 8%;
    --padding-right: 8%;
  }
}

/* Elementor inserts these chevrons with JavaScript. Keep them on the same line as the label. */
.elementor-nav-menu--main .menu-item-has-children > a.elementor-item,
.elementor-nav-menu--dropdown .menu-item-has-children > a.elementor-sub-item {
  display: inline-flex;
  align-items: center;
}

.elementor-nav-menu .sub-arrow svg {
  fill: currentColor;
}

/* Desktop dropdowns. The submenu stays open while the pointer crosses into it. */
@media (min-width: 1025px) {
  .elementor-location-header,
  #header_pop,
  .elementor-element-b82e69e,
  .elementor-widget-nav-menu,
  .elementor-nav-menu--main,
  .elementor-nav-menu--main .elementor-nav-menu {
    overflow: visible;
  }

  .elementor-nav-menu--main .menu-item-has-children {
    position: relative;
  }

  /* Elementor offsets the panel by 15px. That gap drops :hover before the pointer arrives. */
  .elementor-58 .elementor-element.elementor-element-4469cb26 .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-nav-menu--dropdown,
  .elementor-nav-menu--main .menu-item-has-children > .sub-menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .elementor-nav-menu--main.elementor-nav-menu--layout-horizontal > .elementor-nav-menu > li.menu-item-has-children > .sub-menu {
    top: calc(100% - 8px) !important;
  }

  .elementor-nav-menu--main .menu-item-has-children > .sub-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    z-index: 300;
    min-width: 240px;
    padding: 6px 0;
    text-align: left;
    background: #fff;
    box-shadow: 0 12px 28px rgba(59, 59, 60, 0.14);
  }

  /* Elementor forces every nested list to top:100%. Flyouts open beside the item, overlapping the seam. */
  .elementor-nav-menu--main.elementor-nav-menu--layout-horizontal .elementor-nav-menu .sub-menu .menu-item-has-children > .sub-menu {
    top: 0 !important;
    left: calc(100% - 14px) !important;
    margin: 0 !important;
  }

  .elementor-nav-menu--main .sub-menu > .menu-item-has-children {
    padding-right: 16px;
    margin-right: -16px;
  }

  .elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
  .elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu,
  .elementor-nav-menu--main .menu-item-has-children.kb-open > .sub-menu,
  .elementor-nav-menu--main .menu-item-has-children.kb-touch-open > .sub-menu,
  .elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu .elementor-sub-item,
  .elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu .elementor-sub-item,
  .elementor-nav-menu--main .menu-item-has-children.kb-open > .sub-menu .elementor-sub-item,
  .elementor-nav-menu--main .menu-item-has-children.kb-touch-open > .sub-menu .elementor-sub-item {
    visibility: visible !important;
    opacity: 1;
    pointer-events: auto;
  }

  .elementor-nav-menu--main .sub-menu,
  .elementor-nav-menu--main .sub-menu .elementor-sub-item {
    transition: none !important;
  }

  .elementor-nav-menu--main .sub-menu .elementor-sub-item {
    display: block;
    padding: 12px 18px;
    color: #3b3b3c;
    font-family: Syne, Poppins, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .elementor-nav-menu--main .sub-menu li + li > .elementor-sub-item {
    border-top: 1px solid #f3ece6;
  }

  .elementor-nav-menu--main .sub-menu .elementor-sub-item:hover,
  .elementor-nav-menu--main .sub-menu .elementor-sub-item:focus {
    color: #e47125;
    background: #fbf7f4;
  }
}

/* Mobile menu. Elementor hides this until the burger toggles `.kb-open`. */
.elementor-widget-nav-menu.kb-open > .elementor-widget-container > .elementor-nav-menu--dropdown.elementor-nav-menu__container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  transform: none !important;
}

.elementor-widget-nav-menu.kb-open .elementor-menu-toggle__icon--open {
  display: none;
}

.elementor-widget-nav-menu.kb-open .elementor-menu-toggle__icon--close {
  display: inline-block;
}

.elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu {
  display: none;
}

.elementor-nav-menu--dropdown.elementor-nav-menu__container .kb-sub-open > .sub-menu {
  display: block;
}

/* Image carousels keep the first slide at full width without Swiper. */
.elementor-widget-image-carousel .swiper,
.elementor-widget-image-carousel .swiper-wrapper,
.elementor-widget-slides .swiper,
.elementor-widget-slides .swiper-wrapper {
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.elementor-widget-image-carousel .swiper-slide,
.elementor-widget-slides .swiper-slide {
  width: 100% !important;
  margin: 0 !important;
}

.elementor-widget-image-carousel .swiper-slide:not(:first-child),
.elementor-widget-slides .swiper-slide:not(:first-child) {
  display: none !important;
}

.elementor-widget-image-carousel .swiper-slide:first-child,
.elementor-widget-image-carousel .swiper-slide:first-child figure,
.elementor-widget-image-carousel .swiper-slide-image {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Elementor galleries are absolutely positioned by its script. Lay them out as a grid. */
.elementor-gallery__container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  height: auto !important;
}

.e-gallery-item {
  position: relative !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  inset: auto !important;
  overflow: hidden;
}

.e-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .elementor-gallery__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.elementor-widget-theme-post-content img,
.elementor-widget-theme-post-content figure,
.elementor-widget-text-editor img {
  max-width: 100%;
  height: auto;
}

.kb-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  margin: 1.2rem 0;
  clear: both;
}

.kb-gallery a {
  display: block;
}

.kb-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.kb-embed,
div[data-youtube-video] {
  position: relative;
  width: min(100%, 800px);
  margin: 1.2rem auto;
  aspect-ratio: 16 / 9;
}

.kb-embed iframe,
div[data-youtube-video] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 16, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-lightbox[hidden] {
  display: none !important;
}

.kb-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.kb-lightbox button {
  position: absolute;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 14px;
}

.kb-lightbox-close { top: 10px; right: 12px; }
.kb-lightbox-prev { left: 8px; top: 50%; }
.kb-lightbox-next { right: 8px; top: 50%; }

@media (max-width: 1024px) {
  .kb-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kb-video {
  display: block;
  max-width: 800px;
}

.kb-video img {
  width: 100%;
  height: auto;
}

.kb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 28px 0 8px;
  font-family: Poppins, sans-serif;
  font-weight: 400;
}

.kb-pagination a {
  color: #e47125;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.kb-pagination a:hover {
  border-bottom-color: #e47125;
}

.kb-form-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #f6f3ef;
  color: #3b3b3c;
  font-family: Poppins, sans-serif;
}

.kb-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  width: 1px;
  opacity: 0;
}

img {
  max-width: 100%;
  height: auto;
}
