/* Slider galerii produktów */
.kc-galeria-swiper {
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    border-radius: 4px;
}

.kc-galeria-slide {
    position: relative;
    overflow: hidden;
    height: 500px; /* Stała wysokość dla dużych ekranów */
}

.kc-galeria-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Zapewnia zachowanie proporcji obrazu */
    object-position: center; /* Centruje obraz */
}

/* Mini galeria */
.kc-galeria-thumbs {
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.kc-galeria-thumb {
    position: relative;
    overflow: hidden;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 4px;
    padding: 2px; /* Padding wewnątrz obramowania */
}

.kc-galeria-thumb.swiper-slide-thumb-active {
   border-color: red;
    border-width: 1px;
    border-radius: 0;
}

.kc-galeria-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Miniaturki mają cover dla ładnego wyglądu */
    object-position: center;
    border-radius: 2px; /* Lekkie zaokrąglenie obrazka wewnątrz */
}

/* Strzałki dla mini galerii */
.kc-galeria-thumbs-container {
    position: relative;
    padding: 0 30px; /* Miejsce na strzałki */
}

.kc-galeria-thumbs {
    width: 100%;
}

.kc-galeria-thumbs-prev,
.kc-galeria-thumbs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: #be1522;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.kc-galeria-thumbs-prev {
    left: 0;
}

.kc-galeria-thumbs-next {
    right: 0;
}

/* Dostosowane strzałki nawigacji */
.kc-galeria-swiper .swiper-button-next,
.kc-galeria-swiper .swiper-button-prev {
    color: #ffffff; /* Białe strzałki */
    background-color: #be1522; /* Tło w kolorze firmowym */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.kc-galeria-swiper .swiper-button-next:after,
.kc-galeria-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.kc-galeria-swiper .swiper-button-next:hover,
.kc-galeria-swiper .swiper-button-prev:hover {
    background-color: #d01a28; /* Jaśniejszy odcień przy hover */
}

/* Lightbox styles */
.kc-galeria-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kc-galeria-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.kc-galeria-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.kc-galeria-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.kc-galeria-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.kc-galeria-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(190, 21, 34, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.kc-galeria-lightbox-nav:hover {
    background: rgba(190, 21, 34, 1);
}

.kc-galeria-lightbox-prev {
    left: 20px;
}

.kc-galeria-lightbox-next {
    right: 20px;
}

.kc-galeria-slide {
    cursor: pointer;
}

/* Responsive Styles */
@media (min-width: 1200px) {
    /* Dla dużych ekranów */
    .kc-galeria-slide {
        height: 500px; /* Stała wysokość dla dużych ekranów */
    }
    
    .kc-galeria-thumb {
        height: 80px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    /* Dla mniejszych laptopów */
    .kc-galeria-slide {
        height: 400px; /* Stała wysokość dla średnich ekranów */
    }
    
    .kc-galeria-thumb {
        height: 70px;
    }
}

@media (max-width: 768px) {
    /* Dla tabletów i telefonów */
    .kc-galeria-slide {
        height: 350px; /* Stała wysokość dla tabletów */
    }
    
    .kc-galeria-thumb {
        height: 60px;
    }
}

@media (max-width: 480px) {
    /* Dla małych telefonów */
    .kc-galeria-slide {
        height: 250px; /* Stała wysokość dla małych telefonów */
    }
    
    .kc-galeria-thumb {
        height: 50px;
    }
    
    .kc-galeria-swiper .swiper-button-next,
    .kc-galeria-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .kc-galeria-swiper .swiper-button-next:after,
    .kc-galeria-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}