.zbt-simple-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5em;
}

.zbt-simple-gallery img {
    flex: 1 1 auto;
    height: 250px;
    width: auto;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    max-width: 100%;
}

/* --- Carousel Styles --- */
.zbt-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5em;
    direction: ltr;
    user-select: none;
    -webkit-user-select: none;
}

.zbt-carousel-track {
    display: flex;
    width: 100%;
    cursor: grab;
    will-change: transform;
    /* transition is handled in JS for better drag control */
}

.zbt-carousel-track:active {
    cursor: grabbing;
}

.zbt-carousel-item {
    flex: 0 0 33.333%; 
    max-width: 33.333%;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.zbt-carousel-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: 3px;
    display: block;
    pointer-events: none; /* Critical for drag to work on wrapper */
    -webkit-user-drag: none; /* Prevent browser default image dragging */
    user-drag: none;
}

.zbt-carousel-item a {
    display: block;
    width: 100%;
    -webkit-user-drag: none;
}

/* --- Navigation Buttons --- */
.zbt-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.zbt-carousel-wrapper:hover .zbt-carousel-btn {
    opacity: 1;
}

.zbt-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.1);
}

.zbt-prev {
    left: 15px;
    padding-right: 2px;
}

.zbt-next {
    right: 15px;
    padding-left: 2px;
}

/* --- Lightbox Styles (Custom Native-Like) --- */
.zbt-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zbt-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.zbt-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.zbt-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 100000;
}

.zbt-lightbox-close:hover {
    color: #bbb;
}

@media (max-width: 768px) {
    .zbt-carousel-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .zbt-carousel-btn {
        opacity: 1;
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.6);
    }
}

@media (max-width: 480px) {
    .zbt-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .zbt-simple-gallery img {
        height: auto;
        width: 100%;
    }
}