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

/*
  Footer columns use 8% left and 5% right. Keep the header bar full width
  and inset the phone row and the logo/menu row by the same amounts,
  including the tablet and mobile rules that otherwise use 15px or 0.
*/
.elementor-58 .elementor-element.elementor-element-57eee7b9,
.elementor-58 .elementor-element.elementor-element-b82e69e {
  --padding-left: 8%;
  --padding-right: 5%;
}

/* Pack the menu against the same right edge as the footer columns. */
@media (min-width: 1025px) {
  .elementor-element-b82e69e .elementor-nav-menu--main > .elementor-nav-menu {
    width: 100%;
    justify-content: flex-end;
  }
}

/* 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. The closed dropdown is taken out of layout so it cannot widen the page. */
@media (max-width: 1024px) {
  .elementor-widget-nav-menu:not(.kb-open) > .elementor-widget-container > nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    display: none !important;
  }

  .elementor-menu-toggle {
    position: relative;
    z-index: 10002;
  }

  .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;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--kb-header-h, 0px);
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: calc(100dvh - var(--kb-header-h, 0px));
    margin: 0 !important;
    padding: 8px 0 24px;
    overflow-x: hidden;
    overflow-y: auto;
    transform: none !important;
    background: #fff;
    z-index: 10000;
    box-sizing: border-box;
    box-shadow: 0 18px 30px rgba(59, 59, 60, 0.16);
  }

  .elementor-nav-menu--dropdown .elementor-nav-menu,
  .elementor-nav-menu--dropdown .elementor-item,
  .elementor-nav-menu--dropdown .elementor-sub-item {
    white-space: normal;
  }

  .elementor-nav-menu--dropdown a.elementor-item,
  .elementor-nav-menu--dropdown a.elementor-sub-item {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 22px;
  }

  .elementor-nav-menu--dropdown .sub-menu a.elementor-sub-item {
    padding-left: 36px;
    background: #f6f3ef;
  }
}

.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-theme-post-content iframe,
.elementor-widget-theme-post-content video,
.elementor-widget-text-editor img,
.elementor-widget-text-editor iframe {
  max-width: 100%;
  height: auto;
}

.elementor-widget-theme-post-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Keep decorative curves and wide widgets from creating a horizontal scrollbar. */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.elementor-shape {
  overflow: hidden;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.gallery-item {
  float: none;
  margin: 0 !important;
  width: calc(50% - 5px) !important;
  max-width: calc(50% - 5px);
}

.gallery-columns-1 .gallery-item {
  width: 100% !important;
  max-width: 100%;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*
  Card thumbnails. Elementor reserves the ratio with padding-bottom and only
  pulls the image out of flow after JavaScript adds .elementor-has-item-ratio.
  Without that class the padding sits under the photo. The frame uses the same
  ratios Elementor stored (0.66, 0.8, and 0.5 on small screens).
*/
.elementor-posts--skin-cards .elementor-post__thumbnail__link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.elementor-35 .elementor-element-d00af6b .elementor-post__thumbnail__link {
  aspect-ratio: 100 / 66;
}

.elementor-7138 .elementor-element-24222de0 .elementor-post__thumbnail__link {
  aspect-ratio: 100 / 80;
}

.elementor-posts--skin-cards .elementor-post__thumbnail {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
}

.elementor-posts--skin-cards .elementor-post__thumbnail img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

@media (max-width: 767px) {
  .elementor-35 .elementor-element-d00af6b .elementor-post__thumbnail__link,
  .elementor-7138 .elementor-element-24222de0 .elementor-post__thumbnail__link {
    aspect-ratio: 2 / 1;
  }
}

.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;
}
