.page-cards {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 2rem;
}

.work-modal-card {
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  margin: 8vh auto 2rem;
  overflow-y: auto;
}

.card {
  background: rgba(18, 17, 17, 0.08);
  border: 1px solid rgba(16, 16, 16, 0.15);
  padding: 1.4rem;
  border-radius: 18px;
}

.work-trigger {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 180px;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  color: inherit;
  border: 2px solid var(--acid);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45);
  background-color: #121111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
  filter: saturate(1.05) contrast(1.05);
}

.work-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.86));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}

.work-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.7);
  transform: scale(1.03);
  z-index: -1;
}

.work-item-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: #fff;
}

.page-list-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0.35rem 0 0;
  color: #fff;
}

@media (max-width: 640px) {
  .work-trigger {
    align-items: flex-end;
    min-height: 150px;
  }
}
