.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 32px 0 28px;
  border-radius: 24px;
  background: var(--neutral-100);
  box-shadow: 0px 7.77px 16px 0px rgba(0, 0, 0, 0.06);
}

.work-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 220px;
}

.work-search input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line, #e4e4e7);
  background: transparent;
  outline: none;
}

.work-search .icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
}

.work-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.work-cats .tf-btn,
.work-cats .tf-btn-2 {
  padding: 10px 18px;
  cursor: pointer;
}

.work-meta {
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 14px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  background: var(--neutral-100);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0px 7.77px 16px 0px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.work-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #111;
  overflow: hidden;
}

.work-card-media img,
.work-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #111;
}

.work-card-body {
  padding: 16px 18px 20px;
}

.work-card-cat {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.work-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 8px;
}

.work-card-desc {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 9, 11, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.work-lightbox.is-open {
  display: flex;
}

.work-lightbox-box {
  width: min(960px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--neutral-100);
  border-radius: 28px;
  padding: 20px;
}

.work-lightbox-box img,
.work-lightbox-box video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
}

.work-lightbox-close {
  margin-top: 12px;
}

.work-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 8px;
}
.work-pager button {
  min-width: 44px;
  cursor: pointer;
}
.work-pager-gap {
  align-self: center;
  color: var(--secondary);
}

@media (max-width: 1199px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-cats {
    justify-content: flex-start;
  }
}
