/* Portfolio page-head specifics */
.page-head { padding: 56px 0 46px; }
.page-head .lead { font-size: 18px; color: var(--ink-2); max-width: 680px; line-height: 1.6; }
.ph-stats { display: flex; gap: 44px; margin-top: 30px; flex-wrap: wrap; }
.ph-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.ph-stats .stat b { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; color: var(--blue-600); letter-spacing: -.02em; }
.ph-stats .stat span { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* Gallery */
.gallery-wrap { padding: 38px 0 96px; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1.5px solid var(--line); padding: 10px 18px; border-radius: var(--r-pill); cursor: pointer; transition: .15s; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue-600); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.g-count { font-size: 14.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.g-count b { color: var(--ink); }

.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1320px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .masonry { grid-template-columns: 1fr; } }

.show-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; text-decoration: none; color: inherit; }
.show-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }

.show-card .shot { position: relative; aspect-ratio: 1/1; background: var(--bg-2); overflow: hidden; }
.show-card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .18s ease; will-change: transform; }
.show-card .shot .ph { position: absolute; inset: 0; }

.cat-badge { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); }

.card-cap { padding: 15px 17px 18px; border-top: 1px solid var(--line-2); }
.card-cap h3 { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.cap-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cap-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); flex: none; }
.view-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--blue-600); opacity: .85; transition: gap .18s ease, opacity .18s ease; }
.view-hint svg { width: 15px; height: 15px; }
.show-card:hover .view-hint { gap: 10px; opacity: 1; }

.g-empty { text-align: center; color: var(--muted); font-size: 15px; padding: 60px 20px; display: none; }
.g-empty.show { display: block; }

@media (max-width: 720px) { .ph-stats { gap: 28px; } }
