/* =================================================================
   WeboTech Studio - Portfolio v2.0
   Multi-type portfolio: websites, images, galleries
   ================================================================= */

/* =================================================================
   FILTER BAR
   ================================================================= */
.wts-pf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    position: relative;
}

.wts-pf-filter-group {
    position: relative;
}

.wts-pf-filter {
    background: rgba(45, 125, 210, 0.08);
    border: 1px solid rgba(45, 125, 210, 0.15);
    color: #94a3b8;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.wts-pf-filter:hover {
    background: rgba(45, 125, 210, 0.15);
    color: #e2e8f0;
    border-color: rgba(45, 125, 210, 0.3);
}

.wts-pf-filter.active {
    background: linear-gradient(135deg, #2D7DD2, #00d4ff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(45, 125, 210, 0.3);
}

.wts-pf-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.wts-pf-filter-group.open .wts-pf-arrow {
    transform: rotate(180deg);
}

/* Sub-filter dropdown */
.wts-pf-sub-filters {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    border: 1px solid rgba(45, 125, 210, 0.2);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    animation: wts-pf-dropdown 0.2s ease;
}

.wts-pf-filter-group.open .wts-pf-sub-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@keyframes wts-pf-dropdown {
    from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.wts-pf-sub-filter {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.wts-pf-sub-filter:hover {
    background: rgba(45, 125, 210, 0.15);
    color: #e2e8f0;
}

.wts-pf-sub-filter.active {
    background: rgba(45, 125, 210, 0.2);
    color: #00d4ff;
}

/* =================================================================
   PORTFOLIO GRID
   ================================================================= */
.wts-pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: min-height 0.3s;
}

.wts-pf-grid-full {
    gap: 28px;
}

/* =================================================================
   PORTFOLIO CARD - Universal
   ================================================================= */
.wts-pf-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Equal height cards in grid */
.wts-pf-grid .wts-pf-card,
.wts-pf-grid-full .wts-pf-card {
    height: 100%;
}
.wts-pf-grid .wts-pf-card-inner,
.wts-pf-grid-full .wts-pf-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.wts-pf-grid .wts-pf-info,
.wts-pf-grid-full .wts-pf-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wts-pf-grid .wts-pf-card-bottom,
.wts-pf-grid-full .wts-pf-card-bottom {
    margin-top: auto;
}

.wts-pf-card.hiding {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.wts-pf-card-inner {
    border-radius: 16px;
    overflow: hidden;
    background: #12122a;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wts-pf-card-inner:hover {
    border-color: rgba(45, 125, 210, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(45, 125, 210, 0.08);
    transform: translateY(-6px);
}

/* =================================================================
   THUMBNAIL AREA
   ================================================================= */
.wts-pf-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #0d0d1a;
}

/* All types now use <img> for crisp rendering */
.wts-pf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Website type: taller aspect for screenshots, NO cover crop */
.wts-pf-type-website .wts-pf-thumb {
    aspect-ratio: 16 / 10;
}
.wts-pf-type-website .wts-pf-thumb img {
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.05) saturate(1.05);
}

/* Image & gallery type */
.wts-pf-type-image .wts-pf-thumb,
.wts-pf-type-gallery .wts-pf-thumb {
    background: linear-gradient(135deg, #0d0d1a 0%, #151530 100%);
}

/* Hover: subtle zoom, NO blur */
.wts-pf-card-inner:hover .wts-pf-thumb img {
    transform: scale(1.04);
}

/* Gallery badge */
.wts-pf-gallery-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
}

/* =================================================================
   OVERLAY — Subtle bottom gradient with action buttons at bottom
   No dark overlay, no blur — image stays clear
   ================================================================= */
.wts-pf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 30, 0.85) 0%, rgba(10, 10, 30, 0.3) 40%, transparent 70%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.wts-pf-card-inner:hover .wts-pf-overlay {
    opacity: 1;
}

.wts-pf-overlay-content {
    display: flex;
    gap: 10px;
}

.wts-pf-zoom,
.wts-pf-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
    text-decoration: none;
}

.wts-pf-card-inner:hover .wts-pf-zoom,
.wts-pf-card-inner:hover .wts-pf-link {
    transform: translateY(0);
    opacity: 1;
}

.wts-pf-card-inner:hover .wts-pf-link {
    transition-delay: 0.06s;
}

