body:is(.category, .single-post) {
  --nw-works-text: #1B2830;
  --nw-works-muted: #64727E;
  --nw-works-border: #E7EEF2;
  --nw-works-bg: #F7FCFD;
  --nw-works-blue: #2BA8C4;
  --nw-works-container: min(100% - 80px, 1600px);
}

body:is(.category, .single-post) .site-content {
  background: var(--nw-works-bg);
}

.notewall-portfolio-page,
.notewall-project-page {
  width: var(--nw-works-container);
  margin: 0 auto;
  padding: 28px 0 88px;
  color: var(--nw-works-text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.nw-portfolio-hero {
  display: flex;
  min-height: 238px;
  align-items: center;
  overflow: hidden;
  padding: 24px 40px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 56% 36%, rgba(255,255,255,.6), rgba(255,255,255,0) 34%),
    linear-gradient(95.94deg, #EEF8FA 1.45%, #EAF1FB 50.6%, rgba(244,250,253,0) 90.82%),
    var(--portfolio-hero-image) center right / cover no-repeat;
  box-shadow: 0 1px 4px rgba(12, 12, 13, .05);
}

.nw-portfolio-hero__content {
  width: min(100%, 540px);
}

.nw-portfolio-hero h1,
.nw-project-header h1 {
  margin: 0;
  color: var(--nw-works-text);
  font-size: 48px;
  font-weight: 800;
  line-height: 55px;
  letter-spacing: 0;
}

.nw-portfolio-hero p {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--nw-works-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.nw-portfolio-archive {
  margin-top: 78px;
}

.nw-portfolio-heading p,
.nw-project-header p,
.nw-project-gallery h2,
.nw-project-products h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #22869D;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nw-portfolio-heading p span,
.nw-project-header p span,
.nw-project-gallery h2 span,
.nw-project-products h2 span {
  width: 28px;
  height: 2px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--nw-works-blue);
}

.nw-portfolio-heading h2 {
  margin: 0;
  color: var(--nw-works-text);
  font-size: 34px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: 0;
}

.nw-portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}

.nw-portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nw-portfolio-filters select,
.nw-portfolio-search {
  width: 266px;
  height: 50px;
  border: 1px solid var(--nw-works-border);
  border-radius: 12px;
  background: #fff;
  color: var(--nw-works-text);
  font-size: 16px;
  line-height: 22px;
}

.nw-portfolio-filters select {
  padding: 0 20px;
}

.nw-portfolio-search {
  position: relative;
  display: flex;
  width: 291px;
  align-items: center;
  padding: 0 12px 0 20px;
}

.nw-portfolio-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--nw-works-text);
  font: inherit;
}

.nw-portfolio-search input::placeholder {
  color: #9AABB4;
  font-size: 14px;
  line-height: 21px;
}

.nw-portfolio-search span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--nw-works-blue);
  color: #fff;
  font-size: 18px;
}

.nw-portfolio-view {
  display: flex;
  gap: 8px;
}

.nw-portfolio-view button {
  display: inline-grid;
  width: 50px;
  height: 50px;
  grid-auto-flow: column;
  gap: 3px;
  place-content: center;
  border: 1px solid var(--nw-works-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.nw-portfolio-view button:first-child {
  width: 67px;
}

.nw-portfolio-view span {
  display: block;
  width: 6px;
  height: 22px;
  border-radius: 2px;
  background: var(--nw-works-blue);
}

.nw-portfolio-view button.is-active {
  border-color: var(--nw-works-blue);
  background: var(--nw-works-blue);
}

.nw-portfolio-view button.is-active span {
  background: #fff;
}

.nw-portfolio-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.notewall-portfolio-page[data-view="1"] .nw-portfolio-grid {
  grid-template-columns: 1fr;
}

.notewall-portfolio-page[data-view="2"] .nw-portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notewall-portfolio-page[data-view="3"] .nw-portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notewall-portfolio-page[data-view="4"] .nw-portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nw-portfolio-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nw-works-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(12, 12, 13, .05);
}

.notewall-portfolio-page[data-view="1"] .nw-portfolio-card,
.notewall-portfolio-page[data-view="2"] .nw-portfolio-card {
  min-height: 400px;
  grid-template-columns: minmax(260px, 41.6%) minmax(0, 1fr);
}

.notewall-portfolio-page[data-view="3"] .nw-portfolio-card,
.notewall-portfolio-page[data-view="4"] .nw-portfolio-card {
  grid-template-columns: 1fr;
}

.nw-portfolio-card__image {
  position: relative;
  display: block;
  min-height: 219px;
  overflow: hidden;
  background: #EAF1FB;
}

.notewall-portfolio-page[data-view="1"] .nw-portfolio-card__image,
.notewall-portfolio-page[data-view="2"] .nw-portfolio-card__image {
  height: 400px;
}

.notewall-portfolio-page[data-view="3"] .nw-portfolio-card__image {
  height: 285px;
}

.notewall-portfolio-page[data-view="4"] .nw-portfolio-card__image {
  height: 219px;
}

.nw-portfolio-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-portfolio-card__dots {
  position: absolute;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 6px;
}

.nw-portfolio-card__dots i {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
}

.nw-portfolio-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 32px 24px;
}

