/* Gallery Cards Slider */
.sk-gallery-cards-container {
    position: relative;
    padding: 0;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
/* Swiper container */
.sk-gallery-cards-container .swiper {
    width: 100%;
    height: 450px;
    max-width: 100%;
    overflow: visible;
}
/* Card slide */
/* Card slide */
.sk-gallery-cards-container .swiper-slide {
    background-color: #fff;
    border-radius: 0; /* Ostre rogi */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    aspect-ratio: 1/1; /* Kwadratowy kształt */
    height: auto; /* Dodane */
}
/* Zoom functionality */
.sk-gallery-image {
    width: 100%;
    height: 100%; /* Zmienione z auto na 100% */
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none; /* Dodane, aby obrazek nie był interaktywny */

}
.sk-gallery-image.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    z-index: 9999;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}
body.has-zoomed-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9990;
}
/* Custom pagination */
.sk-gallery-pagination {
    text-align: center;
    margin-top: 20px;
}
.sk-gallery-prev,
.sk-gallery-next {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.sk-gallery-prev {
    left: -50px;
}
.sk-gallery-next {
    right: -80px;
}
.sk-gallery-prev svg,
.sk-gallery-next svg {
    width: 20px;
    height: 25px;
    z-index:99;
}
.sk-gallery-prev:hover,
.sk-gallery-next:hover {
    background-color:transparent;
    
}
.sk-gallery-prev:focus,
.sk-gallery-next:focus {
    outline: none;
    background-color:transparent;

}
/* Animation effects */
@keyframes cardEntrance {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.sk-gallery-card {
    animation: cardEntrance 0.3s ease forwards;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .sk-gallery-cards-container {
        max-width: 350px;

    }
    .sk-gallery-cards-container .swiper {
        height:250px;
    }
    .elementor-element-ecfdc72{
        overflow-x: hidden; /* Dodaj tę linię */

    }
    
    .sk-gallery-prev svg,
    .sk-gallery-next svg {
        width: 10px;
    }
    
    .sk-gallery-prev {
        left: -80px;
        z-index:99;
    }
    
    .sk-gallery-next {
        right: -80px;
        z-index:99;
    }
}
@media (max-width: 480px) {
    .sk-gallery-cards-container {
        max-width: 280px;
    }
    
  
    
    .sk-gallery-prev svg,
    .sk-gallery-next svg {
        width: 14px;
    }
    
    .sk-gallery-prev {
        left: -34px;
    }
    
    .sk-gallery-next {
        right: -35px;
    }
}