/* ===========================================================================
   Global additions kept out of the Duda-generated stylesheets.
   Per-page presentation now lives in each page's component-scoped <style>.
   What remains here is genuinely global: the theme palette, a body reset,
   the React lightbox, the FAQ accordion arrow, and the home "Our Gallery"
   grid (that page injects Duda HTML via set:html, so it can't be scoped).
   =========================================================================== */
:root {
  --color_1: rgba(0, 0, 0, 1);
  --color_2: rgba(229, 229, 229, 1);
  --color_3: rgba(255, 255, 255, 1);
  --color_4: rgba(255, 4, 4, 1);
  --color_5: rgba(255, 4, 4, 1);
  --color_6: rgba(46, 47, 55, 1);
  --color_7: rgba(176, 0, 0, 1);
  --max-content-width_1: 1200px;
}

body#dmRoot {
  margin: 0;
  padding: 0;
}

img[width][height] {
  height: auto;
}

/* ---------------------------------------------------------------------------
   Gallery lightbox (React island — rendered into document.body)
   --------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.lb-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lb-caption {
  color: #fff;
  font-family: Roboto, "Roboto Fallback", Arial, sans-serif;
  font-size: 15px;
  margin-top: 12px;
  text-align: center;
  max-width: 80vw;
}
.lb-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lb-btn:hover {
  background: var(--color_4);
}
.lb-close {
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 30px;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 36px;
}
.lb-prev {
  left: 18px;
}
.lb-next {
  right: 18px;
}
@media (max-width: 767px) {
  .lb-prev,
  .lb-next {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}

/* ---------------------------------------------------------------------------
   FAQ accordion open-state arrow: turn the "+" into an "×"
   (service pages inject the Duda accordion widget via set:html)
   --------------------------------------------------------------------------- */
[data-grab="accordion-item-container"][data-open] [data-grab="accordion-item-arrow"] {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* ---------------------------------------------------------------------------
   Home "Our Gallery" — asymmetric CSS-grid mosaic (two 2x2 blocks, each with
   one large 2x2 tile). Home injects Duda HTML, so these stay global.
   --------------------------------------------------------------------------- */
.gg-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.gg-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.gg-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gg-gallery__item:hover img {
  transform: scale(1.06);
}
.gg-g1 { grid-area: 1 / 1; }
.gg-g2 { grid-area: 1 / 2; }
.gg-g3 { grid-area: 2 / 1; }
.gg-g4 { grid-area: 2 / 2; }
.gg-g5 { grid-area: 1 / 3 / span 2 / span 2; }
.gg-g6 { grid-area: 3 / 1 / span 2 / span 2; }
.gg-g7 { grid-area: 3 / 3; }
.gg-g8 { grid-area: 3 / 4; }
.gg-g9 { grid-area: 4 / 3; }
.gg-g10 { grid-area: 4 / 4; }

@media (max-width: 767px) {
  .gg-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gg-gallery__item {
    grid-area: auto !important;
  }
  .gg-g5,
  .gg-g6 {
    grid-column: span 2 !important;
  }
}
