/* ==================================
   PORTFOLIO PAGE GENERAL
   ================================== */
.portfolio-page {
    /* Lenis needs html/body to have height auto and smooth scrolling on */
    background: var(--bg-primary);
    color: var(--text-primary);
}

.portfolio-page.loading-state > *:not(#spa-transition-clone) {
    opacity: 0 !important;
    visibility: hidden !important;
}

.portfolio-page > *:not(#spa-transition-clone) {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.portfolio-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* ==================================
   ADVANCED FILTER TABS
   ================================== */
.advanced-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.adv-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-subtle);
    padding: 10px 24px;
    border-radius: 50px;
    /* pill shape */
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .adv-filter-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.adv-filter-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .adv-filter-btn:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.adv-filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Ensure padding on bottom for standard gallery */
.portfolio-gallery-section {
    padding-bottom: 100px;
}

/* Compact Professional Buttons for Desktop */
.card-btn {
    padding: 6px 12px !important;
    font-size: 0.65rem !important;
    height: auto;
    width: auto;
}

/* Force 2-column on mobile for user request */
@media (max-width: 768px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 0 16px;
    }

    .card-name {
        font-size: 0.9rem;
    }

    .card-actions {
        flex-direction: column;
        gap: 4px;
    }

    .card-btn {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }

    .card-btn.instagram-btn {
        padding: 2px 6px !important;
        font-size: 0.5rem !important;
    }
}