html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #7c9b19; outline-offset: 3px; }
#about, #portfolio, #adn-constructor, #content { scroll-margin-top: var(--vo-header-height, 49px); }

[data-site-sticky].vo-pinned {
  position: fixed !important;
  top: 0 !important;
  left: var(--vo-sticky-left, 0px);
  width: var(--vo-sticky-width, 100%);
  z-index: 1000;
}
#ast-scroll-top.vo-visible { display: block; }
button#ast-scroll-top { border: 0; padding: 0; }
.hfe-nav-menu__toggle,
.vo-sub-toggle,
.bdt-prime-slider-previous,
.bdt-prime-slider-next,
.bdt-slideshow-nav button {
  font-family: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.hfe-nav-menu .vo-sub-toggle,
.bdt-slideshow-nav button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  margin: 0;
  padding: 0;
}
.hfe-nav-menu .vo-sub-toggle:focus-visible { outline-offset: -2px; }
.vo-sub-toggle .fa { pointer-events: none; }
.hfe-nav-menu .hfe-has-submenu-container > .hfe-menu-item { flex: 1; }
@media (min-width: 1025px) {
  .hfe-nav-menu .vo-sub-open > .sub-menu,
  .hfe-nav-menu .hfe-has-submenu:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
@media (max-width: 1024px) {
  .hfe-nav-menu .hfe-nav-menu__layout-horizontal.vo-menu-open {
    max-height: calc(100dvh - var(--vo-header-height, 50px));
    width: 100vw;
    visibility: visible;
    opacity: 1;
    overflow: auto;
    pointer-events: auto;
  }
  .hfe-nav-menu .vo-sub-open > .sub-menu { display: block; visibility: visible; opacity: 1; }
  #ast-mobile-header .ast-mobile-header-content.vo-astra-open { display: block; }
}

#bdt-77f4f4b .bdt-slideshow-items { min-height: max(480px, 30vw); }
#bdt-77f4f4b .bdt-slideshow-item:not(.bdt-active) { display: none; }
#bdt-77f4f4b .bdt-slideshow-item.bdt-active { display: flex; }
#bdt-77f4f4b .bdt-slideshow-item video { object-fit: cover; width: 100%; height: 100%; max-width: none; }
#bdt-77f4f4b .vo-exiting-slide { pointer-events: none; }
#bdt-77f4f4b .bdt-slidenav svg { display: block; }
#bdt-77f4f4b .bdt-dotnav button {
  color: inherit;
  padding: 0;
  border: 0;
}
#bdt-77f4f4b .bdt-dotnav button:focus-visible { outline-offset: 3px; }

.elementor-image-carousel-wrapper { overflow: hidden; touch-action: pan-y; }
.elementor-image-carousel-wrapper .swiper-wrapper { column-gap: 5px; }
.elementor-image-carousel-wrapper .swiper-slide { flex: 0 0 calc((100% - 30px) / 7); min-width: 0; }
.elementor-image-carousel-wrapper .swiper-slide-image { display: block; }
.elementor-image-carousel-wrapper a:focus-visible { outline-offset: -3px; }
@media (max-width: 1024px) {
  .elementor-image-carousel-wrapper .swiper-slide { flex-basis: calc((100% - 20px) / 5); }
}
@media (max-width: 767px) {
  .elementor-image-carousel-wrapper .swiper-slide { flex-basis: 100%; }
}

