/* =========================================
   PROFESSIONAL PROJECT SCREENSHOT VIEWER
========================================= */

.project-showcase {
    margin-top: 70px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.showcase-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #caa45d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.showcase-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.screen-counter {
    flex-shrink: 0;
    padding: 9px 14px;
    border: 1px solid rgba(202, 164, 93, 0.45);
    border-radius: 999px;
    color: #caa45d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.showcase-main {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.7fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: #101010;
}

.showcase-image-button {
    position: relative;
    display: block;
    min-height: 420px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #181818;
    cursor: zoom-in;
}

    .showcase-image-button img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .showcase-image-button:hover img {
        transform: scale(1.025);
    }

.expand-image {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 13px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.showcase-image-button:hover .expand-image {
    opacity: 1;
    transform: translateY(0);
}

.showcase-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 42px 34px;
    background: linear-gradient(145deg, #1c1c1c, #101010);
}

    .showcase-details > span {
        margin-bottom: 14px;
        color: #caa45d;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.12em;
    }

    .showcase-details h4 {
        margin: 0 0 16px;
        color: #ffffff;
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .showcase-details p {
        margin: 0;
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.92rem;
        line-height: 1.75;
    }

.showcase-navigation {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 35px;
}

    .showcase-navigation button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 46px;
        height: 43px;
        padding: 0 15px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 7px;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
        transition: 0.25s ease;
    }

        .showcase-navigation button:hover {
            border-color: #caa45d;
            background: #caa45d;
            color: #101010;
        }

.screenshot-thumbnails {
    display: flex;
    gap: 11px;
    margin-top: 18px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #caa45d transparent;
}

    .screenshot-thumbnails::-webkit-scrollbar {
        height: 5px;
    }

    .screenshot-thumbnails::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #caa45d;
    }

.thumbnail-button {
    position: relative;
    flex: 0 0 100px;
    height: 70px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #181818;
    cursor: pointer;
    opacity: 0.55;
    transition: 0.25s ease;
}

    .thumbnail-button img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumbnail-button span {
        position: absolute;
        top: 5px;
        left: 5px;
        display: grid;
        width: 20px;
        height: 20px;
        place-items: center;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.75);
        color: #ffffff;
        font-size: 0.6rem;
        font-weight: 700;
    }

    .thumbnail-button:hover,
    .thumbnail-button.active {
        border-color: #caa45d;
        opacity: 1;
    }

.project-lightbox {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 85px;
    background: rgba(0, 0, 0, 0.94);
}

    .project-lightbox.is-open {
        display: flex;
    }

.lightbox-content {
    max-width: min(1200px, 100%);
    max-height: 100%;
    text-align: center;
}

    .lightbox-content img {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 150px);
        margin: auto;
        border-radius: 8px;
        object-fit: contain;
    }

.lightbox-caption {
    margin-top: 16px;
    color: #ffffff;
}

    .lightbox-caption span {
        color: #caa45d;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.1em;
    }

    .lightbox-caption h4 {
        margin: 7px 0 0;
        font-size: 1rem;
    }

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: 0.25s ease;
}

    .lightbox-close:hover,
    .lightbox-arrow:hover {
        border-color: #caa45d;
        background: #caa45d;
        color: #101010;
    }

.lightbox-close {
    top: 24px;
    right: 28px;
    width: 45px;
    height: 45px;
    font-size: 1.15rem;
}

.lightbox-arrow {
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
}

.lightbox-previous {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 850px) {
    .project-showcase {
        padding: 20px;
    }

    .showcase-main {
        grid-template-columns: 1fr;
    }

    .showcase-image-button {
        min-height: 280px;
    }

    .showcase-details {
        padding: 28px 24px;
    }

    .showcase-navigation {
        margin-top: 8px;
        padding-top: 22px;
    }

    .expand-image {
        opacity: 1;
        transform: none;
    }

    .project-lightbox {
        padding: 65px 15px 30px;
    }

    .lightbox-arrow {
        top: auto;
        bottom: 23px;
        transform: none;
    }

    .lightbox-previous {
        left: calc(50% - 62px);
    }

    .lightbox-next {
        right: calc(50% - 62px);
    }
}

@media (max-width: 500px) {
    .showcase-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .thumbnail-button {
        flex-basis: 85px;
        height: 60px;
    }

    .showcase-image-button {
        min-height: 220px;
    }
}
