/* v20.2: components.css */
/* EMA20 v13: preserve Elementor menu's existing appearance while replacing its runtime handler. */
.ema20-independent-nav { position: relative; }
.ema20-independent-nav .ema20-menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  line-height: 1;
}
.ema20-independent-nav .ema20-menu-toggle:focus-visible,
.ema20-independent-nav .ema20-nav-menu a:focus-visible {
  outline: 2px solid #7a4297;
  outline-offset: 3px;
}
/* The existing Elementor CSS controls the mobile dropdown's opening animation. */
.ema20-independent-nav .ema20-nav-menu--dropdown[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.ema20-independent-nav .ema20-nav-menu--dropdown[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}
/* The 'Coming Soon' label is a noninteractive element, not a broken link. */
.ema20-content-card .elementskit-btn[aria-disabled="true"] {
  cursor: default;
}

/* EMA20 v15: progressive enhancement replacing Elementor scroll-reveal animations.
   Elements remain visible without JavaScript or with reduced motion. */
@keyframes ema20-v15-fade-in { from {opacity: 0; transform: translateY(5px)} to {opacity: 1; transform: translateY(0)} }
@media (prefers-reduced-motion: no-preference) {
  [data-ema20-reveal].ema20-reveal-active {animation: ema20-v15-fade-in 650ms ease-out both;}
}

/* v16: semantic landmarks and keyboard skip link; no design changes to the page sections. */
.ema20-skip-link {position:absolute;left:12px;top:-100px;z-index:100000;padding:10px 14px;background:#fff;color:#111;border:2px solid #111;border-radius:4px;font:600 15px/1.3 sans-serif;text-decoration:none;}
.ema20-skip-link:focus,.ema20-skip-link:focus-visible {top:12px;}

/* v20.2: gallery.css */
/* EMA20 v14: galleries independent of Elementor / e-gallery.
   Original WordPress image URLs are deliberately retained for SEO and migration. */
.ema20-gallery{width:100%;min-width:0;max-width:100%;margin:0 0 20px}
.ema20-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;align-items:start;width:100%;min-width:0}
.ema20-gallery-item{position:relative;display:block;min-width:0;overflow:hidden;aspect-ratio:var(--ema20-ratio);border-radius:0;isolation:isolate;line-height:0;background:rgba(127,127,127,.08);cursor:zoom-in;text-decoration:none}
.ema20-gallery-item picture{display:block;width:100%;height:100%}
.ema20-gallery-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease;vertical-align:middle}
.ema20-gallery-item::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.12);opacity:0;transition:opacity .25s ease;pointer-events:none}
.ema20-gallery-item:hover::after,.ema20-gallery-item:focus-visible::after{opacity:1}
.ema20-gallery-item:hover .ema20-gallery-photo{transform:scale(1.025)}
.ema20-gallery-item:focus-visible{outline:3px solid #186ab0;outline-offset:3px;z-index:1}
/* JavaScript positions images into shortest available columns for a stable masonry layout. */
.ema20-gallery-grid.ema20-gallery-grid--masonry{position:relative;display:block;gap:0}
.ema20-gallery-grid--masonry>.ema20-gallery-item{position:absolute;left:0;top:0;margin:0;will-change:auto}
@media(max-width:1024px){.ema20-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:50px}}
@media(max-width:767px){.ema20-gallery-grid{grid-template-columns:minmax(0,1fr);gap:20px}}
@media(prefers-reduced-motion:reduce){.ema20-gallery-item::after,.ema20-gallery-photo{transition:none}}
/* The native dialog starts hidden and only exists after the first gallery is initialized. */
.ema20-lightbox{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100vh;max-height:none;border:0;padding:0;margin:0;color:#fff;background:rgba(0,0,0,.97);overflow:hidden}
.ema20-lightbox:not([open]){display:none}
.ema20-lightbox::backdrop{background:#000}
.ema20-lightbox__shell{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}
.ema20-lightbox__bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:54px;padding:5px 12px;box-sizing:border-box;z-index:2}
.ema20-lightbox__counter{margin-right:auto;padding:0 12px;font:400 14px/1.4 system-ui,sans-serif;color:#e6e6e6}
.ema20-lightbox__button{appearance:none;border:0;border-radius:4px;background:transparent;color:white;width:42px;height:42px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:8px;touch-action:manipulation}
.ema20-lightbox__button:hover,.ema20-lightbox__button:focus-visible{background:rgba(255,255,255,.17)}
.ema20-lightbox__button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.ema20-lightbox__button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.ema20-lightbox__stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden}
.ema20-lightbox__image{display:block;max-width:calc(100% - 104px);max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none;touch-action:pan-y;transition:transform .15s ease}
.ema20-lightbox--zoomed .ema20-lightbox__image{transform:scale(1.7);cursor:zoom-out;touch-action:none}
.ema20-lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:1;background:rgba(0,0,0,.24);width:48px;height:54px}
.ema20-lightbox__nav--prev{left:5px}
.ema20-lightbox__nav--next{right:5px}
.ema20-lightbox__caption{box-sizing:border-box;min-height:45px;padding:12px 22px 16px;text-align:center;font:400 14px/1.4 system-ui,sans-serif;color:#e0e0e0;max-width:100%;overflow-wrap:anywhere}
.ema20-lightbox__button[hidden]{display:none!important}
body.ema20-lightbox-open{overflow:hidden}
@media(max-width:767px){.ema20-lightbox__bar{gap:2px;padding:4px 8px}.ema20-lightbox__button{width:39px;height:39px}.ema20-lightbox__image{max-width:calc(100% - 56px)}.ema20-lightbox__nav{width:35px;height:48px}.ema20-lightbox__nav--prev{left:0}.ema20-lightbox__nav--next{right:0}.ema20-lightbox__caption{padding:9px 10px 13px;font-size:12px}}

/* v20.2: layout.css */
/* EMA20 layout engine, v18: portable CSS Grid and reduced single-column markup. */
.ema20-grid-row{display:grid!important;align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr));}
.ema20-grid-row.ema20-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.ema20-grid-row.ema20-grid-2-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
.ema20-grid-row>.ema20-column{width:auto!important;min-width:0;}
.ema20-layout-single>.ema20-widget-group.ema20-has-content{padding:10px;min-width:0;}
.ema20-layout-single.ema20-column-gap-no>.ema20-widget-group.ema20-has-content{padding:0;}
@media(max-width:767px){.ema20-grid-row,.ema20-grid-row.ema20-grid-2,.ema20-grid-row.ema20-grid-2-1{grid-template-columns:minmax(0,1fr);}}

