.gcb-project-layout {
  --project-hero-gutter: 10px;
  --project-hero-radius: 24px;
  --project-ink: #37131f;
  --project-accent: #66051e;
  --project-muted: #566669;
  --project-pink: #f4e8ea;
  --project-blue: #e9f7fe;
  --project-line: #ece6e6;
  min-width: 0;
  background: #fff;
}

.gcb-project-layout :where(.e-con, .elementor-widget) { min-width: 0; }
.gcb-project-layout a:focus-visible { outline: 2px solid #1384b0; outline-offset: 3px; }
.single-awaiken-portfolio:has(.gcb-project-layout) .ekit-template-content-header { margin-bottom: -87px; }
.gcb-project-layout .gcb-project-hero {
  position: relative;
  isolation: isolate;
  width: calc(100% - 2 * var(--project-hero-gutter));
  margin: var(--project-hero-gutter) auto 0;
  align-self: center;
  min-height: 390px;
  justify-content: flex-end;
  background: var(--project-ink);
  border-radius: var(--project-hero-radius);
  clip-path: inset(0 round var(--project-hero-radius));
}
.gcb-project-layout .gcb-project-hero:not(:has(.gcb-field-cover)) { min-height: 290px; }
.gcb-project-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgb(30 10 16 / .50), rgb(30 10 16 / .10) 32%, rgb(30 10 16 / .88) 100%);
  pointer-events: none;
}
.gcb-project-hero .gcb-field-cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gcb-project-hero .gcb-field-cover .elementor-widget-container,
.gcb-project-hero .gcb-field-cover img { width: 100%; height: 100%; }
.gcb-project-hero .gcb-field-cover img { display: block; object-fit: cover; object-position: center; }
.gcb-project-hero .gcb-project-hero-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px 20px 27px;
}
.gcb-project-hero h1 { max-width: 960px; overflow-wrap: anywhere; }
.gcb-project-hero .gcb-project-crumb { align-items: center; }
.gcb-project-crumb .gcb-project-home-crumb { display: none; }
.gcb-project-crumb a.elementor-button { padding-left: 0; padding-right: 0; }
.gcb-project-hero .gcb-project-chips > .elementor-widget { width: auto; }

.gcb-project-layout .gcb-project-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - 44px);
  max-width: 1280px;
  margin: 10px auto 0;
  gap: 0;
}
.gcb-project-facts .elementor-widget-icon-box { width: 100%; border-bottom: 1px solid var(--project-line); padding: 14px 0; }
.gcb-project-layout .gcb-project-facts .elementor-icon-box-wrapper { display: flex; flex-direction: row; gap: 12px; align-items: center; text-align: left; }
.gcb-project-facts .elementor-icon-box-icon { display: flex; margin: 0; }
.gcb-project-layout .gcb-project-facts .elementor-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.gcb-project-facts .elementor-icon-box-content { min-width: 0; overflow-wrap: anywhere; }
.gcb-project-facts .elementor-icon-box-title { margin-bottom: 2px; }

.gcb-project-layout .gcb-project-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 22px 42px;
  gap: 36px;
}
.gcb-project-content .gcb-project-intro { max-width: 820px; }
.gcb-project-intro .gcb-project-description { max-width: 72ch; }
.gcb-project-description p:last-child, .gcb-project-contact p:last-child { margin-bottom: 0; }
.gcb-project-content .gcb-project-sidebar { gap: 27px; }
.gcb-project-sidebar .gcb-project-contact { padding: 23px 20px; border-radius: 22px; }
.gcb-project-contact .elementor-button { width: 100%; }
.gcb-project-trades .gcb-project-trade-line { border-bottom: 1px solid var(--project-line); }
.gcb-project-trades .gcb-project-trade-line:first-of-type { border-top: 1px solid var(--project-line); }
.gcb-project-layout .gcb-project-trades .gcb-project-trade-line a.elementor-button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}
.gcb-project-trade-line .elementor-button-content-wrapper {
  justify-content: space-between;
  align-items: center;
}
.gcb-project-trade-line .elementor-button-text { flex-grow: 1; }
.gcb-project-layout :is(.gcb-project-trade-line, .gcb-project-nav) .elementor-button::after {
  content: none;
}
.gcb-project-layout .gcb-project-trade-line .elementor-button:is(:hover, :focus-visible),
.gcb-project-layout .gcb-project-neighbor .elementor-button:is(:hover, :focus-visible) {
  color: var(--project-ink);
  background: var(--project-pink);
}
.gcb-project-layout .gcb-project-nav-all .elementor-button:is(:hover, :focus-visible) {
  color: #fff;
  background: var(--project-ink);
}

.gcb-project-gallery { scroll-margin-top: 125px; }
.gcb-project-gallery .gcb-project-gallery-head { justify-content: space-between; align-items: center; }
.gcb-project-gallery-head .elementor-widget { width: auto; }
.gcb-project-layout .gcb-project-gallery .gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(83%, 440px);
  gap: 10px;
  overflow-x: auto;
  margin: 0;
  padding: 2px 2px 5px;
  scroll-snap-type: x mandatory;
}
.gcb-project-layout .gcb-project-gallery .gallery .gallery-item { display: block; max-width: none; width: auto; margin: 0; padding: 0; scroll-snap-align: start; }
.gcb-project-gallery .gallery-icon { display: block; }
.gcb-project-gallery .gallery-icon a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; cursor: zoom-in; }
.gcb-project-gallery .gallery-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.gcb-project-gallery .gallery-item:only-child { grid-column: 1; }