.vo-dialog-open { overflow: hidden; }
.vo-viewer {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #fff;
  font: 16px Arial, sans-serif;
}
.vo-viewer::backdrop { background: rgb(0 0 0 / 80%); }
.vo-viewer:fullscreen { background: #111; }
.vo-viewer-toolbar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 13px;
  background: rgb(24 24 24 / 68%);
}
.vo-viewer-count { margin-right: auto; padding-left: 7px; }
.vo-viewer button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #eee;
  font-size: 21px;
  line-height: 1;
}
.vo-viewer button:hover, .vo-viewer button:focus-visible { background: rgb(255 255 255 / 14%); }
.vo-viewer figure { margin: 0; }
.vo-viewer-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 84vw;
  max-height: 79vh;
  object-fit: contain;
  touch-action: pan-y;
}
.vo-viewer.vo-zoomed .vo-viewer-photo { max-width: 120vw; max-height: 120vh; }
.vo-viewer figcaption { position: absolute; bottom: 17px; left: 0; right: 0; text-align: center; pointer-events: none; }
.vo-viewer button[data-viewer-prev], .vo-viewer button[data-viewer-next] { position: absolute; top: calc(50% - 17px); }
.vo-viewer button[data-viewer-prev] { left: 5vw; }
.vo-viewer button[data-viewer-next] { right: 5vw; }
.vo-share-menu {
  position: absolute;
  top: 48px;
  right: 48px;
  min-width: 182px;
  padding: 5px 0;
  background: #fff;
  color: #151515;
}
.vo-share-menu a { display: block; color: inherit; padding: 8px 12px; text-decoration: none; font-size: 14px; }
.vo-share-menu a:hover { background: #eee; }
@media (max-width: 767px) {
  .vo-viewer-photo { max-width: 96vw; }
  .vo-viewer button[data-viewer-prev] { left: 4px; background: rgb(0 0 0 / 45%); }
  .vo-viewer button[data-viewer-next] { right: 4px; background: rgb(0 0 0 / 45%); }
}

.elementor-custom-embed-play {
  border: 0;
  background: transparent;
  line-height: 1;
}
.elementor-custom-embed-image-overlay { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep the dimensions of the original link controls when using native buttons. */
.hfe-nav-menu .hfe-has-submenu-container { display: flex; align-items: stretch; }
.hfe-nav-menu .hfe-has-submenu-container > a.hfe-menu-item { padding-right: 0; }
.hfe-nav-menu #menu-item-32 > .hfe-has-submenu-container > a.hfe-menu-item { white-space: nowrap; }
.hfe-nav-menu .hfe-has-submenu-container .vo-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 33.8px;
  padding: 0 15px 0 10px;
  color: #fff;
}
.hfe-nav-menu .vo-sub-toggle .hfe-menu-toggle { margin: 0; }
.hfe-nav-menu .vo-sub-toggle i.fa::before {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.hfe-nav-menu .vo-sub-open .vo-sub-toggle i.fa { transform: rotate(180deg); }
#bdt-77f4f4b .bdt-dotnav > li > button {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
}
#bdt-77f4f4b .bdt-dotnav > li > button::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d2ff46;
}
#bdt-77f4f4b .bdt-dotnav > li.bdt-active > button { background: #d2ff46; }
#bdt-77f4f4b .bdt-dotnav > li.bdt-active > button::before {
  width: 10px;
  height: 10px;
  border: 1px solid rgb(0 0 0 / 38%);
  border-right-color: transparent;
}
.elementor-widget-image-carousel button.elementor-swiper-button {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  line-height: 1;
}
@media (max-width: 1024px) {
  .hfe-nav-menu .hfe-has-submenu-container .vo-sub-toggle { flex-basis: 48px; }
}

[data-defer-background]:not(.e-lazyloaded),
[data-defer-background]:not(.e-lazyloaded)::before,
[data-defer-background]:not(.e-lazyloaded) .elementor-element,
[data-defer-background]:not(.e-lazyloaded) .elementor-element::before {
  background-image: none !important;
}

@media (max-width: 1024px) {
  .hfe-nav-menu button.hfe-nav-menu__toggle {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
  }
  [data-site-sticky] .hfe-nav-menu .hfe-nav-menu__layout-horizontal {
    display: none;
  }
  [data-site-sticky] .hfe-nav-menu .hfe-nav-menu__layout-horizontal.vo-menu-open {
    position: fixed;
    z-index: 1005;
    top: var(--vo-header-height, 66px);
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    background-color: #444;
  }
  [data-site-sticky] .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu { width: 100%; }
  .hfe-nav-menu .hfe-has-submenu:not(.vo-sub-open) > .sub-menu { display: none; }
}
@media (max-width: 1024px) {
  body { overflow-x: clip; }
  .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal.vo-menu-open .hfe-nav-menu .vo-sub-open > .sub-menu {
    display: block;
    height: auto;
    opacity: 1;
    visibility: visible;
  }
}
