/**
 * Nisbaty public RTL overrides.
 *
 * Loaded after nisbaty-public.css when the site locale is right to left.
 */

body.rtl .nisbaty-project-single,
body.rtl .nisbaty-search-page,
body.rtl .nisbaty-dashboard,
body.rtl .nisbaty-media-gallery,
body.rtl .nisbaty-submit-project {
    direction: rtl;
    text-align: right;
}

body.rtl .nisbaty-project-single ul,
body.rtl .nisbaty-project-single ol,
body.rtl .nisbaty-search-page ul,
body.rtl .nisbaty-search-page ol {
    padding-right: 20px;
    padding-left: 0;
}

body.rtl .project-header,
body.rtl .search-main-row,
body.rtl .nisbaty-media-gallery__head,
body.rtl .detail-item,
body.rtl .stat-item,
body.rtl .metric-item {
    text-align: right;
}

body.rtl .nisbaty-media-gallery__item {
    text-align: center;
}

body.rtl .nisbaty-lightbox__nav--prev {
    left: auto;
    right: 24px;
}

body.rtl .nisbaty-lightbox__nav--next {
    right: auto;
    left: 24px;
}

body.rtl .nisbaty-lightbox__close {
    right: auto;
    left: 24px;
}

body.rtl .nisbaty-media-gallery__view-all,
body.rtl .button i,
body.rtl .nisbaty-project-single .fas,
body.rtl .nisbaty-project-single .far {
    margin-right: 0;
    margin-left: 6px;
}

body.rtl .nisbaty-search-page .search-input-wrapper input {
    padding-right: 40px;
    padding-left: 15px;
}

body.rtl .nisbaty-search-page .search-input-wrapper i {
    left: auto;
    right: 15px;
}

body.rtl .budget-range,
body.rtl .nisbaty-lightbox__caption {
    direction: ltr;
    justify-content: center;
}

body.rtl .nisbaty-search-page .filters-toggle,
body.rtl .nisbaty-search-page .search-header {
    text-align: center;
}

body.rtl .nisbaty-media-gallery__count {
    margin-right: 6px;
    margin-left: 0;
}

body.rtl .nisbaty-template-error,
body.rtl .nisbaty-error-container {
    text-align: center;
}

@media (max-width: 767px) {
    body.rtl .nisbaty-lightbox__nav--prev {
        right: 10px;
        left: auto;
    }

    body.rtl .nisbaty-lightbox__nav--next {
        left: 10px;
        right: auto;
    }

    body.rtl .nisbaty-lightbox__close {
        left: 12px;
        right: auto;
    }
}
