/* ===================================
   Project Showcase - Gallery Slider
   =================================== */

.ps-project-showcase {
    max-width: 800px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Hero Image --- */
.ps-gallery-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #1a1a1a;
    cursor: pointer;
}

.ps-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.ps-hero-img.ps-fading {
    opacity: 0;
}

/* Hero Navigation Arrows */
.ps-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 5;
    padding: 0;
    opacity: 1;
}

.ps-gallery-hero:hover .ps-hero-nav {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.ps-hero-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.ps-hero-nav svg {
    width: 22px;
    height: 22px;
}

.ps-hero-prev {
    left: 12px;
}

.ps-hero-next {
    right: 12px;
}

/* --- Thumbnails Strip --- */
.ps-gallery-thumbs {
    overflow: hidden;
    padding: 8px 0;
    background: #f5f5f5;
    border-radius: 0 0 8px 8px;
}

.ps-thumbs-track {
    display: flex;
    gap: 8px;
    padding: 0 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ps-thumb-item {
    flex: 0 0 calc(25% - 6px);
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.ps-thumb-item:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ps-thumb-item.active {
    border-color: #fcc02c;
    box-shadow: 0 0 0 1px #fcc02c;
}

.ps-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ps-project-showcase {
        margin: 0 10px 20px;
    }

    .ps-gallery-hero {
        aspect-ratio: 4 / 3;
        border-radius: 6px 6px 0 0;
    }

    .ps-hero-nav {
        width: 36px;
        height: 36px;
        opacity: 1;
    }

    .ps-hero-nav svg {
        width: 18px;
        height: 18px;
    }

    .ps-thumb-item {
        flex: 0 0 calc(25% - 6px);
    }

    .ps-gallery-thumbs {
        border-radius: 0 0 6px 6px;
    }
}

@media (max-width: 480px) {
    .ps-thumb-item {
        flex: 0 0 calc(33.333% - 6px);
    }
}
