/* Kontener galerii */
.zaune-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Zakładki */
.zaune-tabs {
    display: flex;
    justify-content: center; /* Wycentrowanie przycisków */
    margin-bottom: 20px;
    gap: 10px; /* Odstępy między przyciskami */
}

.zaune-tab-button {
    background: #3173bd;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.zaune-tab-button:hover {
    background: #255a99;
    transform: scale(1.05);
}

.zaune-tab-button.active {
    background: #1e4c81;
}

/* Galeria */
.zaune-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamiczne kolumny */
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Pojedynczy obraz */
.zaune-gallery-item {
    position: relative;
    text-align: center;
}

/* Zdjęcie */
.zaune-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.zaune-gallery-image:hover {
    transform: scale(1.05);
}

/* Chmurka z nazwą zdjęcia */
.zaune-image-title {
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
    display: block;
    text-align: center;
}

/* Lightbox */
.zaune-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.zaune-lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    transition: transform 0.2s ease;
    cursor: zoom-in;
    user-select: none;
}

#zaune-lightbox-caption {
    color: white;
    margin-top: 10px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Przycisk zamknięcia */
.zaune-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.zaune-lightbox-close:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

/* Navigation arrows for zaune lightbox */
.zaune-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(5px);
    z-index: 10000;
}

.zaune-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.zaune-lightbox-prev {
    left: 30px;
}

.zaune-lightbox-next {
    right: 30px;
}

/* Zoom controls for zaune lightbox */
.zaune-zoom-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10001;
}

.zaune-zoom-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.zaune-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.zaune-zoom-btn:active {
    transform: scale(0.95);
}

.zaune-zoom-in {
    font-size: 28px;
}

.zaune-zoom-out {
    font-size: 32px;
    line-height: 1;
}

.zaune-zoom-reset {
    font-size: 22px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .zaune-tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }
    
    .zaune-tab-button {
        padding: 8px 16px;
        font-size: 14px;
        flex: 1;
        min-width: calc(33.333% - 5px);
    }
    
    .zaune-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 5px;
    }
    
    .zaune-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .zaune-lightbox-prev {
        left: 15px;
    }
    
    .zaune-lightbox-next {
        right: 15px;
    }
    
    .zaune-lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 25px;
    }
    
    #zaune-lightbox-caption {
        font-size: 16px;
        padding: 8px;
        margin: 5px 10px 0;
    }
    
    .zaune-zoom-controls {
        top: 15px;
        left: 15px;
        gap: 12px;
    }
    
    .zaune-zoom-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .zaune-zoom-in {
        font-size: 26px;
    }
    
    .zaune-zoom-out {
        font-size: 30px;
    }
    
    .zaune-zoom-reset {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .zaune-tab-button {
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .zaune-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .zaune-lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .zaune-lightbox-prev {
        left: 10px;
    }
    
    .zaune-lightbox-next {
        right: 10px;
    }
    
    .zaune-zoom-controls {
        top: 10px;
        left: 10px;
        gap: 10px;
    }
    
    .zaune-zoom-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .zaune-zoom-in {
        font-size: 24px;
    }
    
    .zaune-zoom-out {
        font-size: 28px;
    }
    
    .zaune-zoom-reset {
        font-size: 18px;
    }
}