.gcb-project-layout .gcb-project-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 1440px;
  padding: 0 12px 44px;
  gap: 10px;
  margin: 0 auto;
}
.gcb-project-nav .gcb-project-nav-all { grid-column: 1 / -1; grid-row: 2; }
.gcb-project-nav .gcb-project-nav-previous { grid-column: 1; grid-row: 1; }
.gcb-project-nav .gcb-project-nav-next { grid-column: 2; grid-row: 1; }
.gcb-project-nav .elementor-button {
  display: grid;
  min-height: 56px;
  width: 100%;
  align-content: center;
  overflow-wrap: anywhere;
}
.gcb-project-layout .gcb-project-nav .gcb-project-neighbor {
  min-height: 100%;
  padding: 10px;
  gap: 2px;
  border: 1px solid var(--project-line);
  border-radius: 14px;
}
.gcb-project-nav .gcb-project-neighbor .elementor-heading-title { text-align: left; padding-inline: 8px; }
.gcb-project-nav .gcb-project-nav-next .elementor-heading-title { text-align: right; }
.gcb-project-layout .gcb-project-nav .gcb-project-neighbor a.elementor-button {
  min-height: 42px;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
}
.gcb-project-layout .gcb-project-nav .gcb-project-nav-next a.elementor-button { text-align: right; }
.gcb-project-nav .gcb-project-neighbor .elementor-button-content-wrapper {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.gcb-project-nav .gcb-project-nav-next .elementor-button-content-wrapper { flex-direction: row-reverse; }
.gcb-project-nav .gcb-project-neighbor .elementor-button-icon { flex: none; margin: 0; }
.gcb-project-nav .gcb-project-neighbor .elementor-button-text { min-width: 0; }
@media (max-width: 767px) {
  .gcb-project-nav:not(:has(> .gcb-project-nav-previous)) > .gcb-project-nav-next,
  .gcb-project-nav:not(:has(> .gcb-project-nav-next)) > .gcb-project-nav-previous { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .gcb-project-layout .gcb-project-hero { min-height: 470px; }
  .gcb-project-hero .gcb-project-hero-inner { padding: 65px 5% 79px; }
  .gcb-project-crumb .gcb-project-home-crumb { display: block; }
  .gcb-project-layout .gcb-project-facts {
    position: relative;
    z-index: 1;
    width: calc(100% - 68px);
    margin-top: -41px;
    padding: 25px 30px;
    grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr));
    gap: 15px 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgb(55 19 31 / .12);
  }
  .gcb-project-facts .elementor-widget-icon-box { border: 0; padding: 0; }
  .gcb-project-facts .elementor-icon { width: 48px; height: 48px; }
  .gcb-project-layout .gcb-project-content { padding: 55px 5% 58px; gap: 42px; }
  .gcb-project-layout .gcb-project-gallery .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-columns: auto;
    overflow: visible;
    gap: 12px;
  }
  .gcb-project-layout .gcb-project-gallery .gallery .gallery-item:first-child { grid-column: 1 / -1; }
  .gcb-project-gallery .gallery-item:first-child .gallery-icon a { aspect-ratio: 2 / 1; }
  .gcb-project-gallery .gallery-icon a { border-radius: 24px; }
  .gcb-project-layout .gcb-project-nav { padding: 25px 5% 45px; border-top: 1px solid var(--project-line); grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .gcb-project-nav .gcb-project-nav-all { grid-column: 2; grid-row: 1; align-self: center; }
  .gcb-project-nav .gcb-project-nav-next { grid-column: 3; }
}

@media (min-width: 900px) {
  .gcb-project-layout .gcb-project-gallery .gallery:has(.gallery-item:nth-child(4 of .gallery-item)) {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, min(17vw, 210px));
  }
  .gcb-project-layout .gcb-project-gallery .gallery:has(.gallery-item:nth-child(4 of .gallery-item)) .gallery-item:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .gcb-project-gallery .gallery:has(.gallery-item:nth-child(4 of .gallery-item)) .gallery-item:nth-child(4 of .gallery-item) {
    grid-column: 2 / 4;
  }
  .gcb-project-gallery .gallery:has(.gallery-item:nth-child(4 of .gallery-item)) .gallery-icon,
  .gcb-project-gallery .gallery:has(.gallery-item:nth-child(4 of .gallery-item)) .gallery-icon a {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 1025px) {
  .single-awaiken-portfolio:has(.gcb-project-layout) .ekit-template-content-header { margin-bottom: -141px; }
  .gcb-project-layout {
    --project-hero-gutter: 40px;
    --project-hero-radius: 40px;
  }
  .gcb-project-layout .gcb-project-hero { min-height: clamp(500px, 50vw, 740px); }
  .gcb-project-layout .gcb-project-hero:not(:has(.gcb-field-cover)) { min-height: 410px; }
  .gcb-project-hero .gcb-project-hero-inner { padding: 65px 4.25% 56px; }
  .gcb-project-hero h1 { max-width: 770px; }
  .gcb-project-layout .gcb-project-facts {
    isolation: isolate;
    margin-top: -48px;
  }
  .gcb-project-layout .gcb-project-facts::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: #fff;
    content: "";
  }
  .gcb-project-layout .gcb-project-content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 345px);
    column-gap: clamp(48px, 6vw, 95px);
    row-gap: 54px;
    padding-top: 66px;
  }
  .gcb-project-content .gcb-project-sidebar { grid-row: 1; grid-column: 2; }
  .gcb-project-content .gcb-project-gallery { grid-column: 1 / -1; }
  .gcb-project-content:not(:has(.gcb-project-intro)) .gcb-project-sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .gcb-project-contact .gcb-project-call { display: none; }
}
