/* Styl dla kontenerów galerii */
.property-gallery-container,
.product-gallery-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Styl dla elementów galerii (domyślny dla desktopa) */
.property-gallery,
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.property-gallery-item,
.product-gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.property-gallery-item img,
.product-gallery-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.property-gallery-item:hover img,
.product-gallery-item:hover img {
    transform: scale(1.05);
}

/* Styl dla kropek nawigacyjnych (domyślnie ukryte) */
.property-gallery-dots,
.product-gallery-dots {
    display: none;
}

/* Styl dla kropek nawigacyjnych */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #FFFFFF;
}

/* Styl dla karuzeli na urządzeniach mobilnych */
@media (max-width: 768px) {
    /* Styl dla kontenerów galerii */
    .property-gallery-container,
    .product-gallery-container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Styl dla galerii */
    .property-gallery,
    .product-gallery {
        display: block;
        position: relative;
        height: auto;
        overflow: hidden;
        min-height: 500px;
    }
    
    /* Styl dla elementów galerii */
    .property-gallery-item,
    .product-gallery-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        opacity: 0;
        transition: opacity 0.8s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Styl dla aktywnego elementu galerii */
    .property-gallery-item.active,
    .product-gallery-item.active {
        opacity: 1;
        z-index: 1;
        position: relative;
    }
    
    /* Styl dla obrazów */
    .property-gallery-item img,
    .product-gallery-item img {
        width: 75%;
        aspect-ratio: 3/4;
        object-fit: cover;
        object-position: center;
        margin: 0 auto;
    }
    
    /* Styl dla kropek nawigacyjnych */
    .property-gallery-dots,
    .product-gallery-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        padding: 10px;
    }
}
