/*********************************************
 * Module Blog - swipeable gallery on the item
**********************************************/
.twc-blog-gallery {overflow:hidden; position:relative;}

/* Track */
.twc-blog-gallery__track {
    display:flex; overflow-x:auto; overflow-y:hidden;
    scroll-snap-type:x mandatory; overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.twc-blog-gallery__track::-webkit-scrollbar {display:none;}
.twc-blog-gallery__slide {
    flex:0 0 100%; height:100%; background:#e9e9e9;
    scroll-snap-align:start; scroll-snap-stop:always;
}
.twc-blog-gallery__img {display:block; width:100%; height:100%; max-width:none; object-fit:cover;}

/* Arrows */
.twc-blog-gallery__nav {
    display:flex; align-items:center; justify-content:center;
    width:34px; height:34px; min-width:0; padding:0; margin:0;
    border:0; border-radius:50%; background:rgba(255, 255, 255, .92); color:#222;
    box-shadow:0 1px 4px rgba(0, 0, 0, .25); cursor:pointer;
    position:absolute; top:50%; z-index:3; transform:translateY(-50%);
    opacity:0; transition:var(--twc-transition);
}
.twc-blog-gallery__nav--prev {left:12px;}
.twc-blog-gallery__nav--next {right:12px;}
.twc-blog-gallery__nav svg {
    display:block; width:14px; height:14px;
    fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.twc-blog-gallery__nav:hover {background:#fff; transform:translateY(-50%) scale(1.06);}
.twc-blog-gallery__nav:focus-visible {opacity:1; outline:2px solid var(--twc-color-primary); outline-offset:2px;}
.twc-blog-gallery__nav[disabled] {opacity:0 !important; pointer-events:none;}
@media (hover:hover) {
    .twc-blog-gallery:hover .twc-blog-gallery__nav {opacity:1;}
}
@media (hover:none) {
    /* touch devices: swipe, no arrows */
    .twc-blog-gallery__nav {display:none;}
}

/* Dots */
.twc-blog-gallery__dots {
    display:flex; justify-content:center; gap:5px;
    position:absolute; left:0; right:0; bottom:12px; z-index:2; pointer-events:none;
}
.twc-blog-gallery__dots i {
    display:block; width:6px; height:6px; border-radius:50%;
    background:#fff; opacity:.55; box-shadow:0 0 2px rgba(0, 0, 0, .35);
    transition:var(--twc-transition);
}
.twc-blog-gallery__dots i.is-active {opacity:1; transform:scale(1.25);}

@media (prefers-reduced-motion:reduce) {
    .twc-blog-gallery__nav, .twc-blog-gallery__dots i {transition:none;}
}
