[hidden] {
  display: none !important;
}

.work-layout--media {
  grid-template-columns: 126px minmax(0, 1fr);
}

.work-layout--no-media {
  grid-template-columns: 1fr;
}

.work-image-wrap {
  min-height: 0;
  padding: 8px;
  align-items: flex-start;
}

.work-image {
  width: 108px;
  height: auto;
  max-height: 154px;
  object-fit: cover;
  border-radius: 4px;
}

.image-empty {
  width: 108px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: 4px;
}

.samples {
  padding: 8px 12px 10px;
}

.subhead {
  margin-bottom: 6px;
}

.sample-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sample-grid img {
  width: 68px;
  height: 52px;
  flex: 0 0 68px;
  object-fit: cover;
  border-radius: 3px;
}

@media (max-width: 700px) {
  .work-layout--media {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .work-layout--no-media {
    grid-template-columns: 1fr;
  }

  .work-image-wrap {
    min-height: 0;
    max-height: none;
    padding: 7px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .work-image {
    width: 80px;
    max-height: 116px;
  }

  .image-empty {
    width: 80px;
    height: 58px;
  }

  .work-data {
    padding-left: 8px;
    padding-right: 8px;
  }

  .sample-grid {
    gap: 3px;
  }

  .sample-grid img {
    width: 56px;
    height: 42px;
    flex-basis: 56px;
  }
}
