
/* v2.0.88 — compact modern Lazurit gallery */
.lz-modern-gallery{
  padding:58px 0;
}
.lz-modern-gallery__head{
  margin-bottom:22px;
}
.lz-modern-gallery__head h2{
  margin:0;
  color:var(--lz-deep);
  font-size:clamp(1.7rem,3vw,2.65rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.lz-modern-gallery__lead{
  max-width:760px;
  margin:8px 0 0;
  color:var(--lz-muted);
  font-size:.82rem;
  line-height:1.55;
}
.lz-modern-gallery__track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,calc((100% - 54px)/4));
  gap:18px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:inline mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding:4px 2px 12px;
}
.lz-modern-gallery__track::-webkit-scrollbar{display:none}
.lz-modern-gallery__card{
  position:relative;
  display:block;
  min-width:0;
  padding:0;
  overflow:hidden;
  scroll-snap-align:start;
  aspect-ratio:600/460;
  border:1px solid var(--lz-line);
  border-radius:17px;
  background:#edf8ff;
  cursor:zoom-in;
  isolation:isolate;
  transition:transform .18s ease,border-color .18s ease;
}
.lz-modern-gallery__card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  box-shadow:0 16px 34px rgba(6,45,103,0);
  opacity:0;
  transition:opacity .18s ease,box-shadow .18s ease;
  pointer-events:none;
}
.lz-modern-gallery__card:hover{
  transform:translateY(-3px);
  border-color:#abd8f3;
}
.lz-modern-gallery__card:hover::after,
.lz-modern-gallery__card:focus-visible::after{
  opacity:1;
  box-shadow:0 16px 34px rgba(6,45,103,.12);
}
.lz-modern-gallery__card:focus-visible{
  outline:3px solid rgba(33,150,243,.18);
  outline-offset:2px;
}
.lz-modern-gallery__img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.lz-modern-gallery__dots{
  display:flex;
  justify-content:center;
  gap:7px;
  min-height:8px;
  margin-top:2px;
}
.lz-modern-gallery__dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#c9dced;
}
.lz-modern-gallery__dots span.is-active{
  background:var(--lz-blue);
}

/* Full gallery page */
.lz-modern-gallery-page{
  padding-top:48px;
  padding-bottom:80px;
}
.lz-modern-gallery-page__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  margin-bottom:26px;
}
.lz-modern-gallery-page__head h1{
  margin:3px 0 10px;
  color:var(--lz-deep);
  font-size:clamp(2.4rem,5vw,4.4rem);
  line-height:.98;
  letter-spacing:-.045em;
}
.lz-modern-gallery-page__head>div:first-child>p:last-child{
  max-width:760px;
  margin:0;
  color:var(--lz-muted);
  line-height:1.6;
}
.lz-modern-gallery-page__filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  max-width:650px;
}
.lz-modern-gallery-page__filters button{
  padding:9px 13px;
  border:1px solid var(--lz-line);
  border-radius:999px;
  background:#fff;
  color:var(--lz-deep);
  font-size:.74rem;
  font-weight:700;
  cursor:pointer;
  transition:.18s;
}
.lz-modern-gallery-page__filters button:hover{
  border-color:#a9d6f2;
  background:#f7fbff;
}
.lz-modern-gallery-page__filters button.is-active{
  border-color:var(--lz-blue);
  background:var(--lz-blue);
  color:#fff;
}
.lz-modern-gallery-page__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.lz-modern-gallery-page__item{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  overflow:hidden;
  aspect-ratio:600/460;
  border:1px solid var(--lz-line);
  border-radius:17px;
  background:#edf8ff;
  cursor:zoom-in;
  isolation:isolate;
  transition:transform .18s ease,border-color .18s ease;
}
.lz-modern-gallery-page__item::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  box-shadow:0 16px 34px rgba(6,45,103,0);
  opacity:0;
  transition:.18s;
}
.lz-modern-gallery-page__item:hover{
  transform:translateY(-3px);
  border-color:#abd8f3;
}
.lz-modern-gallery-page__item:hover::after{
  opacity:1;
  box-shadow:0 16px 34px rgba(6,45,103,.12);
}
.lz-modern-gallery-page__item.is-hidden{display:none}
.lz-modern-gallery-page__empty{
  padding:28px;
  border:1px solid var(--lz-line);
  border-radius:17px;
  background:#f8fcff;
  color:var(--lz-muted);
}

