/* Shared project galleries, 2026-09-18. */
body .jmc-project-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  height: auto !important;
  column-count: auto !important;
  box-sizing: border-box;
}
body .jmc-project-gallery > a {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
}
body .jmc-project-gallery > a > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}
body .jmc-project-gallery > a:focus-visible { outline: 3px solid #28a9e0; outline-offset: 3px; }
body.page-id-28 #e-n-tab-content-2163371861 .elementor-image-box-img {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.page-id-28 #e-n-tab-content-2163371861 .elementor-image-box-img a {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
body.page-id-28 #e-n-tab-content-2163371861 .elementor-image-box-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}
body .jmc-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 64px 72px 76px;
  border: 0;
  box-sizing: border-box;
  background: #101018;
  color: white;
  overflow: hidden;
}
body .jmc-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr); }
body .jmc-lightbox::backdrop { background: #101018; }
body .jmc-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  margin: 0;
  touch-action: pan-y;
}
body .jmc-lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid #777;
  border-radius: 4px;
  background: #22222c;
  color: #fff;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}
body .jmc-lightbox button:hover { background: #414150; }
body .jmc-lightbox button:focus-visible { outline: 3px solid #28a9e0; outline-offset: 3px; }
body .jmc-lightbox__close { top: 8px; right: 12px; }
body .jmc-lightbox__prev { left: 12px; top: calc(50% - 24px); }
body .jmc-lightbox__next { right: 12px; top: calc(50% - 24px); }
body .jmc-lightbox__status {
  position: absolute;
  bottom: 18px;
  left: 72px;
  right: 72px;
  text-align: center;
  font: 15px/1.5 Arial, sans-serif;
  margin: 0;
}
html.jmc-gallery-open { overflow: hidden; }
@media (max-width: 768px) {
  body .jmc-project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
}
@media (max-width: 480px) {
  body .jmc-project-gallery { grid-template-columns: minmax(0, 1fr) !important; }
  body .jmc-lightbox { padding: 64px 12px 84px; }
  body .jmc-lightbox__prev, body .jmc-lightbox__next { top: auto; bottom: 14px; }
  body .jmc-lightbox__status { bottom: 25px; }
}
