/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

.flexy-pills[data-type="thumbs"] {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.flexy-pills[data-type="thumbs"] > ol {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.flexy-pills[data-type="thumbs"] > ol::-webkit-scrollbar {
    display: none;
}

.flexy-pills[data-type="thumbs"] > ol > li {
    /* 5 thumbnail / hàng */
    flex: 0 0 calc((100% - 40px) / 5);
    width: calc((100% - 40px) / 5);
    
    scroll-snap-align: start;
}

/* Mobile: 4 thumbnail */
@media (max-width: 767px) {
    .flexy-pills[data-type="thumbs"] > ol > li {
        flex-basis: calc((100% - 30px) / 4);
        width: calc((100% - 30px) / 4);
    }
}

/* Nút carousel */
.ctech-thumb-prev,
.ctech-thumb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: pointer;
}

.ctech-thumb-prev {
    left: 5px;
}

.ctech-thumb-next {
    right: 5px;
}