.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  box-shadow: 0 2px 12px rgba(1, 2, 29, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.work-card:hover {
  box-shadow: 0 8px 28px rgba(1, 2, 29, 0.15);
  transform: translateY(-3px);
}

.work {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-examples {
  display: block;
}

.work-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 700px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
  transition: transform 0.4s ease;
}

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


.work-item {
  display: flex;
  flex-direction: column;
  /* gap: 0.75rem; */
}

.work-label {
  display: flex;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: var(--body-weight);
  opacity: 0.6;
  margin: 0.5rem 0 0;
}

.work-item {
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.work-item.is-dimmed {
  filter: grayscale(100%);
  opacity: 0.4;
}
.work-examples > h3 {
  margin-block: 0 1.5rem;
}

.work-controls {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.work-control-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: var(--body-weight);
}

.work-control-label select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--light);
  border: 1px solid rgba(1, 2, 29, 0.25);
  border-radius: 2rem;
  padding: 0.4rem 2rem 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2301021d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.2s ease;
}

.work-control-label select:hover {
  border-color: var(--dark);
}