/* Image-only lightbox */
.lz-modern-gallery-lightbox[hidden]{display:none!important}
.lz-modern-gallery-lightbox{
  position:fixed;
  z-index:100000;
  inset:0;
  display:grid;
  place-items:center;
  padding:28px;
}
.lz-modern-gallery-lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,20,38,.82);
  backdrop-filter:blur(5px);
}
.lz-modern-gallery-lightbox__dialog{
  position:relative;
  z-index:1;
  width:min(1180px,94vw);
  max-height:92vh;
  padding:18px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:#0a1726;
  box-shadow:0 35px 110px rgba(0,0,0,.4);
}
.lz-modern-gallery-lightbox__dialog figure{
  display:grid;
  place-items:center;
  min-height:360px;
  margin:0;
}
.lz-modern-gallery-lightbox__dialog img{
  display:block;
  max-width:100%;
  max-height:82vh;
  width:auto;
  height:auto;
  border-radius:14px;
}
.lz-modern-gallery-lightbox__close,
.lz-modern-gallery-lightbox__nav{
  position:absolute;
  z-index:3;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(7,24,41,.75);
  color:#fff;
  cursor:pointer;
}
.lz-modern-gallery-lightbox__close{
  top:14px;
  right:14px;
  font-size:1.55rem;
}
.lz-modern-gallery-lightbox__nav{
  top:50%;
  transform:translateY(-50%);
  font-size:1.7rem;
}
.lz-modern-gallery-lightbox__nav--prev{left:14px}
.lz-modern-gallery-lightbox__nav--next{right:14px}
.lz-modern-gallery-lightbox__count{
  position:absolute;
  left:18px;
  top:18px;
  z-index:3;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(7,24,41,.72);
  color:#fff;
  font-size:.72rem;
  font-weight:800;
}
body.lz-modern-gallery-open{overflow:hidden}

@media(max-width:1160px){
  .lz-modern-gallery__track{grid-auto-columns:minmax(0,calc((100% - 36px)/3))}
  .lz-modern-gallery-page__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .lz-modern-gallery__track{grid-auto-columns:minmax(270px,82%)}
  .lz-modern-gallery-page__head{align-items:flex-start;flex-direction:column}
  .lz-modern-gallery-page__filters{justify-content:flex-start;max-width:none}
  .lz-modern-gallery-page__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .lz-modern-gallery{padding:42px 0}
  .lz-modern-gallery__track{grid-auto-columns:88%}
  .lz-modern-gallery-page__grid{grid-template-columns:1fr}
  .lz-modern-gallery-lightbox{padding:8px}
  .lz-modern-gallery-lightbox__dialog{width:100%;padding:8px;border-radius:16px}
}
@media(prefers-reduced-motion:reduce){
  .lz-modern-gallery__track{scroll-behavior:auto}
  .lz-modern-gallery__card,.lz-modern-gallery-page__item{transition:none}
}


/* v2.0.125 — stable 600×460 gallery geometry without image distortion.
 *
 * Homepage cards are visual previews: they fill the frame with object-fit:cover.
 * The source image is never stretched; wide/portrait photos are only cropped
 * symmetrically inside the card. Clicking opens the complete original image.
 *
 * The full gallery page keeps object-fit:contain so the whole photo remains
 * visible before opening the lightbox.
 */
.lz-modern-gallery__card,
.lz-modern-gallery-page__item{
  aspect-ratio:600 / 460!important;
  height:auto!important;
  background:#edf8ff!important;
}

.lz-modern-gallery__card .lz-modern-gallery__img,
.lz-modern-gallery-page__item .lz-modern-gallery__img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-position:center center!important;
  max-width:none!important;
  max-height:none!important;
}

/* Homepage: consistent premium cards, no letterboxing and no stretching. */
.lz-modern-gallery[data-gallery-home="1"] .lz-modern-gallery__card .lz-modern-gallery__img{
  object-fit:cover!important;
}

/* Full gallery: preserve the whole photograph in the overview. */
.lz-modern-gallery-page__item .lz-modern-gallery__img{
  object-fit:contain!important;
}

/* Native attachment dimensions remain metadata only; CSS owns the card box. */
.lz-modern-gallery__card img[width][height],
.lz-modern-gallery-page__item img[width][height]{
  aspect-ratio:auto!important;
}


