/* previous work */
.abcprvwefgintro {
  max-width: 36em;
  color: color-mix(in srgb, var(--helper-color) 80%, transparent);
}

.abcprvwefgresults {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.abcprvwefggrid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}

/* card */
.abcprvwefgcard {
  flex: 1 1 100%;
  max-width: 28em;
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 0.6em 0.6em 1em;
  border-radius: 1.2em;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
  background: linear-gradient(to top, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 70%);
  transition: border-color 0.3s;
}

.abcprvwefgcard:hover {
  border-color: var(--primary-color);
}

.abcprvwefgcard[hidden],
.abcprvwefgmore[hidden],
.abcprvwefgless[hidden] {
  display: none;
}

.abcprvwefgshot {
  position: relative;
  width: 100%;
}

.abcprvwefgpic {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.8em;
}

.abcprvwefgimg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* the phone keeps the mobile version visible on every card */
.abcprvwefgphone {
  position: absolute;
  inset-inline-end: 0.8em;
  bottom: -1.2em;
  width: 24%;
  z-index: 2;
}

.abcprvwefgphoneframe {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2.25;
  padding: 4%;
  background-color: var(--secondary-color);
  background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0.45));
  border-radius: 16% / 7.6%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--helper-color) 25%, transparent), 0 0 0 2px color-mix(in srgb, var(--helper-color) 16%, transparent), 0 18px 30px -14px rgba(0, 0, 0, 0.8);
}

.abcprvwefgphonescreen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--secondary-color);
  border-radius: 11% / 5.4%;
}

.abcprvwefgphonescreen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.abcprvwefgnotch {
  position: absolute;
  top: 2.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 3.4%;
  background-color: var(--secondary-color);
  border-radius: 999px;
  z-index: 2;
}

.abcprvwefgname {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.abcprvwefglink {
  transition: color 0.25s;
}

.abcprvwefglink:hover,
.abcprvwefglink:focus-visible {
  color: color-mix(in srgb, var(--primary-color) 60%, var(--helper-color));
}

/* show more and show less */
.abcprvwefgactions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
}

.abcprvwefgmore,
.abcprvwefgless {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 2em;
  border: 1px solid var(--primary-color);
  border-radius: 9999px;
  color: var(--helper-color);
  font-size: clamp(0.85rem, 0.82rem + 0.25vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, filter 0.25s;
}

.abcprvwefgmore {
  background-color: var(--primary-color);
}

.abcprvwefgmore:hover {
  filter: brightness(1.18);
}

.abcprvwefgless {
  background-color: transparent;
}

.abcprvwefgless:hover {
  background-color: color-mix(in srgb, var(--primary-color) 22%, transparent);
}

@media (min-width: 768px) {
  .abcprvwefgcard {
    flex-basis: calc(50% - 0.75em);
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .abcprvwefgcard {
    flex-basis: calc(33.333% - 1em);
  }
}
