/* ── Gallery / Portfolio page (scoped .gp) ── */
.gp *, .gp *::before, .gp *::after { box-sizing: border-box; }
.gp { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.gp h1,.gp h2,.gp h3,.gp h4 { line-height: 1.2; font-weight: 700; margin: 0; }
.gp p { line-height: 1.75; margin: 0; }
.gp a { text-decoration: none; }
.gp ul { list-style: none; margin: 0; padding: 0; }

.gp {
    --pink: #ff497c; --pink-dark: #e0345f; --pink-light: #fff0f4;
    --dark: #0f0f1a; --dark2: #1c1c30;
    --text: #2d2d3a; --muted: #6b7280; --border: #e5e7eb;
    --bg: #f9fafb; --white: #ffffff; --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.07);
    --shadow-hover: 0 16px 48px rgba(255,73,124,.13);
}

.gp .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gp .tag { display: inline-block; background: var(--pink-light); color: var(--pink); font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 40px; letter-spacing: .4px; margin-bottom: 16px; }

/* ── PAGE HERO ── */
.gp .page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1e0a30 100%);
    padding: 80px 0 72px; position: relative; overflow: hidden; text-align: center;
}
.gp .page-hero::before {
    content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,73,124,.12) 0%, transparent 70%);
    pointer-events: none;
}
.gp .breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 20px; }
.gp .breadcrumb a    { font-size: 13px; color: var(--dark2); transition: color .2s; }
.gp .breadcrumb a:hover { color: var(--pink); }
.gp .breadcrumb span { font-size: 13px; color: var(--pink); }
.gp .page-hero h1 { font-size: clamp(32px,4.5vw,52px); color: #fff; font-weight: 800; margin-bottom: 16px; }
.gp .page-hero h1 em { font-style: normal; color: var(--pink); }
.gp .page-hero .hero-lead { font-size: 17px; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 560px; margin: 0 auto 36px; }
.gp .hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.gp .hero-stat { text-align: center; }
.gp .hero-stat strong { display: block; font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.gp .hero-stat strong span { color: var(--pink); }
.gp .hero-stat small { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── FILTER TABS ── */
.gp .filter-bar {
    background: var(--white); border-bottom: 1px solid var(--border);
    position: sticky; top: 68px; z-index: 100;
}
.gp .filter-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.gp .filter-inner::-webkit-scrollbar { display: none; }
.gp .filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 15px 18px; font-size: 14px; font-weight: 500; color: var(--muted);
    border: none; background: none; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
    margin-bottom: -1px;
    outline: none;
}
.gp .filter-btn:hover { color: var(--pink); }
.gp .filter-btn.active { color: var(--pink); border-bottom-color: var(--pink); font-weight: 600; }
.gp .filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--pink-light); color: var(--pink);
    font-size: 11px; font-weight: 700;
}
.gp .filter-btn.active .filter-count { background: var(--pink); color: #fff; }

/* ── PORTFOLIO GRID ── */
.gp .portfolio-section { padding: 80px 0; background: var(--bg); }
.gp .grid-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 12px; }
.gp .grid-meta p { font-size: 14px; color: var(--muted); }
.gp .grid-meta strong { color: var(--dark); }

.gp .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gp .port-item {
    border-radius: var(--radius); overflow: hidden;
    position: relative; background: var(--dark);
    aspect-ratio: 4/3;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}
.gp .port-item:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.gp .port-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gp .port-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s, filter .3s;
    display: block;
}
.gp .port-item:hover img { transform: scale(1.06); filter: brightness(.8); }
.gp .port-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,15,26,.9) 0%, rgba(15,15,26,.3) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; opacity: 0; transition: opacity .3s;
}
.gp .port-item:hover .port-overlay { opacity: 1; }
.gp .port-cat {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; color: var(--pink); margin-bottom: 6px;
}
.gp .port-overlay h3 { font-size: 16px; color: #fff; font-weight: 600; }
.gp .port-overlay .port-arrow {
    position: absolute; top: 20px; right: 20px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pink); display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff; transform: translateY(-8px); transition: transform .3s;
}
.gp .port-item:hover .port-overlay .port-arrow { transform: translateY(0); }

/* Hidden items */
.gp .port-item.hidden { display: none; }

/* Empty state */
.gp .grid-empty {
    grid-column: 1 / -1; text-align: center; padding: 80px 0;
    display: none;
}
.gp .grid-empty.show { display: block; }
.gp .grid-empty p { font-size: 16px; color: var(--muted); }

/* ── CTA BANNER ── */
.gp .cta-banner {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    padding: 80px 24px; text-align: center;
}
.gp .cta-banner h2 { font-size: clamp(26px,4vw,40px); color: #fff; margin-bottom: 12px; }
.gp .cta-banner p  { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.gp .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gp .btn-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--pink); font-weight: 700; font-size: 15px;
    padding: 13px 28px; border-radius: 8px; transition: transform .15s, box-shadow .2s;
}
.gp .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); color: var(--pink); }
.gp .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff; font-weight: 600; font-size: 15px;
    padding: 12px 28px; border-radius: 8px; border: 2px solid rgba(255,255,255,.5);
    transition: border-color .2s, background .2s;
}
.gp .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gp .portfolio-grid { grid-template-columns: repeat(2,1fr); }
    .gp .port-item.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
    .gp .portfolio-grid { grid-template-columns: 1fr; }
    .gp .port-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
    .gp .port-overlay { opacity: 1; }
    .gp .port-overlay .port-arrow { transform: translateY(0); }
    .gp .portfolio-section { padding: 64px 0; }
    .gp .hero-stats { gap: 20px; }
}