/* v2.0.90 — gallery page blocks aligned with About / Services / Cases / Contacts. */
.lz-gallery-standard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);
  align-items:stretch;
  overflow:hidden;
  margin-bottom:30px;
  border:1px solid var(--lz-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 12% 8%,rgba(142,210,255,.25),transparent 30%),
    linear-gradient(135deg,#f8fcff 0,#edf7ff 100%);
  box-shadow:0 18px 55px rgba(6,45,103,.09);
}
.lz-gallery-standard-hero__copy{
  min-width:0;
  padding:clamp(34px,4.6vw,64px);
}
.lz-gallery-standard-hero h1{
  width:min(100%,840px);
  max-width:840px;
  margin:0;
  color:var(--lz-deep);
  font-size:clamp(2.6rem,5vw,5rem);
  line-height:.96;
  letter-spacing:-.05em;
  text-wrap:balance;
}
.lz-gallery-standard-hero__lead{
  width:min(100%,780px);
  max-width:780px;
  margin:22px 0 0;
  color:#405c79;
  font-size:clamp(1rem,1.35vw,1.2rem);
  line-height:1.7;
}
.lz-gallery-standard-hero__badges{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:28px;
}
.lz-gallery-standard-hero__badges span{
  display:flex;
  flex-direction:column;
  gap:2px;
  max-width:235px;
  min-width:0;
  padding:9px 12px;
  border:1px solid #cfe4f3;
  border-radius:11px;
  background:rgba(255,255,255,.82);
  color:var(--lz-muted);
  font-size:.7rem;
  line-height:1.4;
}
.lz-gallery-standard-hero__badges b{
  color:var(--lz-deep);
  font-size:.76rem;
}
.lz-gallery-standard-hero__panel{
  display:flex;
  min-width:0;
  flex-direction:column;
  justify-content:center;
  padding:clamp(34px,4vw,56px);
  background:
    radial-gradient(circle at 78% 15%,rgba(54,168,240,.22),transparent 34%),
    linear-gradient(145deg,#0b4a91,#063066);
  color:#fff;
}
.lz-gallery-standard-hero__panel h2{
  margin:4px 0 20px;
  color:#fff;
  font-size:clamp(1.7rem,2.7vw,2.55rem);
  line-height:1.07;
  letter-spacing:-.03em;
}
.lz-gallery-standard-hero__facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.lz-gallery-standard-hero__facts>div{
  min-height:108px;
  padding:14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  background:rgba(255,255,255,.07);
}
.lz-gallery-standard-hero__facts strong,
.lz-gallery-standard-hero__facts span{
  display:block;
}
.lz-gallery-standard-hero__facts strong{
  margin-bottom:7px;
  color:#fff;
  font-size:.78rem;
}
.lz-gallery-standard-hero__facts span{
  color:#cbe2f3;
  font-size:.72rem;
  line-height:1.48;
}
.lz-gallery-standard-hero__note{
  margin:18px 0 0;
  color:#cbe2f3;
  font-size:.74rem;
  line-height:1.55;
}

.lz-gallery-catalog{
  margin-bottom:42px;
}
.lz-gallery-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:26px;
  margin-bottom:22px;
}
.lz-gallery-section-head h2{
  margin:0;
  color:var(--lz-deep);
  font-size:clamp(1.7rem,3vw,2.65rem);
  line-height:1.08;
  letter-spacing:-.025em;
}
.lz-gallery-section-head>div:first-child>p:last-child{
  max-width:760px;
  margin:8px 0 0;
  color:var(--lz-muted);
  font-size:.84rem;
  line-height:1.55;
}

.lz-gallery-contact{
  display:grid;
  grid-template-columns:.78fr 1.22fr;
  gap:clamp(24px,4vw,54px);
  align-items:start;
  margin-top:54px;
  padding:clamp(28px,4vw,44px);
  border:1px solid var(--lz-line);
  border-radius:20px;
  background:
    radial-gradient(circle at 0 0,rgba(142,210,255,.2),transparent 28%),
    #fff;
}
.lz-gallery-contact__intro h2{
  margin:0;
  color:var(--lz-deep);
  font-size:clamp(2rem,3.6vw,3.25rem);
  line-height:1.03;
  letter-spacing:-.035em;
}
.lz-gallery-contact__intro>p:not(.lz-eyebrow){
  color:var(--lz-muted);
  line-height:1.65;
}
.lz-gallery-contact .lz-contact-form-ui{
  margin-top:0;
}

@media(max-width:1050px){
  .lz-gallery-standard-hero{
    grid-template-columns:1fr;
  }
  .lz-gallery-contact{
    grid-template-columns:1fr;
  }
}
@media(max-width:820px){
  .lz-gallery-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .lz-gallery-section-head .lz-modern-gallery-page__filters{
    justify-content:flex-start;
  }
}
@media(max-width:650px){
  .lz-gallery-standard-hero__copy,
  .lz-gallery-standard-hero__panel{
    padding:24px 20px;
  }
  .lz-gallery-standard-hero h1{
    font-size:clamp(2.35rem,12vw,3.4rem);
  }
  .lz-gallery-standard-hero__facts{
    grid-template-columns:1fr;
  }
  .lz-gallery-standard-hero__facts>div{
    min-height:0;
  }
  .lz-gallery-contact{
    padding:24px 20px;
  }
}


