/* Keep decoration in its own layer, behind every CTA text and control. */
.cta { isolation: isolate; }
.cta .cta-branch { z-index: -1; pointer-events: none; }
.cta .cta-inner { position: relative; z-index: 1; }

/* Consistent footer groups on every page. */
.site-footer { background: #fff; }
.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-areas: "identity links region";
  align-items: start;
  justify-items: stretch;
  gap: 48px;
  padding: 56px 0 46px;
}
.footer-identity { grid-area: identity; min-width: 0; }
.footer-links { grid-area: links; min-width: 0; }
.footer-region { grid-area: region; min-width: 0; }
.site-footer .footer-main .brand { width: auto; max-width: 250px; }
.site-footer .footer-tagline {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin: 20px 0 0;
}
.site-footer .footer-heading {
  font-family: Lato, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0 0 20px;
}
.site-footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  justify-items: start;
  align-items: start;
  gap: 12px 24px;
  margin: 0;
  text-align: left;
}
.site-footer .footer-nav a { line-height: 1.5; }
.site-footer .footer-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  max-width: 270px;
  gap: 12px;
  text-align: left;
}
.site-footer .footer-location { justify-content: flex-start; align-items: flex-start; gap: 8px; }
.site-footer .footer-location .icon { margin-top: 2px; }
.site-footer .footer-service-area { padding-left: 28px; line-height: 1.6; }
.site-footer .footer-bottom { background: #fff; padding: 0; }
.site-footer .footer-bottom .wrap {
  display: block;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  text-align: left;
  color: var(--text);
}
@media (min-width: 600px) and (max-width: 900px) {
  .site-footer .footer-main {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas: "identity links" "region links";
    gap: 32px 40px;
    padding-block: 44px 36px;
  }
}
@media (max-width: 599px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
    grid-template-areas: "identity" "links" "region";
    gap: 32px;
    padding-block: 38px 32px;
  }
  .site-footer .footer-heading { margin-bottom: 14px; }
  .site-footer .footer-nav { max-width: 340px; gap: 14px 32px; }
  .site-footer .footer-tagline { margin-top: 16px; }
  .site-footer .footer-bottom .wrap { font-size: 13px; line-height: 1.6; padding-block: 18px 24px; }
}

/* Video stills: compact, uncropped previews without hover magnification. */
.page-gallery .gallery-work-grid[data-count] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
  gap: 30px 24px;
}
.page-gallery .gallery-work-card { width: 100%; max-width: none; }
.page-gallery .gallery-image-button {
  height: 320px;
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #edf0e9;
}
.page-gallery .gallery-image-button img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
  transition: none;
}
.page-gallery .gallery-image-button:hover img { transform: none; }
.page-gallery .modal img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--gallery-image-width, 540px));
  max-height: min(78vh, var(--gallery-image-height, 600px));
  margin-inline: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .page-gallery .gallery-work-grid[data-count] {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .page-gallery .gallery-image-button { height: 300px; }
}
