/* Keep Bridge's original image, hover, title and category styling intact. */
.ekfrasi-related-shell{position:relative}
.ekfrasi-related-shell .projects_holder_outer{width:100%}
.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track{display:flex!important;gap:2%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;min-width:0;-webkit-overflow-scrolling:touch;text-align:left}
.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track:before,.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track:after{display:none!important}
.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track>article.mix{display:block!important;visibility:visible!important;flex:0 0 23.5%;float:none;min-width:0;margin:0!important;scroll-snap-align:start}
.ekfrasi-related-carousel.is-ready .ekfrasi-related-track{scrollbar-width:none}
.ekfrasi-related-carousel.is-ready .ekfrasi-related-track::-webkit-scrollbar{display:none}
.ekfrasi-related-arrow{position:absolute;top:35%;z-index:5;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:#fff;color:#1b3942;border:1px solid #9aabad;border-radius:50%;cursor:pointer}
.ekfrasi-related-arrow[hidden]{display:none}
.ekfrasi-related-prev{left:-54px}
.ekfrasi-related-next{right:-54px}
.ekfrasi-related-arrow:hover:not(:disabled){background:#1b3942;color:#fff}
.ekfrasi-related-arrow:disabled{opacity:.3;cursor:default}
.ekfrasi-related-arrow:focus-visible,.ekfrasi-related-track:focus-visible{outline:2px solid #1b3942;outline-offset:3px}
.ekfrasi-related-status{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1279px){.ekfrasi-related-prev{left:8px}.ekfrasi-related-next{right:8px}}
@media(max-width:1000px){.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track>article.mix{flex-basis:32%}}
@media(max-width:780px){.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track>article.mix{flex-basis:49%}}
@media(max-width:520px){.ekfrasi-related-carousel .projects_holder.ekfrasi-related-track>article.mix{flex-basis:100%}.ekfrasi-related-arrow{width:36px;height:36px}}

/* Mobile navigation sits centered below the complete cards. */
@media(max-width:780px){
.ekfrasi-related-carousel.has-overflow .ekfrasi-related-shell{display:block!important;padding-bottom:60px}
.ekfrasi-related-carousel.has-overflow .ekfrasi-related-shell>.projects_holder_outer{min-width:0;width:100%}
.ekfrasi-related-carousel.has-overflow .ekfrasi-related-arrow{position:absolute;top:auto;bottom:0;width:36px;height:36px;margin:0;transform:none}
.ekfrasi-related-carousel.has-overflow .ekfrasi-related-prev{left:calc(50% - 44px);right:auto}
.ekfrasi-related-carousel.has-overflow .ekfrasi-related-next{left:calc(50% + 8px);right:auto}
}

@media(min-width:1001px){
body.single-portfolio_page .ekfrasi-portfolio-navigation-wide{clear:both;float:none;box-sizing:border-box;width:100%;max-width:none}
}

/* Keep article card styling; add mobile paging only for multiple articles. */
.ekfrasi-article-navigation{display:none}
@media(max-width:700px){
body.single-portfolio_page .ekfrasi-article-grid.ekfrasi-article-slider{display:flex;align-items:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.single-portfolio_page .ekfrasi-article-slider::-webkit-scrollbar{display:none}
body.single-portfolio_page .ekfrasi-article-slider>.ekfrasi-article-card{flex:0 0 100%;box-sizing:border-box;scroll-snap-align:start}
.ekfrasi-article-navigation:not([hidden]){display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px}
.ekfrasi-article-navigation>.ekfrasi-related-arrow{position:static;top:auto;bottom:auto;left:auto;right:auto;width:36px;height:36px;margin:0;transform:none}
}

/* Services whose main category has no subcategories have no portfolio navigation. */
body.ekfrasi-service-no-subcategories .portfolio_navigation{display:none!important}
