body {
  background: #f6fbff;
}

.portfolio-page {
  min-height: 100vh;
  padding: 136px 0 86px;
  background:
    radial-gradient(circle at 78% 10%, rgba(8, 104, 255, .24), transparent 28%),
    linear-gradient(180deg, #020813 0 360px, #f6fbff 360px 100%);
}

.portfolio-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 34px;
  color: #fff;
  text-align: center;
}

.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #9ed4ff;
  font-weight: 900;
}

.portfolio-hero span {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(8, 104, 255, .18);
  color: #b9dcff;
  font-weight: 900;
}

.portfolio-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  font-weight: 900;
}

.portfolio-hero p {
  width: min(760px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.9;
  font-weight: 800;
}

.portfolio-browser {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.portfolio-filter {
  border: 1px solid rgba(8, 104, 255, .22);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  color: #063263;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(5, 32, 70, .08);
}

.portfolio-filter.active {
  background: #0868ff;
  color: #fff;
  border-color: #0868ff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-shot {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(157, 210, 255, .72);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(2, 20, 50, .12);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.portfolio-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.portfolio-shot span {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 999px;
  background: rgba(8, 104, 255, .92);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.portfolio-shot.is-hidden {
  display: none;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 19, .86);
}

.portfolio-lightbox[hidden] {
  display: none;
}

.portfolio-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.portfolio-close {
  position: fixed;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .portfolio-page {
    padding: 116px 0 76px;
    background: linear-gradient(180deg, #020813 0 310px, #f6fbff 310px 100%);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portfolio-browser {
    width: calc(100% - 12px);
  }

  .portfolio-shot {
    border-radius: 14px;
  }

  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 6px 8px;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .portfolio-hero {
    width: calc(100% - 24px);
  }

  .portfolio-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }
}
