/* Galeria */
.fnd-gallery {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
}

.fnd-gallery.active {
    display: grid;
}

.fnd-gallery-item {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

.fnd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fnd-gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.fnd-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.fnd-lightbox.active {
    display: block;
}

.fnd-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.fnd-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.fnd-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.fnd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.fnd-lightbox-prev,
.fnd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
}

.fnd-lightbox-prev {
    left: 20px;
}

.fnd-lightbox-next {
    right: 20px;
}

/* Panel administracyjny */
.category-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    background: #f0f0f0;
    border-radius: 3px;
}

.delete-category {
    cursor: pointer;
    color: #666;
    margin-left: 5px;
}

.delete-category:hover {
    color: #dc3232;
}

/* Style dla zakładek */
.fnd-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.fnd-gallery-tab {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.fnd-gallery-tab:hover {
    background-color: #e0e0e0;
}

.fnd-gallery-tab.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}
