.header-pages {
  padding: 60px 0 24px;
}

.header-pages-title {
  text-align: center;
  color: hsl(0, 0%, 90.2%);
}

.portfolio-subtitle {
  gap: 12px;
  margin-bottom: 24px;
}

.portfolio-subtitle::before {
  background-image: radial-gradient(circle closest-side, transparent calc(100% - 2px), currentColor calc(100% - 2px) 100%, transparent 0);
  -webkit-mask-image: radial-gradient(circle closest-side, currentColor calc(100% - 2px) 100%, transparent 0);
  mask-image: radial-gradient(circle closest-side, currentColor calc(100% - 2px) 100%, transparent 0);
  color: hsl(348.3, 79.9%, 60.98%);
}

.portfolio-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.portfolio-item {
  display: grid;
  border: 1px solid hsl(0, 0%, 90.2%);
  border-radius: 2px;
  overflow: hidden;
  text-align: center;
}

.portfolio-item-figure {
  position: relative;
  isolation: isolate;
}

.portfolio-item-img {
  object-fit: cover;
  object-position: top;
}

.portfolio-item-figcaption {
  padding: 48px 24px;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.portfolio-item-title {
  display: inline-block;
  align-self: center;
  margin-bottom: 12px;
}

.portfolio-item-desc {
  margin-bottom: 24px;
}

@supports ((-webkit-appearance: none) or (appearance: none)) {

}

@media (min-width: 540px) {
  .header-pages {
    padding: 96px 0 30px;
  }

  .portfolio-list {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}

@media (min-width: 540px) and (pointer: coarse) {
  .portfolio-item-figure {
    display: flex;
    flex-direction: column;
  }

  .portfolio-item-figcaption {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .portfolio-item-btn {
    margin-top: auto;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}

@media (min-width: 1024px) {
  .portfolio-list {
    grid-template-columns: initial;
    grid-auto-rows: initial;
    grid-template-areas: "item1 item2 item3" "item1 item4 item4";
  }

  .portfolio-item1 {
    grid-area: item1;
  }

  .portfolio-item2 {
    grid-area: item2;
  }

  .portfolio-item3 {
    grid-area: item3;
  }

  .portfolio-item4 {
    grid-area: item4;
  }

  .portfolio-item1 {
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    -ms-grid-column: 1;
  }

  .portfolio-item2 {
    -ms-grid-row: 1;
    -ms-grid-column: 2;
  }

  .portfolio-item3 {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }

  .portfolio-item4 {
    -ms-grid-row: 2;
    -ms-grid-column: 2;
    -ms-grid-column-span: 2;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}

@media (min-width: 1024px) and (pointer: coarse) {
  .portfolio-item-img {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: 100%;
  }

  .portfolio-item-figcaption {
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: initial;
    height: 100%;
    min-height: 256px;
    margin-top: initial;
    opacity: 0;
  }

  :where(.portfolio-item):hover .portfolio-item-figcaption {
    pointer-events: initial;
    opacity: 1;
  }

  .portfolio-item-btn {
    margin-top: initial;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}

@media (min-width: 1280px) {
  .portfolio-item-figcaption {
    padding: 48px;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}

@media (pointer: fine) {
  .portfolio-item-img {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: 100%;
  }

  .portfolio-item-figcaption {
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 256px;
    opacity: 0;
  }

  :where(.portfolio-item):hover .portfolio-item-figcaption {
    pointer-events: initial;
    opacity: 1;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}

@media (pointer: coarse) {
  .portfolio-item-img {
    height: 256px;
  }

  .portfolio-item-figcaption {
    position: relative;
    margin-top: -88px;
  }

@supports ((-webkit-appearance: none) or (appearance: none)) {

}
}