.worksolution-finish-tabs {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 24px 0 8px;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.worksolution-finish-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 34px;
    margin-bottom: 34px;
}

.worksolution-finish-tabs__nav-button {
    border: none;
    background: transparent;
    color: #a8a8a8;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.2s ease;
}

.worksolution-finish-tabs__nav-button:hover,
.worksolution-finish-tabs__nav-button:focus-visible {
    color: #5b5b5b;
    outline: none;
}

.worksolution-finish-tabs__nav-button.is-active {
    color: #2f2f2f;
    font-weight: 600;
}

.worksolution-finish-tabs__panel {
    display: none;
}

.worksolution-finish-tabs__panel.is-active {
    display: block;
}

.worksolution-finish-tabs__grid {
    display: grid;
    grid-template-columns: repeat(6, 80px);
    justify-content: center;
    gap: 12px;
    padding: 0 18px 18px;
    min-height: 70px;
}

.worksolution-finish-tabs__item {
    margin: 0;
    cursor: zoom-in;
}

.worksolution-finish-tabs__thumb {
    width: 80px;
    height: 80px;
    display: block;
    border: 1px solid #ddd7d1;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.worksolution-finish-tabs__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.worksolution-finish-tabs-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.worksolution-finish-tabs-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.worksolution-finish-tabs-modal__content {
    position: relative;
    z-index: 2;
    width: min(88vw, 980px);
    max-height: 86vh;
    padding: 20px;
    background: #111;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.worksolution-finish-tabs-modal__slides {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    gap: 16px;
}

.worksolution-finish-tabs-modal__slides img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.worksolution-finish-tabs-modal__caption {
    width: 100%;
    color: #fff;
    text-align: center;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}

.worksolution-finish-tabs-modal__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.worksolution-finish-tabs-modal__nav button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.worksolution-finish-tabs-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .worksolution-finish-tabs {
        padding-top: 16px;
    }

    .worksolution-finish-tabs__nav {
        gap: 14px 20px;
        margin-bottom: 24px;
    }

    .worksolution-finish-tabs__nav-button {
        font-size: 0.95rem;
    }

    .worksolution-finish-tabs__grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 80px));
        gap: 10px;
        padding: 0 0 16px;
    }

    .worksolution-finish-tabs__thumb {
        width: 80px;
        height: 80px;
    }
}