/* v2.0.125 — Media Library photo compatibility on the homepage. */
.lz-modern-gallery[data-gallery-home="1"] .lz-modern-gallery__card{
  line-height:0;
}
.lz-modern-gallery[data-gallery-home="1"] .lz-modern-gallery__card .lz-modern-gallery__img{
  min-width:100%;
  min-height:100%;
}


/* v2.0.126 — viewport-safe homepage lightbox.
 * The previous dialog could be taller than the viewport: figure had min-height
 * while the image used max-height:82vh plus dialog padding. On shorter screens
 * the lower part was therefore clipped behind the next homepage section.
 */
.lz-modern-gallery-lightbox{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100vh;
  box-sizing:border-box;
  overflow:hidden!important;
  padding:clamp(8px,2vh,20px)!important;
  place-items:center!important;
}
.lz-modern-gallery-lightbox__dialog{
  width:min(1180px,calc(100vw - 32px))!important;
  height:min(900px,calc(100dvh - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  box-sizing:border-box;
  overflow:hidden!important;
  padding:16px!important;
}
.lz-modern-gallery-lightbox__dialog figure{
  width:100%;
  height:100%;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden;
}
.lz-modern-gallery-lightbox__dialog figure img,
.lz-modern-gallery-lightbox__dialog img[data-lightbox-image]{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100% - 84px)!important;
  max-height:calc(100dvh - 64px)!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto!important;
}
@supports not (height:100dvh){
  .lz-modern-gallery-lightbox{
    height:100vh!important;
  }
  .lz-modern-gallery-lightbox__dialog{
    height:min(900px,calc(100vh - 32px))!important;
    max-height:calc(100vh - 32px)!important;
  }
  .lz-modern-gallery-lightbox__dialog figure img,
  .lz-modern-gallery-lightbox__dialog img[data-lightbox-image]{
    max-height:calc(100vh - 64px)!important;
  }
}
@media(max-width:650px){
  .lz-modern-gallery-lightbox{
    padding:6px!important;
  }
  .lz-modern-gallery-lightbox__dialog{
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  .lz-modern-gallery-lightbox__dialog figure img,
  .lz-modern-gallery-lightbox__dialog img[data-lightbox-image]{
    max-width:calc(100% - 18px)!important;
    max-height:calc(100dvh - 28px)!important;
  }
}

/* visualViewport fallback for browsers whose visible viewport is smaller than layout viewport */
.lz-modern-gallery-lightbox[style*="--lz-gallery-vh"] .lz-modern-gallery-lightbox__dialog{
  max-height:calc(var(--lz-gallery-vh) - 32px)!important;
}
.lz-modern-gallery-lightbox[style*="--lz-gallery-vh"] .lz-modern-gallery-lightbox__dialog img[data-lightbox-image]{
  max-height:calc(var(--lz-gallery-vh) - 64px)!important;
}


/* v2.0.128 — lightbox must escape homepage feed containment.
 *
 * `.lz-feed-section` in main.css uses `content-visibility:auto`.
 * That creates paint/layout containment for descendants. Because the gallery
 * lightbox lives inside the homepage gallery section, its `position:fixed`
 * overlay was being clipped to the gallery rectangle instead of the viewport.
 *
 * The gallery is intentionally excluded from that optimization: six small
 * previews do not need content-visibility, while the lightbox must be able to
 * cover the complete browser viewport.
 */
.home .lz-feed-section.lz-modern-gallery,
.home .lz-modern-gallery[data-gallery-home="1"]{
  content-visibility:visible!important;
  contain:none!important;
  contain-intrinsic-size:auto!important;
  overflow:visible!important;
}

/* Keep the modal as a real viewport layer. */
.home .lz-modern-gallery-lightbox{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
  overflow:hidden!important;
}

/* The dark layer covers the entire viewport, not the gallery section. */
.home .lz-modern-gallery-lightbox__backdrop{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
}

/* Dialog and image remain centered and visible above the backdrop. */
.home .lz-modern-gallery-lightbox__dialog{
  position:relative!important;
  z-index:2!important;
  margin:auto!important;
}
.home .lz-modern-gallery-lightbox__dialog figure{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.home .lz-modern-gallery-lightbox__dialog img[data-lightbox-image]{
  visibility:visible!important;
  opacity:1!important;
}
