/* EFEIGHT Portfolio Gallery v1.0.1 · Design System v2 · CSS fully scoped */
.epg-gallery {
  --epg-ink: #142437;
  --epg-gold: #e7ae35;
  --epg-border: #e2e8f0;
  --epg-muted: #64748b;
  box-sizing: border-box;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px 12px 42px;
  color: var(--epg-ink);
  font: 400 15px/1.5 Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.epg-gallery *, .epg-gallery *::before, .epg-gallery *::after,
.epg-lightbox *, .epg-lightbox *::before, .epg-lightbox *::after { box-sizing: border-box; }
.epg-gallery [hidden], .epg-lightbox[hidden] { display: none !important; }
.epg-gallery__heading {
  margin: 0 0 28px !important;
  color: var(--epg-ink) !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 750 !important;
  line-height: 1.18 !important;
  letter-spacing: -.015em !important;
  text-transform: none !important;
  text-align: center;
}
.epg-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-items: start;
}
.epg-gallery__tile {
  display: block;
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: #eff2f5;
  border-radius: 7px;
  overflow: hidden;
}
.epg-gallery__tile[hidden] { display: none !important; }
.epg-gallery__photo {
  position: relative;
  display: block !important;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 0 !important;
  border-radius: 7px;
  outline-offset: 3px;
  text-decoration: none !important;
  cursor: zoom-in;
}
.epg-gallery__photo:focus-visible { outline: 3px solid #bc8929 !important; }
.epg-gallery__photo .epg-photo__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: var(--epg-photo-position, 50% 50%);
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform .35s ease, filter .35s ease;
}
.epg-gallery__photo:hover .epg-photo__image,
.epg-gallery__photo:focus-visible .epg-photo__image {
  transform: scale(1.025);
  filter: brightness(.85);
}
.epg-gallery__zoom {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  color: #fff;
  background: rgba(20,36,55,.42);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -42%);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.epg-gallery__photo:hover .epg-gallery__zoom,
