.gallery {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.gallery .gallery-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.gallery .gallery-slider {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}
.gallery .gallery-slider > * {
    flex: 0 0 100%;
    width: 100%;
}
.gallery .gallery-slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--borderradius);
}
.gallery .nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: var(--borderradius);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
}
.gallery .nav-icon.left { left: 10px; }
.gallery .nav-icon.right { right: 10px; }
.gallery .nav-icon:hover:not(.disabled) { 
    background: rgba(0,0,0,0.7); 
    transform: translateY(-50%) scale(1.05); 
}
.gallery .nav-icon.disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}
.gallery .nav-icon i {
    font-size: 24px;
}

.gallery .thumbs_pictures {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
.gallery .thumbs_pictures img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--borderradius);
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    border: 2px solid transparent;
}
.gallery .thumbs_pictures img.active {
    transform: scale(1.2);
    opacity: 1;
}
.gallery .thumbs_pictures img:not(.active) {
    opacity: 0.7;
}
.gallery .thumbs_pictures img:hover:not(.active) {
    transform: scale(1.2);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery .thumbs_pictures img { 
        width: 50px; 
        height: 50px; 
    }
    .gallery .nav-icon { 
        width: 35px; 
        height: 35px; 
    }
    .gallery .nav-icon i {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .gallery .thumbs_pictures { 
        gap: 5px; 
    }
    .gallery .thumbs_pictures img { 
        width: 40px; 
        height: 40px; 
    }
    .gallery .nav-icon { 
        width: 30px; 
        height: 30px; 
    }
    .gallery .nav-icon i {
        font-size: 16px;
    }
}