#work-projects {
  scroll-margin-top: 130px;
}

.work-ux-filters {
  display: grid;
  grid-template-columns: auto 184px 88px minmax(0, 1fr);
  grid-template-areas: "label year reset count";
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}

.work-ux-filters label {
  grid-area: label;
  margin: 0 4px 0 0;
  padding: 0;
  font-weight: 700;
  white-space: nowrap;
}

.work-ux-pagination button {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #999;
  border-radius: 0;
  background: #fff;
  color: #222;
  font: inherit;
  cursor: pointer;
}

.work-ux-filters select,
.work-ux-filters button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 0;
  background-color: #fff;
  color: #222;
  font-family: inherit;
  line-height: normal;
  cursor: pointer;
}

.work-ux-filters select {
  grid-area: year;
  padding: 0 40px 0 16px;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  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 1 5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.work-ux-filters button {
  grid-area: reset;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}

.work-ux-filters button:disabled {
  background: #f3f3f3;
  border-color: #e1e1e1;
  color: #999;
  cursor: default;
}

#work-result-count {
  grid-area: count;
  justify-self: end;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: #666;
  white-space: nowrap;
}

.work-ux-list {
  padding-top: 24px;
}

.work-ux-list #work-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.work-ux-list #work-project-list > li {
  float: none;
  width: auto;
  padding: 0;
  min-width: 0;
  text-align: left;
  scroll-margin-top: 140px;
}

.work-ux-thumb {
  display: block;
  aspect-ratio: 480 / 346;
  background: #f5f5f5;
  overflow: hidden;
}

.work-ux-list #work-project-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-ux-list #work-project-list p {
  display: block;
  min-height: 0;
  max-height: none;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: normal;
  word-spacing: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.work-ux-pagination {
  margin-top: 36px;
  text-align: center;
}

.work-ux-pagination p {
  margin-bottom: 14px;
  color: #666;
}

.work-ux-pagination button {
  min-width: 200px;
  background: #222;
  color: #fff;
  border-color: #222;
}

#work-empty {
  padding: 48px 16px;
  text-align: center;
}

.prain-workscope__detail .work-ux-back {
  display: block;
}

.prain-workscope__detail .work-ux-back--bottom {
  clear: both;
  margin-top: 28px;
}

.work-ux-filters :focus-visible,
.work-ux-list a:focus-visible,
.work-ux-pagination button:focus-visible,
.work-ux-back:focus-visible {
  outline: 3px solid #b74800;
  outline-offset: 4px;
}

.work-ux-filters[hidden],
.work-ux-pagination[hidden],
#work-load-more[hidden],
#work-empty[hidden] {
  display: none;
}

@media (max-width: 756px) {
  .work-ux-filters {
    grid-template-columns: minmax(0, 1fr) 80px;
    grid-template-areas: "label count" "year reset";
    gap: 12px;
    padding: 0;
  }
  .work-ux-list #work-project-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .work-ux-list #work-project-list > li {
    scroll-margin-top: 90px;
  }
  #work-projects {
    scroll-margin-top: 90px;
  }
  #work-result-count {
    font-size: 13px;
  }
  .work-ux-list #work-project-list p {
    font-size: 16px;
  }
}
