/* =====================================================
   WORK PAGE
   Builds on style.css (fonts, colours, .text-title)
   ===================================================== */

.work-page {
  padding: 40px 5% 0;
}

/* ─── HEADER ───────────────────────────────────────── */
.work-header {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  margin-bottom: 2.25rem;
}
.work-header h1.text-title { margin-bottom: 8px; }
.work-intro { font-size: 18px; line-height: 1.5; max-width: 34em; }
#work-count { color: #6b6b6b; }

/* ─── FILTERS ──────────────────────────────────────── */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}
.work-filter {
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  padding: 9px 14px;
  border: 1px solid #000;
  border-radius: 100px;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.work-filter:hover { border-color: #F74F9E; color: #F74F9E; }
.work-filter.is-active,
.work-filter.is-active:hover { background: #000; border-color: #000; color: #fff; }

/* ─── SHARED ITEM BITS ─────────────────────────────── */
.work-item__thumb {
  display: block;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 3;
}
.work-item__thumb img,
.work-item__thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
a.work-item__thumb:hover img,
a.work-item__thumb:hover video { transform: scale(1.03); }

.work-item__title { font-size: 18px; line-height: 1.35; }
.work-item__title a { color: #F74F9E; text-decoration: underline; }
.work-item__year,
.work-item__client,
.work-item__cats { font-size: 15px; line-height: 1.4; color: #6b6b6b; }

/* ─── GRID (image cards) ──────────────────────────── */
.work-list--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
.work-list--grid .work-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "thumb thumb"
    "title year"
    "cats  cats";
  row-gap: 6px;
}
.work-list--grid .work-item__thumb  { grid-area: thumb; margin-bottom: 6px; }
.work-list--grid .work-item__title  { grid-area: title; }
.work-list--grid .work-item__year   { grid-area: year; padding-left: 12px; }
.work-list--grid .work-item__cats   { grid-area: cats; }
.work-list--grid .work-item__client { display: none; }

/* ─── FOOTER ───────────────────────────────────────── */
.work-footer {
  display: flex;
  justify-content: space-between;
  padding: 4rem 0 2.5rem;
  font-size: 15px;
  color: #555;
}
.work-footer a { color: #000; }
.work-footer a:hover { color: #F74F9E; }

/* ─── SMALLER SCREENS ──────────────────────────────── */
@media (max-width: 991px) {
  .work-page { padding: 20px 20px 0; }
  .work-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-list--grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

@media (max-width: 700px) {
  .work-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px 1.5rem;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .work-filters::-webkit-scrollbar { display: none; }
  .work-filter { flex: none; }
}

@media (max-width: 480px) {
  .work-list--grid { grid-template-columns: 1fr 1fr; }
  .work-list--grid .work-item { grid-template-areas: "thumb thumb" "title title" "year year" "cats cats"; }
  .work-list--grid .work-item__year { padding-left: 0; }
}
