/* ==========================================================================
   Thumbnail Carousel & Lightbox Component Styles
   Used across viewJobDetails, customerapproval, and other approval/proof views
   ========================================================================== */

.job-thumb-carousel {
    position: relative;
    padding: 4px;
    width: 100%;
}

.job-thumb-main-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    max-height: 220px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

.job-thumb-main-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 4px;
}

.job-thumb-main-box img {
    max-height: 180px;
    max-width: 90%;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 4px;
    transition: transform 0.25s ease;
}

.job-thumb-main-box:hover img {
    transform: scale(1.03);
}

.job-thumb-zoom-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(33, 43, 54, 0.75);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    cursor: pointer;
}

.job-thumb-main-box:hover .job-thumb-zoom-badge {
    background: #296671;
    transform: scale(1.12);
}

.job-thumb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #c8dce8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #296671;
    padding: 0;
    transition: all 0.2s ease;
    outline: none !important;
}

.job-thumb-nav-btn:hover {
    background: #296671;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(41, 102, 113, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.job-thumb-nav-btn.prev {
    left: 6px;
}

.job-thumb-nav-btn.next {
    right: 6px;
}

.job-thumb-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 2px;
    font-size: 12px;
    color: #555;
}

.job-thumb-info-bar .badge-count {
    background: #296671;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}

.job-thumb-strip {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 6px 8px 8px 8px;
    margin: 4px auto 0;
    max-width: 100%;
    width: max-content;
    justify-content: flex-start;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.job-thumb-strip::-webkit-scrollbar {
    height: 5px;
}

.job-thumb-strip::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.job-thumb-strip::-webkit-scrollbar-thumb {
    background: #b4d7ee;
    border-radius: 4px;
}

.job-thumb-strip::-webkit-scrollbar-thumb:hover {
    background: #296671;
}

.job-thumb-item {
    width: 46px;
    height: 46px;
    min-width: 46px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    padding: 2px;
    background: #fff;
    transition: all 0.2s ease;
    border: 1px solid #dcdcdc;
    opacity: 0.65;
}

.job-thumb-item:hover {
    opacity: 1;
    border-color: #296671;
}

.job-thumb-item.active {
    border: 2px solid #296671;
    box-shadow: 0 0 6px rgba(41, 102, 113, 0.45);
    opacity: 1;
    transform: scale(1.08);
}

.job-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Lightbox Modal */
.job-thumb-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 30, 0.92);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.job-thumb-lightbox-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: #fff;
    z-index: 100000;
}

.job-thumb-lightbox-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    padding: 0 8px;
    transition: all 0.2s;
}

.job-thumb-lightbox-close:hover {
    opacity: 1;
    color: #ff6b6b;
    transform: scale(1.1);
}

.job-thumb-lightbox-body {
    position: relative;
    width: 90%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-thumb-lightbox-img {
    max-width: 85vw;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.03);
}

.job-thumb-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    outline: none !important;
}

.job-thumb-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.job-thumb-lightbox-nav.prev {
    left: 15px;
}

.job-thumb-lightbox-nav.next {
    right: 15px;
}