.notewall-portfolio-page[data-view="4"] .nw-portfolio-card__body {
  padding: 24px 16px;
}

.nw-portfolio-card__tag {
  align-self: flex-start;
  padding: 6px 18px;
  border-radius: 18px;
  background: #F7FCFD;
  color: var(--nw-works-blue);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.nw-portfolio-card h3 {
  margin: 24px 0 0;
  color: var(--nw-works-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 26px;
}

.notewall-portfolio-page[data-view="2"] .nw-portfolio-card h3,
.notewall-portfolio-page[data-view="4"] .nw-portfolio-card h3 {
  font-size: 22px;
}

.notewall-portfolio-page[data-view="3"] .nw-portfolio-card h3 {
  font-size: 24px;
}

.nw-portfolio-card h3 a {
  color: inherit;
  text-decoration: none;
}

.nw-portfolio-card p {
  max-width: 448px;
  margin: 18px 0 0;
  color: #3B434D;
  font-size: 16px;
  line-height: 24px;
}

.nw-portfolio-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.nw-portfolio-card__metrics {
  color: #9AABB4;
  font-size: 14px;
  line-height: 20px;
}

.nw-portfolio-card__link {
  color: var(--nw-works-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.nw-portfolio-empty {
  margin: 36px 0 0;
  color: var(--nw-works-muted);
  text-align: center;
}

.nw-portfolio-more {
  display: flex;
  min-width: 220px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0;
  padding: 14px 34px;
  border: 1px solid #22869D;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(43, 168, 196, .18);
  color: #22869D;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.nw-portfolio-consult,
.nw-project-consult {
  width: 100vw;
  margin: 80px calc(50% - 50vw) 0;
  overflow: hidden;
  background: linear-gradient(88.84deg, #309CBA -14.36%, #5CC6D9 109%);
}

.nw-portfolio-consult__inner,
.nw-project-consult__inner {
  width: var(--nw-works-container);
  min-height: 290px;
  margin: 0 auto;
  padding: 54px 0;
  text-align: center;
}

.nw-portfolio-consult h2,
.nw-project-consult h2 {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 38px;
}

.nw-portfolio-consult p,
.nw-project-consult p {
  max-width: 720px;
  margin: 20px auto 0;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.nw-portfolio-consult a,
.nw-project-consult a {
  display: inline-flex;
  min-width: 260px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(43, 152, 176, .6);
  color: #249DB7;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nw-project-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9AABB4;
  font-size: 14px;
  line-height: 20px;
}

.nw-project-breadcrumbs a {
  color: #64727E;
  text-decoration: none;
}

.nw-project-case {
  margin-top: 34px;
}

.nw-project-header h1 {
  max-width: 960px;
  margin-top: 12px;
}

.nw-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.nw-project-meta span {
  padding: 6px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--nw-works-blue);
  font-size: 16px;
  line-height: 24px;
}

.nw-project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .96fr);
  gap: 24px;
  align-items: center;
  margin-top: 42px;
}

.nw-project-intro__text {
  color: #3B434D;
  font-size: 18px;
  line-height: 30px;
}

.nw-project-intro__text p {
  margin: 0 0 22px;
}

.nw-project-intro img,
.nw-project-gallery__stage,
.nw-project-gallery__thumbs button,
.nw-project-product {
  border: 1px solid var(--nw-works-border);
  background: #fff;
  box-shadow: 0 1px 4px rgba(12, 12, 13, .05);
}

.nw-project-intro img {
  width: 100%;
  aspect-ratio: 628 / 404;
  object-fit: cover;
  border-radius: 20px;
}

.nw-project-gallery,
.nw-project-products,
.nw-project-rating {
  margin-top: 72px;
}

.nw-project-gallery__stage {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-radius: 20px;
}

.nw-project-gallery__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-project-gallery__stage button {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--nw-works-blue);
  transform: translateY(-50%);
  cursor: pointer;
}

.nw-project-gallery__stage button:first-child {
  left: 24px;
}

.nw-project-gallery__stage button:nth-child(3) {
  right: 24px;
}

.nw-project-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.nw-project-gallery__thumbs button {
  position: relative;
  height: 126px;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  cursor: pointer;
}

.nw-project-gallery__thumbs button.is-active {
  border: 2px solid var(--nw-works-blue);
  box-shadow: 0 10px 24px rgba(43, 168, 196, .26);
}

.nw-project-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-project-gallery__thumbs span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(27, 40, 48, .58);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.nw-project-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.nw-project-product {
  position: relative;
  min-height: 392px;
  padding: 18px;
  border-radius: 18px;
}

.nw-project-product__fav {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--nw-works-border);
  border-radius: 10px;
  background: #fff;
  color: var(--nw-works-blue);
  cursor: pointer;
}

.nw-project-product > img,
.nw-project-product__image {
  display: grid;
  width: 100%;
  min-height: 200px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--nw-works-border);
  border-radius: 12px;
}

.nw-project-product img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.nw-project-product p {
  margin: 18px 0 8px;
  color: #9AABB4;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

.nw-project-product h3 {
  margin: 0;
  color: var(--nw-works-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.nw-project-product span {
  display: block;
  margin-top: 6px;
  color: #64727E;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.nw-project-product__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--nw-works-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nw-project-rating {
  padding-top: 36px;
  border-top: 1px solid var(--nw-works-border);
  text-align: center;
}

.nw-project-rating h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 36px;
}

.nw-project-rating p {
  margin: 8px 0 20px;
  color: var(--nw-works-muted);
}

.nw-project-rating button {
  min-width: 96px;
  min-height: 44px;
  margin: 0 6px;
  border: 1px solid var(--nw-works-border);
  border-radius: 999px;
  background: #fff;
  color: var(--nw-works-text);
  cursor: pointer;
}

.nw-project-rating button.is-active {
  border-color: var(--nw-works-blue);
  background: var(--nw-works-blue);
  color: #fff;
}

.nw-project-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.nw-project-nav a {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border: 1px solid var(--nw-works-border);
  border-radius: 20px;
  background: #fff;
  color: var(--nw-works-text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.nw-project-nav a:last-child {
  text-align: right;
}

.nw-project-nav span {
  margin-bottom: 8px;
  color: var(--nw-works-blue);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  body:is(.category, .single-post) {
    --nw-works-container: min(100% - 40px, 1600px);
  }

  .notewall-portfolio-page[data-view="4"] .nw-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nw-project-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .nw-portfolio-toolbar,
  .nw-project-intro {
    grid-template-columns: 1fr;
  }

  .nw-portfolio-toolbar {
    display: grid;
  }

  .notewall-portfolio-page[data-view] .nw-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notewall-portfolio-page[data-view] .nw-portfolio-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body:is(.category, .single-post) {
    --nw-works-container: calc(100% - 40px);
  }

  .notewall-portfolio-page,
  .notewall-project-page {
    padding-top: 0;
    padding-bottom: 58px;
  }

  .nw-portfolio-hero {
    min-height: 489px;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 20px;
    background:
      linear-gradient(180deg, #EEF8FA 2.56%, #EAF1FB 47.49%, rgba(244,250,253,0) 84.25%),
      var(--portfolio-hero-image) center bottom / 185% auto no-repeat;
    text-align: center;
  }

  .nw-portfolio-hero h1,
  .nw-project-header h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
  }

  .nw-portfolio-hero p {
    font-size: 16px;
    line-height: 24px;
  }

  .nw-portfolio-archive {
    margin-top: 64px;
  }

  .nw-portfolio-heading {
    text-align: center;
  }

  .nw-portfolio-heading p,
  .nw-project-header p,
  .nw-project-gallery h2,
  .nw-project-products h2 {
    justify-content: center;
  }

  .nw-portfolio-heading h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
  }

  .nw-portfolio-filters {
    display: grid;
    gap: 12px;
  }

  .nw-portfolio-filters select,
  .nw-portfolio-search {
    width: 100%;
  }

  .nw-portfolio-search span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .nw-portfolio-view {
    display: none;
  }

  .notewall-portfolio-page[data-view] .nw-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .nw-portfolio-card {
    min-height: 492px;
  }

  .notewall-portfolio-page[data-view] .nw-portfolio-card__image {
    height: 247px;
  }

  .nw-portfolio-card__body {
    padding: 20px;
  }

  .nw-portfolio-card h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .nw-portfolio-card p {
    display: none;
  }

  .nw-portfolio-card__footer {
    display: block;
  }

  .nw-portfolio-card__link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid var(--nw-works-blue);
    border-radius: 31px;
  }

  .nw-portfolio-more {
    width: 100%;
  }

  .nw-portfolio-consult__inner,
  .nw-project-consult__inner {
    width: var(--nw-works-container);
  }

  .nw-portfolio-consult h2,
  .nw-project-consult h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .nw-project-breadcrumbs,
  .nw-project-header,
  .nw-project-intro__text {
    text-align: center;
  }

  .nw-project-meta {
    justify-content: center;
  }

  .nw-project-intro {
    display: flex;
    flex-direction: column;
  }

  .nw-project-intro img {
    aspect-ratio: 1 / 1;
    order: 2;
  }

  .nw-project-gallery__stage {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .nw-project-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .nw-project-gallery__thumbs button {
    height: 72px;
  }

  .nw-project-products__grid,
  .nw-project-nav {
    grid-template-columns: 1fr;
  }

  .nw-project-nav a,
  .nw-project-nav a:last-child {
    text-align: left;
  }

  .nw-project-rating h2 {
    font-size: 20px;
    line-height: 27px;
  }
}

@media (max-width: 340px) {
  body:is(.category, .single-post) {
    --nw-works-container: calc(100% - 24px);
  }
}