.wts-pf-zoom {
    background: linear-gradient(135deg, #2D7DD2, #00d4ff);
}

.wts-pf-link {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

.wts-pf-zoom:hover {
    background: linear-gradient(135deg, #00d4ff, #2D7DD2);
    box-shadow: 0 8px 25px rgba(45, 125, 210, 0.4);
    color: #fff;
    transform: scale(1.1);
}

.wts-pf-link:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: scale(1.1);
}

/* =================================================================
   INFO SECTION (Below Thumbnail)
   ================================================================= */
.wts-pf-info {
    padding: 18px 20px;
}

.wts-pf-title {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wts-pf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #64748b;
}

.wts-pf-cat {
    color: #00d4ff;
    font-weight: 500;
}

.wts-pf-tools::before {
    content: '•';
    margin-right: 4px;
    color: #334155;
}

/* =================================================================
   TEAM MEMBER BADGES ON CARDS
   ================================================================= */
.wts-pf-team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.wts-pf-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 3px;
    background: rgba(45, 125, 210, 0.08);
    border: 1px solid rgba(45, 125, 210, 0.15);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wts-pf-team-badge:hover {
    background: rgba(45, 125, 210, 0.18);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.wts-pf-team-badge img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wts-pf-badge-initial {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(45, 125, 210, 0.25);
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.wts-pf-badge-name {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    line-height: 1;
}

.wts-pf-team-badge:hover .wts-pf-badge-name {
    color: #00d4ff;
}

/* Card bottom: team badges + country flag */
.wts-pf-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 8px;
}
.wts-pf-card-bottom:empty { display: none; }

/* Country flag */
.wts-pf-country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 3px 10px 3px 6px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
.wts-pf-country-flag {
    font-size: 15px;
    line-height: 1;
}
.wts-pf-country-name {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* =================================================================
   EMPTY STATE
   ================================================================= */
.wts-pf-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    font-size: 16px;
    color: #64748b;
}

/* =================================================================
   LOAD MORE
   ================================================================= */
.wts-pf-load-more-wrap {
    text-align: center;
    margin-top: 50px;
}

.wts-pf-load-more {
    background: rgba(45, 125, 210, 0.1);
    border: 1px solid rgba(45, 125, 210, 0.25);
    color: #e2e8f0;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.wts-pf-load-more:hover {
    background: linear-gradient(135deg, #2D7DD2, #00d4ff);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(45, 125, 210, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.wts-pf-load-more.loading {
    pointer-events: none;
    opacity: 0.6;
}

.wts-pf-load-more.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wts-pf-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes wts-pf-spin {
    to { transform: rotate(360deg); }
}

/* =================================================================
   LIGHTBOX
   ================================================================= */
.wts-pf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.wts-pf-lightbox.open {
    display: flex;
}

.wts-pf-lb-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
    line-height: 1;
}

.wts-pf-lb-close:hover {
    transform: scale(1.2);
}

.wts-pf-lb-prev,
.wts-pf-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.wts-pf-lb-prev { left: 20px; }
.wts-pf-lb-next { right: 20px; }

.wts-pf-lb-prev:hover,
.wts-pf-lb-next:hover {
    background: rgba(45, 125, 210, 0.4);
    border-color: rgba(45, 125, 210, 0.5);
}

.wts-pf-lb-prev.hidden,
.wts-pf-lb-next.hidden {
    display: none;
}

.wts-pf-lb-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wts-pf-lb-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.wts-pf-lb-content img.loaded {
    opacity: 1;
}

.wts-pf-lb-caption {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
}

.wts-pf-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 13px;
}

/* =================================================================
   LOADING OVERLAY
   ================================================================= */
.wts-pf-grid.is-loading {
    position: relative;
    min-height: 300px;
    opacity: 0.4;
    pointer-events: none;
}

/* =================================================================
/* =================================================================
/* =================================================================
   HOMEPAGE SHOWCASE
   - Arrows on outer edges of entire section
   - Left: 2 static + slider (square design cards)
   - Right: website cards with controlled height (not full screenshot)
   ================================================================= */

/* ── Wrapper: holds arrows on outer edges ── */
.wts-pf-showcase-wrap {
    position: relative;
    padding: 0 52px; /* space for outer arrows */
}

/* ── Outer navigation arrows — positioned on far edges ── */
.wts-pf-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(13, 13, 26, 0.85);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
    z-index: 5;
    padding: 0;
    backdrop-filter: blur(8px);
}
.wts-pf-nav-arrow:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}
/* Left column arrows: stacked vertically on far-left */
.wts-pf-nav-arrow-left.wts-pf-nav-prev { left: 0; top: calc(50% - 24px); }
.wts-pf-nav-arrow-left.wts-pf-nav-next { left: 0; top: calc(50% + 24px); }
/* Right column arrows: stacked vertically on far-right */
.wts-pf-nav-arrow-right.wts-pf-nav-prev { right: 0; top: calc(50% - 24px); }
.wts-pf-nav-arrow-right.wts-pf-nav-next { right: 0; top: calc(50% + 24px); }

