/* Mobile spacing only. Desktop rules are not changed. */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: clip;
  }

  body.home #page,
  body.page-id-49 #page,
  body.page-id-61 #page,
  body.post-type-archive-spaciaz_project #page,
  .elementor-43,
  .elementor-49,
  .elementor-61 {
    max-width: 100%;
    overflow-x: clip;
  }

  .elementor-43 .e-con,
  .elementor-49 .e-con,
  .elementor-61 .e-con,
  .elementor-43 .e-con-boxed > .e-con-inner,
  .elementor-49 .e-con-boxed > .e-con-inner,
  .elementor-61 .e-con-boxed > .e-con-inner {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .elementor-43 .e-con-boxed > .e-con-inner,
  .elementor-49 .e-con-boxed > .e-con-inner,
  .elementor-61 .e-con-boxed > .e-con-inner {
    width: auto !important;
  }

  .elementor-43 .elementor-widget-heading,
  .elementor-43 .elementor-widget-text-editor,
  .elementor-49 .elementor-widget-heading,
  .elementor-49 .elementor-widget-text-editor,
  .elementor-61 .elementor-widget-heading,
  .elementor-61 .elementor-widget-text-editor {
    max-width: 100%;
    min-width: 0;
  }

  .elementor-43 .elementor-heading-title,
  .elementor-43 .elementor-widget-text-editor p,
  .elementor-49 .elementor-heading-title,
  .elementor-49 .elementor-widget-text-editor,
  .elementor-49 .elementor-widget-text-editor p,
  .elementor-61 .elementor-heading-title {
    overflow-wrap: break-word;
  }

  .elementor-widget-spaciaz-slide-scrolling,
  .elementor-widget-spaciaz-slide-scrolling .elementor-widget-container,
  .elementor-widget-spaciaz-slide-scrolling .elementor-scrolling,
  .elementor-widget-spaciaz-slide-scrolling .elementor-scrolling-wrapper,
  .elementor-widget-spaciaz-slide-scrolling .elementor-scrolling-inner {
    max-width: 100%;
  }

  .elementor-43 .elementor-element-6552792 > .e-con-inner {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .elementor-43 .elementor-element-1bcb68b,
  .elementor-43 .elementor-element-5e5d2b4,
  .elementor-43 .elementor-element-0d26ad4,
  .elementor-43 .elementor-element-4f87f03 {
    max-width: calc(50% - 10px);
    margin: 6px;
  }

  .elementor-49 .elementor-element.elementor-element-5384ac9:not(.elementor-motion-effects-element-type-background),
  .elementor-49 .elementor-element.elementor-element-5384ac9 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
  }
  .elementor-49 .elementor-element-b5cd2a3 {
    background-color: #fff;
    position: relative;
    z-index: 1;
  }

  body.post-type-archive-spaciaz_project .col-full {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    max-width: 100%;
  }
  body.post-type-archive-spaciaz_project .project-archive-content,
  body.post-type-archive-spaciaz_project .archive-content-inner,
  body.post-type-archive-spaciaz_project .spaciaz-project-filter,
  body.post-type-archive-spaciaz_project .project-form-filter {
    max-width: 100%;
    box-sizing: border-box;
  }
  body.post-type-archive-spaciaz_project .project-form-filter {
    width: 100%;
    gap: 12px;
  }
  body.post-type-archive-spaciaz_project .project-form-filter select:not([size]):not([multiple]) {
    flex: 1 1 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
    min-width: 0;
    box-sizing: border-box;
  }
  body.post-type-archive-spaciaz_project .project-form-filter .filter-wrap-button {
    flex: 0 0 auto;
    max-width: 72px;
  }
  body.post-type-archive-spaciaz_project .project-item,
  body.post-type-archive-spaciaz_project .project-item .project-post-thumbnail,
  body.post-type-archive-spaciaz_project .project-item .project-post-thumbnail img {
    max-width: 100%;
  }

  /* leftover quote + about headings: fit the column, do not use 100vw */
  .elementor-43 .elementor-element-f494325,
  .elementor-43 .elementor-element-f494325 > .e-con-inner,
  .elementor-43 .elementor-element-652889c,
  .elementor-43 .elementor-element-ea72198,
  .elementor-49 .elementor-element-5c3be3e,
  .elementor-49 .elementor-element-5c3be3e > .e-con-inner,
  .elementor-49 .elementor-element-d3b3874,
  .elementor-49 .elementor-element-11ce313 {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    box-sizing: border-box !important;
    margin-right: 0 !important;
  }
  .elementor-43 .elementor-element-f494325,
  .elementor-49 .elementor-element-5c3be3e {
    width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .elementor-43 .elementor-element-ea72198 {
    align-self: stretch !important;
    overflow: hidden !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .elementor-43 .elementor-element-aa16141,
  .elementor-43 .elementor-element-aa16141 .elementor-widget-container,
  .elementor-43 .elementor-element-aa16141 p,
  .elementor-49 .elementor-element-9a8ab30,
  .elementor-49 .elementor-element-460a1fb,
  .elementor-49 .elementor-element-bd4553f,
  .elementor-49 .elementor-element-df3ea9a,
  .elementor-49 .elementor-element-9a8ab30 .elementor-heading-title,
  .elementor-49 .elementor-element-460a1fb .elementor-heading-title,
  .elementor-49 .elementor-element-bd4553f .elementor-heading-title,
  .elementor-49 .elementor-element-df3ea9a p {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  .elementor-43 .elementor-element-aa16141 p {
    display: block !important;
    width: 310px !important;
    max-width: 310px !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  .elementor-49 .elementor-element-5c3be3e {
    width: 350px !important;
    max-width: 350px !important;
    min-width: 0 !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
  }
  .elementor-49 .elementor-element-9a8ab30,
  .elementor-49 .elementor-element-460a1fb,
  .elementor-49 .elementor-element-bd4553f,
  .elementor-49 .elementor-element-df3ea9a,
  .elementor-49 .elementor-element-9a8ab30 .elementor-heading-title,
  .elementor-49 .elementor-element-460a1fb .elementor-heading-title,
  .elementor-49 .elementor-element-bd4553f .elementor-heading-title,
  .elementor-49 .elementor-element-df3ea9a p {
    display: block !important;
    width: 350px !important;
    max-width: 350px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  .elementor-49 .elementor-element-9a8ab30 .elementor-heading-title {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
  .elementor-49 .elementor-element-460a1fb .elementor-heading-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  .elementor-49 .elementor-element-bd4553f .elementor-heading-title,
  .elementor-49 .elementor-element-df3ea9a,
  .elementor-49 .elementor-element-df3ea9a p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

/* Back-to-top and WhatsApp buttons: one column at the right edge, no overlap */
body .scrollup {
  right: 16px;
  bottom: 84px;
  width: 56px;
  height: 56px;
  line-height: 56px;
}
body.single-spaciaz_project .scrollup {
  bottom: 146px;
}

/* Footer: Privacy Policy and Terms links after the copyright line */
.gk-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin-left: 18px;
}
@media (max-width: 767px) {
  .gk-legal-links {
    display: flex;
    margin: 10px 0 0;
  }
}

/* Privacy Policy and Terms & Conditions pages */
.gk-legal {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 40px;
  font-size: 17px;
  line-height: 1.75;
}
.gk-legal h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 52px 0 14px;
  scroll-margin-top: 120px;
}
.gk-legal h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 28px 0 10px;
}
.gk-legal ul {
  padding-left: 1.25em;
  margin: 0 0 20px;
}
.gk-legal li {
  margin: 0 0 8px;
}
.gk-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gk-legal .gk-legal-updated {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 24px;
}
.gk-legal-toc {
  background: var(--primary);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0 8px;
}
.gk-legal-toc p {
  margin: 0;
}
.gk-legal-toc ul {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.gk-legal-toc li {
  break-inside: avoid;
}
.gk-legal-toc a {
  color: #0D1B2A;
  text-decoration: none;
}
.gk-legal-toc a:hover {
  text-decoration: underline;
}
.gk-legal-contact {
  border-left: 4px solid #0D1B2A;
  background: #F7F7F5;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-top: 12px;
}
.gk-legal-contact p {
  margin: 0;
}
@media (max-width: 767px) {
  .gk-legal {
    font-size: 16px;
  }
  .gk-legal h2 {
    font-size: 22px;
    margin-top: 40px;
  }
  .gk-legal-toc {
    padding: 20px;
  }
  .gk-legal-toc ul {
    columns: 1;
  }
}
