body:is(.view-item, .collection-type-page) #page {
  --body-font-font-weight: 400;
  font-size: max(18px, 1em);
  font-weight: 400;
}

body:is(.view-item, .collection-type-page) #page .sqsrte-small {
  font-size: max(18px, 1em);
}

body:is(.view-item, .collection-type-page) #page .sqs-html-content :is(h2, h3):has(+ p),
body.collection-type-page #page .sqs-html-content h4:has(+ p) {
  margin-bottom: 0;
}

body:is(.view-item, .collection-type-page) #page .sqs-html-content :is(h2, h3) + p,
body.collection-type-page #page .sqs-html-content h4 + p {
  margin-top: 0;
}

#page .page-intro {
  font-family: var(--heading-font-font-family);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.5;
}

#collection-5e5020b9e164eb3059684771 #page .sqs-html-content p {
  margin: 0;
}

#collection-5e5020b9e164eb3059684771 #page .sqs-html-content p + p {
  margin-top: 16px;
}

#page [data-section-id="5e5579a1c33d661d03903a85"] .sqs-row:has(> .sqs-col-5) {
  > .sqs-col-6 .sqs-html-content,
  > .sqs-col-7 .sqs-col-6 .sqs-html-content {
    padding-bottom: 32px;
  }
}

#page .project-color-hero {
  color: #18181b;
  background: var(--project-hero-color);

  h1 {
    color: inherit;
    margin: 0;
  }
}

:is(body.view-item, body#collection-5e5020b9e164eb3059684771) #page .sections > .page-section:first-child {
  box-sizing: border-box;
  height: clamp(400px, 45vh, 520px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  .content-wrapper {
    flex: 0 0 auto;
    padding-top: 0;
    padding-bottom: 36px;
  }

  .sqs-layout,
  .sqs-block {
    padding-top: 0;
    padding-bottom: 0;
  }

  .spacer-block {
    display: none;
  }

  h1 {
    margin: 0;
  }
}

#page .project-color-hero--sage {
  --project-hero-color: #dce7df;
}

#page .project-color-hero--blue {
  --project-hero-color: #dce6ee;
}

#page .project-color-hero--sand {
  --project-hero-color: #eee1ce;
}

#page .project-color-hero--lavender {
  background: linear-gradient(120deg, #e5dfed 0%, #e3e8ef 55%, #e5ede8 100%);
}

body#collection-5e5020b9e164eb3059684771 #page .sections > .page-section[data-section-id="about-title"]:first-child {
  height: calc(1.25 * var(--header-fixed-top-offset, 44px));
  flex-shrink: 0;
}

#page .project-image-hero--capture {
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.65)),
    url("data-collection-hero.png") center / cover no-repeat;
}

#page .project-image-hero--journeys {
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.65)),
    url("journeys-hero.png") 70% center / cover no-repeat;
}

#page .project-image-hero--location {
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.65)),
    url("location-integration-hero.png") center / cover no-repeat;
}

#page [data-section-id="5e51995b8ff9f5167f88dc72"] .image-card,
#page [data-section-id="5e54053dcd3daf3b4b717539"] .image-card,
#page [data-section-id="5e52cbf1643db018c8958b1d"] .image-card,
#page [data-section-id="5e5053821e73460ae84a0c2b"] .image-card,
#page [data-section-id="5e544b1e4f74387f5e2c7941"] .image-card {
  box-sizing: border-box;
  background-color: #f2f2f2;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
}

#page [data-section-id="5e51995b8ff9f5167f88dc72"] .image-card p,
#page [data-section-id="5e54053dcd3daf3b4b717539"] .image-card p,
#page [data-section-id="5e52cbf1643db018c8958b1d"] .image-card p,
#page [data-section-id="5e5053821e73460ae84a0c2b"] .image-card p,
#page [data-section-id="5e544b1e4f74387f5e2c7941"] .image-card p {
  margin: 0;
}

#page [data-section-id="5e51995b8ff9f5167f88dc72"] .image-block > .sqs-block-content,
#page [data-section-id="5e54053dcd3daf3b4b717539"] .image-block > .sqs-block-content,
#page [data-section-id="5e52cbf1643db018c8958b1d"] .image-block > .sqs-block-content,
#page [data-section-id="5e544b1e4f74387f5e2c7941"] .image-block > .sqs-block-content,
#page [data-section-id="5e5053821e73460ae84a0c2b"] .image-block > .sqs-block-content {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

#page :is(
  #block-e64214abc0ec2cd24594,
  #block-4cfa65d3b8957ad9136b,
  #block-e0bdf2bfcc302f571402
) > .sqs-block-content {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

#page .page-section .content-wrapper {
  box-sizing: border-box;
  width: calc(100% - 72px);
  margin-left: 36px;
  margin-right: 36px;
}

#page .sqs-image-shape-container-element.has-aspect-ratio > img {
  position: absolute;
  inset: 0;
}

#page .sqs-image-shape-container-element.content-fit > img {
  width: 100%;
  height: auto;
}

#page :is(
  [data-section-id="5e535497976c87268c2b914c"],
  [data-section-id="5e54063286bd6021b33a91b0"],
  [data-section-id="5e5429ffdcec210ff77fea71"],
  [data-section-id="5e543ce37bcf434aa9cb2498"],
  [data-section-id="5e5355db3ed02b41f472c4a6"]
) {
  min-height: 0;

  .content-wrapper {
    padding-bottom: 12px;
  }
}

#page :is(
  [data-section-id="5e5429ffdcec210ff77fea71"],
  [data-section-id="5e543ce37bcf434aa9cb2498"]
) .sqs-layout .sqs-block.html-block {
  padding-bottom: 0 !important;
}

