.antuartem-portfolio-wrap {
  --ink: #17181B;
  --paper: #F4F2ED;
  --paper-2: #EAE7DF;
  --orange: #FF5A1F;
  --steel: #9298A3;
  --steel-dark: #4B4F57;
  --line-dark: rgba(23,24,27,0.12);
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  margin: 0;
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding: 40px 0 80px;
}
.antuartem-portfolio-wrap * { box-sizing: border-box; }
.antuartem-portfolio-wrap .pf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.antuartem-portfolio-wrap .pf-home-link,
.antuartem-portfolio-wrap .pf-back-link {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--steel-dark);
  margin-bottom: 18px; text-decoration: none;
}
.antuartem-portfolio-wrap .pf-home-link:hover,
.antuartem-portfolio-wrap .pf-back-link:hover { color: var(--orange); }

.antuartem-portfolio-wrap .pf-title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 6px; line-height: 1;
}
.antuartem-portfolio-wrap .pf-sub { color: var(--steel-dark); font-size: 15px; margin-bottom: 36px; }

/* --- Сетка категорий --- */
.antuartem-portfolio-wrap .pf-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.antuartem-portfolio-wrap .pf-cat-card {
  background: #fff; text-decoration: none; color: inherit; display: block;
  transition: background .15s;
}
.antuartem-portfolio-wrap .pf-cat-card:hover { background: var(--paper-2); }
.antuartem-portfolio-wrap .pf-cat-thumb {
  height: 140px; background: var(--paper-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.antuartem-portfolio-wrap .pf-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.antuartem-portfolio-wrap .pf-cat-empty {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel); text-align: center; padding: 0 10px;
}
.antuartem-portfolio-wrap .pf-cat-label {
  padding: 14px 16px; font-family: var(--f-body); font-weight: 600; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.antuartem-portfolio-wrap .pf-cat-count {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--steel); font-weight: 400;
}

/* --- Сетка работ внутри категории --- */
.antuartem-portfolio-wrap .pf-work-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.antuartem-portfolio-wrap .pf-work-item {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px;
  cursor: pointer; background: var(--paper-2);
}
.antuartem-portfolio-wrap .pf-work-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s;
}
.antuartem-portfolio-wrap .pf-work-item:hover img { transform: scale(1.05); }
.antuartem-portfolio-wrap .pf-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(23,24,27,0.65);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px;
  pointer-events: none;
}
.antuartem-portfolio-wrap .pf-empty {
  font-size: 15px; color: var(--steel-dark); padding: 40px 0;
}
.antuartem-portfolio-wrap .pf-empty a { color: var(--orange); }

/* --- Лайтбокс --- */
.antuartem-portfolio-wrap .pf-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(10,10,11,0.92); z-index: 999;
  align-items: center; justify-content: center; padding: 40px 20px;
}
.antuartem-portfolio-wrap .pf-lightbox.pf-open { display: flex; }
.antuartem-portfolio-wrap .pf-lightbox-content {
  max-width: 1000px; max-height: 85vh; width: 100%;
}
.antuartem-portfolio-wrap .pf-lightbox-content img {
  max-width: 100%; max-height: 85vh; display: block; margin: 0 auto; border-radius: 4px;
}
.antuartem-portfolio-wrap .pf-lightbox-content iframe {
  width: 100%; aspect-ratio: 16/9; border: none; border-radius: 4px;
}
.antuartem-portfolio-wrap .pf-lightbox-close {
  position: absolute; top: 20px; right: 28px; color: #fff; font-size: 26px;
  cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .antuartem-portfolio-wrap .pf-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .antuartem-portfolio-wrap .pf-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .antuartem-portfolio-wrap .pf-cat-grid { grid-template-columns: 1fr 1fr; }
}
