.tb-gallery-container {
    position: relative;
    width: 100%;
    margin: 30px 0;
}

.carousel_snapjs_wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel_snapjs_wrapper::-webkit-scrollbar {
    display: none;
}

.carousel_snapjs_wrapper .item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.carousel_snapjs_wrapper .item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain; 
    background: #f9f9f9;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.tb-gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tb-gallery-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tb-gallery-indicators .indicator.active {
    background: #333;
    transform: scale(1.2);
}

.tb-gallery-prev, .tb-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.tb-gallery-prev:hover, .tb-gallery-next:hover {
    background-color: rgba(255, 255, 255, 1);
}

.tb-gallery-prev {
    left: 10px;
}

.tb-gallery-next {
    right: 10px;
}