/* v20.2: ema20-menu-fix-v19.css */
/* EMA20 v19.1: explicit, page-independent mobile navigation state. */
@media (max-width: 1024px) {
  /* Keep dropdown above content sections, including project/gallery detail pages. */
  .ema20-site-header {
    position: relative;
    z-index: 1000;
  }
  .ema20-independent-nav {
    position: relative;
    z-index: 1001;
  }
  .ema20-independent-nav .ema20-nav-menu--dropdown.ema20-nav-menu__container {
    z-index: 10010;
    transform-origin: top center;
  }
  .ema20-independent-nav .ema20-menu-toggle[aria-expanded="false"] + .ema20-nav-menu--dropdown.ema20-nav-menu__container {
    max-height: 0 !important;
    transform: scaleY(0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
  .ema20-independent-nav .ema20-menu-toggle[aria-expanded="true"] + .ema20-nav-menu--dropdown.ema20-nav-menu__container {
    display: block !important;
    max-height: min(85vh, 85dvh) !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transition: none !important;
  }
}

/* v20.2: ema20-home-icons-v20-1.css */
/* EMA20 v20.1: embedded originals of the five homepage ElementsKit glyphs.
   These SVGs have no font/network dependency and cannot become missing-glyph boxes. */
.ema20-page-home .ema20-widget .elementskit-info-box-title > svg.ema20-feature-icon {
  --ema20-feature-size: 45px;
  display: inline-block;
  width: calc(var(--ema20-feature-size) * var(--ema20-feature-ratio));
  height: var(--ema20-feature-size);
  max-width: none !important; /* supersedes legacy Elementor 45px SVG cap */
  margin-right: 14px;
  padding: 0;
  position: relative;
  top: 2px;
  vertical-align: -3px;
  overflow: visible;
  color: #FE5D26;
  fill: currentColor;
}
@media (max-width:767px) {
  .ema20-page-home .ema20-widget .elementskit-info-box-title > svg.ema20-feature-icon {
    --ema20-feature-size: 50px;
  }
}