.epg-gallery__photo:focus-visible .epg-gallery__zoom { opacity: 1; transform: translate(-50%, -50%); }
.epg-gallery__more-wrap {
  display: flex;
  justify-content: center;
  padding: 31px 0 5px;
  margin: 0;
}
.epg-gallery__more {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 66px;
  min-width: 66px;
  min-height: 66px;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #d9dfeb !important;
  border-radius: 50% !important;
  color: var(--epg-ink) !important;
  font: inherit !important;
  line-height: 1 !important;
  box-shadow: 0 4px 15px rgba(20,36,55,.065) !important;
  cursor: pointer;
  appearance: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.epg-gallery__more:hover {
  background: #fff7e7 !important;
  border-color: var(--epg-gold) !important;
  box-shadow: 0 6px 20px rgba(20,36,55,.085) !important;
  transform: translateY(-2px);
}
.epg-gallery__more:focus-visible { outline: 3px solid #9c732a !important; outline-offset: 4px; }
.epg-gallery__more-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  color: #b68425;
  margin: 0;
  text-align: center;
  transform: translateY(-1px);
}
.epg-gallery__more-tooltip {
  position: absolute;
  bottom: calc(100% + 13px);
  left: 50%;
  width: max-content;
  max-width: 265px;
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 9px;
  background: #142437;
  color: #fff;
  font: 600 12.5px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .005em;
  box-shadow: 0 7px 20px rgba(20,36,55,.16);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .17s ease, transform .17s ease;
  pointer-events: none;
  z-index: 4;
}
.epg-gallery__more-tooltip::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #142437;
}
.epg-gallery__more:hover .epg-gallery__more-tooltip,
.epg-gallery__more:focus-visible .epg-gallery__more-tooltip { opacity: 1; transform: translate(-50%, 0); }
.epg-gallery__more-mobile { display: none; }
.epg-gallery__cta-wrap { display: flex; justify-content: center; padding-top: 37px; }
.epg-gallery__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 13px 25px !important;
  color: #142437 !important;
  background: #e7ae35 !important;
  border: 1px solid #e7ae35 !important;
  border-radius: 10px;
  box-shadow: none !important;
  text-decoration: none !important;
  font: 750 13px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: background .18s ease, transform .18s ease;
}
.epg-gallery__cta:hover { background: #dba22e !important; transform: translateY(-1px); }
.epg-gallery__cta:focus-visible { outline: 3px solid #94681d; outline-offset: 3px; }
.epg-gallery__cta svg { display: block; }
.epg-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* The lightbox is moved to <body> so WPBakery / theme transforms cannot clip it. */
.epg-lightbox {
  position: fixed !important;
  inset: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0 !important;
  z-index: 2147483000;
  color: #fff;
  background: #080c12;
  isolation: isolate;
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.epg-lightbox[hidden] { display: none !important; }
.epg-lightbox__backdrop { position: absolute; inset: 0; background: rgba(5,8,13,.96); cursor: zoom-out; }
.epg-lightbox__close {
  position: absolute; top: max(17px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right));
  z-index: 2;
  display: grid !important; place-items: center;
  width: 45px; height: 45px;
  padding: 0 !important;
  color: #fff !important; background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.23) !important;
  border-radius: 50% !important;
  cursor: pointer;
}
.epg-lightbox__close:hover { background: rgba(231,174,53,.25) !important; border-color: rgba(231,174,53,.8) !important; }
.epg-lightbox button:focus-visible { outline: 3px solid #e7ae35 !important; outline-offset: 4px; }
.epg-lightbox__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) 70px;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  max-width: 2400px;
  padding: 55px 22px 20px;
}
.epg-lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 0 0 35px !important;
  border: 0 !important;
}
.epg-lightbox__image {
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 44px rgba(0,0,0,.2) !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
.epg-lightbox__counter {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35;
}
.epg-lightbox__arrow {
  display: grid !important;
  place-items: center;
  width: 49px;
  height: 49px;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.epg-lightbox__arrow:hover { background: rgba(231,174,53,.18) !important; border-color: #e7ae35 !important; }
@media (max-width: 960px) {
  .epg-gallery__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .epg-lightbox__stage { grid-template-columns: 54px minmax(0,1fr) 54px; padding-left: 5px; padding-right: 5px; }
}
@media (max-width: 540px) {
  .epg-gallery { padding: 12px 9px 29px; }
  .epg-gallery__grid { grid-template-columns: 1fr; gap: 9px; }
  .epg-gallery__more-wrap { padding-top: 25px; }
  .epg-gallery__cta-wrap { padding-top: 27px; }
  .epg-lightbox__stage { grid-template-columns: 39px minmax(0,1fr) 39px; padding: 70px 2px 28px; }
  .epg-lightbox__arrow { width: 34px; height: 42px; background: transparent !important; border: none !important; }
  .epg-lightbox__arrow svg { width: 25px; }
  .epg-lightbox__close { width: 42px; height: 42px; }
}
/* Mouse-free devices need a persistent explanation below the icon. */
@media (hover: none), (pointer: coarse) {
  .epg-gallery__more { display: inline-flex !important; align-items: center; justify-content: center; flex-direction: column; width: auto; min-width: 185px; min-height: 75px; padding: 12px 22px !important; border-radius: 13px !important; gap: 8px; }
  .epg-gallery__more-icon { position: static; inset: auto; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; font-size: 36px; margin: 0; transform: none; }
  .epg-gallery__more-tooltip { display: none !important; }
  .epg-gallery__more-mobile { display: block; white-space: nowrap; font-size: 12.5px; font-weight: 650; line-height: 1.3; color: #142437; }
  .epg-gallery__photo:hover .epg-photo__image { transform: none; filter: none; }
  .epg-gallery__photo:hover .epg-gallery__zoom { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .epg-gallery__photo .epg-photo__image,
  .epg-gallery__zoom, .epg-gallery__more, .epg-gallery__more-tooltip,
  .epg-gallery__cta, .epg-lightbox__arrow { transition: none !important; }
  .epg-gallery__photo:hover .epg-photo__image { transform: none; }
}
