html,
body {
  overflow-x: hidden;
}

.blog-side-by-side .blog-side-by-side-wrapper {
  display: block;
}

.blog-side-by-side .blog-item {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.2fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
}

.blog-side-by-side .blog-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

.blog-side-by-side .blog-image-wrapper .image-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.blog-side-by-side .blog-image-wrapper img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.blog-side-by-side .blog-item-summary {
  display: block;
}

.blog-side-by-side .blog-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 0.5rem 0;
}

.blog-side-by-side .blog-title a {
  text-decoration: none;
  color: inherit;
}

.blog-side-by-side .blog-meta-section {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-side-by-side .blog-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.8rem 0;
}

.blog-side-by-side .blog-more-link {
  text-decoration: underline;
  font-size: 0.95rem;
}

.blog-item-wrapper .blog-item-inner-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.blog-item-wrapper .blog-item-title h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.blog-item-wrapper .blog-item-content {
  font-size: 1rem;
  line-height: 1.7;
}

.blog-item-wrapper .blog-item-content a {
  text-decoration: underline;
}

.sqs-gallery-block-grid .sqs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.sqs-gallery-block-grid .slide {
  position: relative;
}

.sqs-gallery-block-grid .slide .margin-wrapper {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}

.sqs-gallery-block-grid .slide img.thumb-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
}

@media (max-width: 767px) {
  .blog-side-by-side .blog-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.sqs-html-content h1,
.sqs-html-content h2,
.sqs-html-content h3,
.list-item-content__title,
.portfolio-title {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: auto;
}

body.view-item #sections .sqs-html-content p {
  font-family: var(--body-font-font-family, "Almarai"), sans-serif !important;
  line-height: var(--body-font-line-height, 1.5em) !important;
  font-weight: var(--body-font-font-weight, 400);
}

@media (max-width: 959px) {
  .header-display-desktop {
    display: none !important;
  }

  .header-display-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header-burger {
    display: block !important;
    margin-left: auto;
  }

  .header-actions--right {
    display: none !important;
  }
}

@media (max-width: 959px) {
  body {
    font-size: 16px;
  }

  [data-fluid-engine="true"] > .fluid-engine {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 1rem !important;
    justify-items: stretch !important;
  }

  [data-fluid-engine="true"] > .fluid-engine > .fe-block {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    align-self: start !important;
    margin: 0 !important;
  }

  .sqs-block,
  .sqs-block-content,
  .sqs-text-block-container,
  .content-wrapper {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .header-title-text a,
  #site-title {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    max-width: 70vw;
    display: inline-block;
  }

  .header-menu-nav-item a,
  .header-menu .header-nav-folder-title,
  .header-menu .header-menu-nav-folder-title,
  .header-menu .header-menu-nav-item a {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .header-nav,
  .header-display-mobile .header-nav,
  .header-actions--right,
  .header-title-nav-wrapper {
    display: none !important;
  }

  .header-display-mobile .header-title-text,
  .header-display-mobile #site-title {
    max-width: calc(100vw - 140px) !important;
  }

  .header-display-mobile #site-title {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #cenco-lang-switcher {
    top: 12px;
    right: 64px;
    padding: 4px 8px;
    gap: 8px;
  }

  #cenco-lang-switcher [data-lang] {
    font-size: 0.65rem !important;
  }

  body.homepage .sqs-html-content h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem) !important;
    line-height: 1.05 !important;
    text-wrap: balance;
  }

  body.homepage .sqs-html-content h2 {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    line-height: 1.15 !important;
    text-wrap: balance;
  }

  body.homepage .sqs-html-content p,
  .list-item-content__description,
  .sqs-html-content li,
  .sqs-html-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .sqs-block-button-container,
  .sqs-block-button-container--center {
    width: 100%;
  }

  .sqs-block-button-element,
  .sqs-block-button-element--medium,
  .list-item-content__button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .user-items-list-item-container,
  .user-items-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .user-items-list-item {
    width: 100% !important;
  }

  #gridThumbs {
    display: block !important;
  }

  #gridThumbs .grid-item {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
  }

  #gridThumbs .project-gradient-overlay .project-name {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  #gridThumbs .project-gradient-overlay .project-country {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  #footer-sections [data-fluid-engine="true"] > .fluid-engine {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 0.5rem !important;
  }

  #footer-sections [data-fluid-engine="true"] > .fluid-engine > .fe-block {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    margin: 0 !important;
  }

  #footer-sections .sqs-html-content h1,
  #footer-sections .sqs-html-content h2,
  #footer-sections .sqs-html-content h3,
  #footer-sections .sqs-html-content p,
  #footer-sections .sqs-html-content a {
    text-align: left !important;
  }
}
