I have been developing an image gallery that functions perfectly in the English version of the website. Now, I am tasked with replicating the same functionality for another version of the website that requires right-to-left (RTL) direction. However, when I apply the CSS 'direction:rtl', it disrupts the thumbnail script and causes the next/prev navigation to malfunction.
I have attempted various changes, including minor adjustments to the gallery.js file, but none of them have resolved the issue.
I am unsure of how to ensure that the thumbnail carousel works properly with the direction set to 'rtl' for the Arabic version of the website, as Arabic is RTL unlike English which is LTR.
You can view the Fiddle Links here: http://jsfiddle.net/f4XDj/ Updated Link: http://jsfiddle.net/f4XDj/1/
For a sample of the actual gallery, you can check out this link: http://tympanus.net/Tutorials/ResponsiveImageGallery/
Below is a snippet of the HTML code related to the gallery:
<div id="rg-gallery" class="rg-gallery">
<div class="rg-thumbs">
<!-- Elastislide Carousel Thumbnail Viewer -->
<div class="es-carousel-wrapper">
<div class="es-nav">
<span class="es-nav-prev">Previous</span>
<span class="es-nav-next">Next</span>
</div>
<div class="es-carousel">
<ul>
<li><a href="#"><img src="images/thumbs/1.jpg" data-large="images/1.jpg" alt="image01" data-description="From off a hill whose concave womb reworded" /></a></li>
...
// Additional li elements omitted for brevity
...
<li><a href="#"><img src="images/thumbs/24.jpg" data-large="images/24.jpg" alt="image24" data-description="As they did battery to the spheres intend" /></a></li>
</ul>
</div>
</div>
<!-- End Elastislide Carousel Thumbnail Viewer -->
</div><!-- rg-thumbs -->
</div><!-- rg-gallery -->