/* ── Professional Gallery Slider ── */
.bapi-gallery-section {
    background: #f8f8f8;
    padding: 60px 0 70px;
}
.bapi-gallery-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.bapi-gallery-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.bapi-gallery-subtitle {
    text-align: center;
    font-size: 15px;
    color: #888;
    margin-bottom: 36px;
}
/* Main slider */
.bapi-slider-outer {
    position: relative;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.bapi-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.bapi-slide {
    min-width: 100%;
    position: relative;
}
.bapi-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}
.bapi-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
    padding: 32px 28px 18px;
    min-height: 60px;
}
/* Prev / Next arrows */
.bapi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}
.bapi-arrow:hover {
    background: rgba(39,174,97,0.85);
    border-color: #27ae61;
}
.bapi-arrow-prev { left: 14px; }
.bapi-arrow-next { right: 14px; }
/* Slide counter */
.bapi-counter {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 1px;
}
/* Dot indicators */
.bapi-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}
.bapi-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}
.bapi-dot.active {
    background: #27ae61;
    transform: scale(1.3);
}
/* Thumbnail strip */
.bapi-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.bapi-thumbs::-webkit-scrollbar { height: 4px; }
.bapi-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.bapi-thumb {
    flex: 0 0 100px;
    height: 66px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}
.bapi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bapi-thumb.active {
    border-color: #27ae61;
    opacity: 1;
}
/* Responsive */
@media (max-width: 768px) {
    .bapi-slide img { height: 260px; }
    .bapi-thumb { flex: 0 0 72px; height: 48px; }
    .bapi-caption { font-size: 12px; padding: 20px 14px 12px; }
}
