.page-head h1 {
  max-width: 18ch;
}

.screens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}

.screen-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: var(--inset);
  padding-bottom: 18px;
  border: 0;
  text-align: left;
  transition: transform 0.6s var(--ease-out);
}

.screen-card:hover {
  transform: translateY(-8px);
}

.screen-phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 6px;
  border-radius: 28px;
  background: #0d0d0e;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
  overflow: hidden;
}

.screen-phone img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.9s var(--ease-out);
}

.screen-card:hover .screen-phone img {
  transform: scale(1.04);
}

.screen-caption {
  display: grid;
  gap: 4px;
  padding-inline: 8px;
  font-weight: 500;
}

.screen-caption .num {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 450;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    radial-gradient(60% 70% at 50% 50%, rgb(18 84 79 / 0.55), transparent 70%),
    #0b0b0c;
  color: #fff;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px var(--gutter);
}

.lightbox::backdrop {
  background: #000;
}

.lb-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding-block: 40px 12px;
}

.lb-phone {
  height: min(100%, 760px);
  aspect-ratio: 9 / 19.5;
  padding: 8px;
  border-radius: 40px;
  background: #000;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.15),
    0 60px 120px -30px rgb(0 0 0 / 0.9),
    0 0 90px -10px rgb(148 255 191 / 0.35);
  overflow: hidden;
}

.lb-phone img {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  object-position: top;
}

.lightbox figcaption {
  display: flex;
  gap: 12px;
  font-weight: 500;
}

.lb-count {
  color: var(--mint);
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #ffffff14;
  color: #fff;
  box-shadow: inset 0 0 0 1px #ffffff26;
  transition:
    background-color 0.25s,
    color 0.25s,
    scale 0.3s var(--ease-out);
}

.lb-btn:hover {
  background: #fff;
  color: var(--ink);
  scale: 1.06;
}

.lb-btn svg {
  width: 24px;
  height: 24px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  z-index: 1;
  width: 48px;
  height: 48px;
}

@media (max-width: 1100px) {
  .screens {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lightbox[open] {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .lb-prev,
  .lb-next {
    display: none;
  }
  .lb-phone {
    height: auto;
    width: min(100%, 300px);
  }
}