/* ── Showcase grid ── */
.wts-pf-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.wts-pf-mobile { display: none; }

/* ── Column header: label + tabs ── */
.wts-pf-col-header {
    margin-bottom: 14px;
}
.wts-pf-col-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    margin-bottom: 10px;
}
.wts-pf-col-label i { color: #00d4ff; font-size: 14px; }

/* Filter tabs */
.wts-pf-col-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.wts-pf-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-transform: capitalize;
}
.wts-pf-tab:hover {
    border-color: rgba(0,212,255,0.2);
    color: #c8d6e5;
}
.wts-pf-tab.active {
    background: linear-gradient(135deg, rgba(45,125,210,0.15), rgba(0,212,255,0.1));
    border-color: rgba(0,212,255,0.3);
    color: #00d4ff;
}

/* ── Left column: design work ── */
.wts-pf-col { min-width: 0; }

.wts-pf-row-static {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* ── Horizontal slider (no arrows inside — arrows are outer) ── */
.wts-pf-hslider {
    overflow: hidden;
}
.wts-pf-hslider-track {
    display: flex;
    gap: 14px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.wts-pf-hslider-track .wts-pf-card {
    flex: 0 0 calc(50% - 7px);
    min-width: 0;
}

/* ── Left: square design card thumbs ── */
.wts-pf-row-static .wts-pf-thumb,
.wts-pf-col-left .wts-pf-hslider-track .wts-pf-thumb {
    aspect-ratio: 1;
}
.wts-pf-row-static .wts-pf-type-website .wts-pf-thumb,
.wts-pf-col-left .wts-pf-hslider-track .wts-pf-type-website .wts-pf-thumb {
    aspect-ratio: 1;
}

/* ── Right column: website cards with CONTROLLED height ──
   Default: match left column height naturally via aspect-ratio
   Admin can override with --web-height CSS variable */
.wts-pf-col-right .wts-pf-hslider-track .wts-pf-thumb {
    aspect-ratio: 3 / 4;  /* portrait — crops screenshot nicely */
    overflow: hidden;
}
.wts-pf-col-right .wts-pf-hslider-track .wts-pf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;  /* show top of screenshot, not middle */
}
.wts-pf-col-right .wts-pf-hslider-track .wts-pf-type-website .wts-pf-thumb {
    aspect-ratio: 3 / 4;
}

/* Admin height override via CSS variable */
.wts-pf-right-content[style*="--web-height"] .wts-pf-hslider-track .wts-pf-thumb,
.wts-pf-right-content[style*="--web-height"] .wts-pf-hslider-track .wts-pf-type-website .wts-pf-thumb {
    aspect-ratio: unset;
    height: var(--web-height);
}

/* ── Compact card info in showcase ── */
.wts-pf-row-static .wts-pf-info,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-info {
    padding: 10px 12px;
}
.wts-pf-row-static .wts-pf-title,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-title {
    font-size: 13px;
}
.wts-pf-row-static .wts-pf-meta,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-meta {
    font-size: 11px;
}
.wts-pf-row-static .wts-pf-card-bottom,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-card-bottom {
    margin-top: 6px;
}
.wts-pf-row-static .wts-pf-team-badge,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-team-badge {
    padding: 2px 6px 2px 2px;
}
.wts-pf-row-static .wts-pf-team-badge img,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-team-badge img {
    width: 18px; height: 18px;
}
.wts-pf-row-static .wts-pf-badge-name,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-badge-name {
    font-size: 10px;
}
.wts-pf-row-static .wts-pf-country,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-country {
    font-size: 10px; padding: 2px 7px 2px 5px;
}
.wts-pf-row-static .wts-pf-country-flag,
.wts-pf-showcase .wts-pf-hslider-track .wts-pf-country-flag {
    font-size: 13px;
}

/* CTA */
.wts-pf-cta {
    text-align: center;
    margin-top: 44px;
}

/* Featured badge */
.wts-pf-card[data-featured="1"] .wts-pf-card-inner {
    border-color: rgba(245, 158, 11, 0.2);
}
.wts-pf-info { position: relative; }

/* ── MOBILE ── */
.wts-pf-mobile-pinned {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wts-pf-mobile-pinned .wts-pf-card { width: 100%; }
.wts-pf-mobile-pinned .wts-pf-thumb { aspect-ratio: 16 / 10; }
.wts-pf-mobile-pinned .wts-pf-type-website .wts-pf-thumb { aspect-ratio: 16 / 10; }
.wts-pf-mobile-pinned .wts-pf-type-image .wts-pf-thumb,
.wts-pf-mobile-pinned .wts-pf-type-gallery .wts-pf-thumb { aspect-ratio: 16 / 10; }

.wts-pf-mobile-slider-wrap {
    margin-top: 16px;
    overflow: hidden;
    position: relative;
}
.wts-pf-mobile-slider-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(to left, #0a0a0a, transparent);
    z-index: 2;
    pointer-events: none;
}
.wts-pf-mobile-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.wts-pf-mobile-slider::-webkit-scrollbar { display: none; }
.wts-pf-mobile-track {
    display: flex;
    gap: 14px;
    padding-bottom: 4px;
}
.wts-pf-mobile-track .wts-pf-card {
    flex-shrink: 0;
    width: 82vw;
    max-width: 340px;
    scroll-snap-align: start;
}
.wts-pf-mobile-track .wts-pf-thumb { aspect-ratio: 16 / 10; }
.wts-pf-mobile-track .wts-pf-type-website .wts-pf-thumb { aspect-ratio: 16 / 10; }

   UNIFORM CARD SIZES — Portfolio & Archive pages
   ================================================================= */
.wts-pf-grid .wts-pf-thumb,
.wts-pf-grid-full .wts-pf-thumb {
    aspect-ratio: 4 / 3;
}
.wts-pf-grid .wts-pf-type-website .wts-pf-thumb,
.wts-pf-grid-full .wts-pf-type-website .wts-pf-thumb {
    aspect-ratio: 4 / 3;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
    .wts-pf-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .wts-pf-title { font-size: 15px; }
    .wts-portfolio-archive-wrap .wts-container { padding: 0 20px; }
    .wts-pf-showcase-wrap { padding: 0 44px; }
    .wts-pf-showcase { gap: 18px; }
    .wts-pf-hslider-track { gap: 10px; }
    .wts-pf-hslider-track .wts-pf-card { flex: 0 0 calc(50% - 5px); }
    .wts-pf-col-tabs { gap: 3px; }
    .wts-pf-tab { font-size: 10px; padding: 3px 10px; }
    .wts-pf-nav-arrow { width: 32px; height: 32px; font-size: 11px; }
}

@media (max-width: 767px) {
    /* Switch: hide desktop showcase, show mobile */
    .wts-pf-showcase-wrap { display: none !important; }
    .wts-pf-mobile { display: block !important; }
    
    .wts-pf-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .wts-pf-filters { gap: 6px; margin-bottom: 24px; }
    .wts-pf-filter { padding: 8px 14px; font-size: 12px; }
    .wts-pf-sub-filters {
        position: fixed; top: auto; bottom: 0; left: 0; right: 0;
        transform: none; border-radius: 16px 16px 0 0;
        padding: 15px; max-height: 50vh; overflow-y: auto;
    }
    .wts-pf-info { padding: 12px 14px; }
    .wts-pf-title { font-size: 13px; }
    .wts-pf-meta { font-size: 11px; }
    .wts-pf-zoom, .wts-pf-link { width: 40px; height: 40px; font-size: 15px; }
    .wts-pf-lb-prev, .wts-pf-lb-next { width: 36px; height: 36px; font-size: 13px; }
    .wts-pf-lb-prev { left: 8px; }
    .wts-pf-lb-next { right: 8px; }
    .wts-pf-lb-close { font-size: 28px; top: 12px; right: 12px; }
    .wts-pf-lb-caption { font-size: 13px; padding: 10px 16px; }
    .wts-pf-lb-counter { font-size: 12px; }
    .wts-pf-team-badges { gap: 4px; margin-top: 6px; }
    .wts-pf-team-badge { padding: 3px 8px 3px 3px; font-size: 0; }
    .wts-pf-team-badge img { width: 18px; height: 18px; }
    .wts-pf-badge-initial { width: 18px; height: 18px; font-size: 9px; }
    .wts-pf-badge-name { font-size: 10px; }
    .wts-pf-country { font-size: 10px; padding: 2px 7px 2px 4px; }
    .wts-pf-country-flag { font-size: 13px; }
    .wts-pf-load-more { padding: 10px 28px; font-size: 13px; }
    .wts-portfolio-archive-wrap .wts-container { padding: 0 16px; }
    .wts-portfolio-archive-wrap .wts-section-header { margin-bottom: 24px; }
    .wts-portfolio-full .wts-section-header { margin-bottom: 24px; }
    .wts-pf-cta { margin-top: 32px; }
    .wts-pf-cta .wts-btn { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
    .wts-pf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wts-pf-grid .wts-pf-thumb,
    .wts-pf-grid .wts-pf-type-website .wts-pf-thumb { aspect-ratio: 1; }
    .wts-pf-info { padding: 8px 10px; }
    .wts-pf-title { font-size: 12px; }
    .wts-pf-meta { font-size: 10px; }
    .wts-pf-filter { padding: 6px 12px; font-size: 11px; }
    .wts-pf-filters { gap: 5px; margin-bottom: 20px; }
    .wts-pf-team-badge { display: none; }
    .wts-pf-country-name { display: none; }
    .wts-pf-zoom, .wts-pf-link { width: 36px; height: 36px; font-size: 14px; }
    .wts-pf-load-more { padding: 9px 24px; font-size: 12px; }
    .wts-portfolio-archive-wrap .wts-container { padding: 0 14px; }
}

@media (max-width: 360px) {
    .wts-pf-grid { gap: 8px; }
    .wts-pf-info { padding: 6px 8px; }
    .wts-pf-title { font-size: 11px; }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
.wts-pf-filter:focus-visible,
.wts-pf-zoom:focus-visible,
.wts-pf-link:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .wts-pf-card, .wts-pf-card-inner, .wts-pf-overlay, 
    .wts-pf-zoom, .wts-pf-link, .wts-pf-thumb img {
        transition: none !important;
    }
}

/* =================================================================
   RTL
   ================================================================= */
[dir="rtl"] .wts-pf-tools::before { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .wts-pf-gallery-badge { right: auto; left: 12px; }

/* =================================================================
   PORTFOLIO ARCHIVE — Theme Override (Astra/Elementor/Genesis)
   Forces full-width, no sidebar on /portfolio/ archive page
   ================================================================= */
.post-type-archive-portfolio .ast-container,
.post-type-archive-portfolio #primary,
.post-type-archive-portfolio .content-area,
.post-type-archive-portfolio #main,
.post-type-archive-portfolio .site-main,
.post-type-archive-portfolio .site-content,
.post-type-archive-portfolio .site-content > .ast-container,
.post-type-archive-portfolio .entry-content,
.post-type-archive-portfolio .ast-article-post,
.post-type-archive-portfolio .ast-separate-container .ast-article-single,
.post-type-archive-portfolio .ast-right-sidebar .content-area,
.tax-portfolio_category .ast-container,
.tax-portfolio_category #primary,
.tax-portfolio_category .content-area,
.tax-portfolio_category .site-main {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}
.post-type-archive-portfolio #secondary,
.post-type-archive-portfolio .widget-area,
.post-type-archive-portfolio .ast-right-sidebar #secondary,
.tax-portfolio_category #secondary,
.tax-portfolio_category .widget-area {
    display: none !important;
    width: 0 !important;
}
.post-type-archive-portfolio .ast-archive-description,
.post-type-archive-portfolio .page-header,
.post-type-archive-portfolio .entry-header,
.post-type-archive-portfolio .ast-archive-entry-header {
    display: none !important;
}

/* Portfolio full page — section header centered */
.wts-portfolio-full .wts-section-header,
.wts-portfolio-archive-wrap .wts-section-header {
    text-align: center;
    margin-bottom: 36px;
}

/* Portfolio archive wrap — ensure no theme interference */
.wts-portfolio-archive-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.wts-portfolio-archive-wrap .wts-page-hero {
    text-align: center;
}
.wts-portfolio-archive-wrap .wts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
