/* =============================================
   BLYSS NEW GALLERY — Specjalny pierwszy folder
   ============================================= */

/* Reset na samej liście galerii */
.blyss-new-gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Każde li domyślnie */
.blyss-new-gallery > li {
    box-sizing: border-box;
    width: 100%;
}

/* ---- Kontener pierwszego folderu ---- */
.blyss-new-gallery .bng-special-folder {
    list-style: none;
    margin: 0 0 26px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ---- Główne zdjęcie ---- */
.bng-main-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #111;
    line-height: 0;
    box-sizing: border-box;
}

.bng-main-image a {
    display: block;
    width: 100%;
    line-height: 0;
}

.bng-main-image img {
    width: 100% !important;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.bng-main-image:hover img {
    transform: scale(1.02);
    opacity: 0.88;
}

/* Overlay z ikoną lupy */
.bng-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

.bng-main-image:hover .bng-main-overlay {
    opacity: 1;
}

.bng-zoom-icon {
    font-size: 42px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1;
}

/* ---- Pasek miniatur ---- */
.bng-thumbs-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

/* Przyciski nawigacyjne */
.bng-nav {
    flex: 0 0 12px;
    width: 12px;
    height: 60px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    user-select: none;
    padding: 0;
    box-sizing: border-box;
}
/* 

.bng-nav:hover {
    background: #8f0e02;
}
 */

.bng-nav:disabled {
    background: #fff;
    cursor: default;
}

/* KLUCZOWE: flex:1 1 0 + min-width:0 + overflow:hidden */
.bng-thumbs-track-outer {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Track — nowrap, bez overflow na zewnątrz */
.bng-thumbs-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 3px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Pojedyncza miniatura */
.bng-thumb-item {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border: 0px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

/*.bng-thumb-item:hover {
    border-color: #BA1305;
    transform: translateY(-2px);
}*/

.bng-thumb-item a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.bng-thumb-item img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.bng-thumb-item:hover img {
    opacity: 0.85;
}

/* Nazwa folderu */
.bng-special-folder .name {
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.blyss-new-gallery .name { color: #bb3523; }

/* =============================================
   Responsywność
   ============================================= */
@media (max-width: 600px) {
    .bng-thumb-item {
        flex: 0 0 64px;
        width: 64px;
        height: 48px;
    }

    .bng-nav {
        flex: 0 0 28px;
        width: 28px;
        height: 48px;
        font-size: 18px;
    }

    .bng-main-image img {
        max-height: 260px;
    }
}
