.wwec-lightbox-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.wwec-lightbox-overlay.active{
    display: flex;
}

.wwec-lightbox-content{
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 90%;
}

.wwec-lightbox-image{
    max-width: 90%;
    max-height: 80vh; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.wwec-lightbox-thumbnails{
	display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    overflow-y: hidden; /* Usuwa pionowy pasek przewijania */
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 10px;
    height: auto; /* Usuwa zbędne ograniczenie wysokości */
}

.wwec-lightbox-thumb{
    width: 60px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    border-radius: 5px;
    flex-shrink: 0;
}

.wwec-lightbox-close{
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000;
}

.wwec-lightbox-prev,
.wwec-lightbox-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
}

.wwec-lightbox-prev{
    left: 20px;
}

.wwec-lightbox-next{
    right: 20px;
}

.wwec-lightbox-thumb:hover,
.wwec-lightbox-thumb.active{
    border: 2px solid white;
}

@media (max-width: 600px){
    .wwec-lightbox-thumb{
        width: 50px;
        height: 35px;
    }
}

@media (max-width: 400px){
    .wwec-lightbox-thumb{
        width: 40px;
        height: 30px;
    }
}