#page :is(
  [data-section-id="5e5354a5cd15995a4ebd5ec6"],
  [data-section-id="5e54064492836d3acd6bd38b"],
  [data-section-id="5e54295840ab6f0ecaa2c797"],
  [data-section-id="5e543d21edf2bb4b6dee88c0"],
  [data-section-id="5e5356c21408117e3b978aa2"]
) .gallery-slideshow {
  padding-top: 12px;
}

body.view-item #page,
body.view-item .gallery-lightbox-outer-wrapper {
  .gallery-slideshow-wrapper {
    container-type: size;
  }

  .gallery-slideshow:has(img[data-image-dimensions="1500x2600"]) {
    --gallery-image-ratio: calc(1500 / 2600);
  }

  .gallery-slideshow:has(img[data-image-dimensions="2238x1211"]) {
    --gallery-image-ratio: calc(2238 / 1211);
  }

  .gallery-slideshow:has(img[data-image-dimensions="961x1918"]) {
    --gallery-image-ratio: calc(961 / 1918);
  }

  .gallery-slideshow:has(img[data-image-dimensions="2251x1358"]) {
    --gallery-image-ratio: calc(2251 / 1358);
  }

  .gallery-slideshow:has(img[data-image-dimensions="697x1200"]) {
    --gallery-image-ratio: calc(697 / 1200);
  }

  .gallery-slideshow-controls {
    width: min(100%, calc(100cqh * var(--gallery-image-ratio, 1) + 112px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .gallery-reel-controls {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
  }

  .gallery-slideshow-control,
  .gallery-reel-control {
    width: 44px;
    margin: 0;
    padding: 0;
    pointer-events: auto;
  }

  .gallery-slideshow-control-btn,
  .gallery-reel-control-btn,
  .gallery-lightbox-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    opacity: 1;
  }

  .gallery-slideshow-control-btn svg,
  .gallery-reel-control-btn svg,
  .gallery-lightbox-control-btn svg {
    display: block;
    width: 10px;
    height: 18px;
    stroke: currentColor;
  }

  .gallery-slideshow-control-btn svg polyline,
  .gallery-reel-control-btn svg polyline,
  .gallery-lightbox-control-btn svg polyline {
    stroke-width: 2px;
  }

  .gallery-slideshow-control-btn-icon,
  .gallery-reel-control-btn-icon,
  .gallery-lightbox-control-btn-icon {
    width: 10px;
    height: 18px;
  }

  :is(.gallery-slideshow-control-btn, .gallery-reel-control-btn, .gallery-lightbox-control-btn)[data-previous] svg {
    transform: translateX(-1px);
  }

  :is(.gallery-slideshow-control-btn, .gallery-reel-control-btn, .gallery-lightbox-control-btn)[data-next] svg {
    transform: translateX(1px);
  }

  .gallery-reel-control-btn::before {
    content: none;
  }

  .gallery-slideshow-control-btn:focus-visible,
  .gallery-reel-control-btn:focus-visible,
  .gallery-lightbox-control-btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
  }
}

@media screen and (min-width: 768px) {
  #page [data-section-id="5e5579a1c33d661d03903a85"] .sqs-layout > .sqs-row {
    margin-left: 0;
    margin-right: 0;

    > .col > .html-block {
      padding-left: 0;
      padding-right: 0;
    }
  }

  #page [data-section-id="5e5579a1c33d661d03903a85"] .sqs-row:has(> .sqs-col-5) {
    display: flex;
    gap: 24px;
    margin-left: 0;
    margin-right: 0;

    &::before,
    &::after,
    > .sqs-col-1 {
      display: none;
    }

    > .col {
      float: none;
      width: auto;
      min-width: 0;
    }

    > .sqs-col-5 {
      flex: 0 0 min(40%, 360px);
    }

    > :is(.sqs-col-6, .sqs-col-7) {
      flex: 1;
    }

    .sqs-block {
      padding-left: 0;
      padding-right: 0;
    }

    > .sqs-col-7 > .sqs-row {
      margin: 0;

      &::before,
      &::after,
      > .sqs-col-1 {
        display: none;
      }

      > .sqs-col-6 {
        float: none;
        width: 100%;
      }
    }
  }

  body.view-item #page .sqs-row:has(> .col > .image-block):has(> .col > .html-block):has(> .sqs-col-1 > .spacer-block),
  #page :is(
    [data-section-id="5e50576317651774bb13e0c7"],
    [data-section-id="5e5061b5af3a3e1585752201"],
    [data-section-id="5e518d1e2bf5dc55ccfc015c"],
    [data-section-id="5e50da53292ccf78e8135924"]
  ) .sqs-layout > .sqs-row {
    display: flex;
    column-gap: 24px;
    margin-left: 0;
    margin-right: 0;

    &::before,
    &::after,
    > .sqs-col-1,
    > .sqs-col-2 {
      display: none;
    }

    > .col {
      float: none;
      width: auto;
      min-width: 0;
    }

    > .sqs-col-4 {
      flex: 4;
    }

    > .sqs-col-5 {
      flex: 5;
    }

    > .sqs-col-6 {
      flex: 6;
    }

    > .sqs-col-7 {
      flex: 7;
    }

    > .col > .sqs-block {
      padding-left: 0;
      padding-right: 0;
    }
  }

  #page [data-section-id="5e50da53292ccf78e8135924"] .col:has(> .sqs-row) {
    flex: 5;

    > .sqs-row {
      margin: 0;

      &::before,
      &::after,
      > .sqs-col-1 {
        display: none;
      }

      > .sqs-col-5 {
        float: none;
        width: 100%;

        > .sqs-block {
          padding-left: 0;
          padding-right: 0;
        }
      }
    }
  }
}
