/**
* Theme Name: Glaciers
* Description: Adds support for languages written in a Right To Left (RTL) direction.
* See: https://codex.wordpress.org/Right_to_Left_Language_Support
* @package Glaciers
* @since 1.0.1
*/

body {
	direction: rtl;
	unicode-bidi: embed;
}

.skip-link:focus {
	left: auto;
	right: 5px;
}


/* For the main menu */
@media screen and (max-width: 991px) {

	#header1 .navbar-toggler {
		margin-left: 0;
		margin-right: auto;
	}

	.navbar-nav a>span {
		padding-left: 0;
		padding-right: 0.938rem;
	}

	.navbar-nav ul a {
		padding-left: 0;
		padding-right: 1rem;
	}

	.navbar-nav ul ul a {
		padding-left: 0;
		padding-right: 2rem;
	}

	.navbar-nav ul ul ul a {
		padding-left: 0;
		padding-right: 3rem;
	}
}

/* MODALS
==================================================== */

.searchModal-btn {
	border-radius: 0 0 90%;
	left: 0;
	right: auto;
}

.searchModal-btn .svg-icon {
	left: 0;
	right: 0.25rem;
}

.modal {
	right: 0;
}

.modal-backdrop {
	right: 0;
}

/* TYPOGRAPHY & ELEMENTS
==================================================== */
/* Drop cap */
body.rtl .has-drop-cap:not(:focus):first-letter {
  float: right;
  margin: .25rem 0 0 1rem;
}

/* List Styles */
ul,
ol {
  margin: 0 2rem 1.813rem 0;
}

ol {
  margin-left: auto;
  margin-right: 2rem;
}

li>ul,
li>ol {
  margin-left: auto;
  margin-right: 1.25rem;
}

/* Quotes */
blockquote,
.wp-block-quote,
.wp-block-pullquote {
border-left: none;  
  border-right: 0.375rem solid var(--glaciers-secondary);
  margin-right: 0;
  padding-left: 0;
  padding-right: 1.25rem;
  text-align: right;
}

.wp-block-pullquote.alignleft {
    border-right: none;
    border-left: 0.375rem solid var(--glaciers-secondary);
    padding-left: 1.25rem;
}

.wp-block-pullquote.alignleft blockquote {
    text-align: left;
}

/* Tables */
table th,
table td,
.wp-block-table td,
.wp-block-table th {
  text-align: right;
}


/* BLOCKS
==================================================== */

/* Separators - Spacers */
.wp-block-separator.is-style-dots:before {
  padding-left: 0;
}

/* File upload */
.wp-block-file *+.wp-block-file__button {
  margin-left: auto;
  margin-right: -1px;
}

/* CONTENT
   ==================================================== */
#page-header,
#archive-header {
  padding-left: 0;
  padding-right: 1.688rem;
}

#page-header::before,
#archive-header::before {
	right: 0;
    left: auto;
    margin-left: 1rem;
    margin-right: auto;
}

.more-link-wrapper .svg-icon {
  margin-right: auto;
  margin-left: 0.5rem;
  transform: rotate(180deg);
}

.entry-footer .svg-icon {
  margin-right: auto;
  margin-left: 0.25rem;
  position: relative;
    top: 2px;
}

/* COMMENTS
==================================================== */
.comments-title .svg-icon {
  margin-right: auto;
    margin-left: 0.375rem;
    position: relative;
    top: 4px;
}

.comment>.comment {
  margin-left: auto;
  margin-right: 4%;
}

.comment-meta {
  padding-left: 0;
  padding-right: 0.75rem;
}

/* BACK TO TOP MENU
   ==================================================== */
#back-to-top {
	right: auto;
  left: 2rem;
}

/* SOCIAL MENU
   ==================================================== */
#social-nav li {
  margin-left: 0;
  margin-right: 0.5rem;
}   
   

/* BLOG & POST NAVIGATION
   ==================================================== */
.post-navigation .nav-next,
.comment-navigation .nav-next {
  text-align: right;
}

/* MULTI-PAGE NAVIGATION
   ==================================================== */
.multi-page-links a,
.multi-page-links .post-page-numbers {
  margin-right: auto;
  margin-left: 0.188rem;
}
   
/* WIDGETS
==================================================== */

.widget_categories .children a,
.widget_nav_menu .sub-menu a {
	padding-left: 0;
	padding-right: 0.5rem;
}

.widget_categories .children li ul a,
.widget_nav_menu .sub-menu li ul a {
	padding-left: 0;
	padding-right: 1.5rem;
}

.widget_categories .children a:before,
.widget_nav_menu .sub-menu a:before {
	margin-right: 0;
	margin-left: 10px;
}

.featured-media .wp-caption-text {
	padding: 0.25rem 1.5rem 0.125rem 0.75rem;
	left: 0;
	right: auto;
	border-radius: 0 3rem 0 0;
}

/* Calendar widget */
.wp-calendar-nav-prev a,
.wp-calendar-nav-next a {
  margin-right: auto;
  margin-left: 0.125rem;
}

/* Image Widget */
.widget_media_image .wp-caption-text {
	padding: 0.25rem 1.5rem 0.125rem 0.75rem;
	left: 0;
	right: auto;
}

#banner-sidebar .widget_media_image .wp-caption-text {
	padding: 0.25rem 1.75rem 0.125rem 1rem;
}

/* CAPTIONS
==================================================== */
.featured-media .wp-caption-text {
  right: auto;
  left: 1.5rem;
  text-align: right;
}

/* SIDEBARS
==================================================== */
#banner-sidebar .wp-caption-text {
  right: auto;
  left: 4rem;
  padding: 1rem 1.5rem 1rem 1.25rem;
  text-align: left;
}

#banner-sidebar .wp-caption-text::after {
  right: auto;
  left: 0;
  margin-right: 0;
}

/* FORMS
==================================================== */
.wp-block-search__button {
  margin-left: auto;
  margin-right: -1px;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: auto;
  margin-left: 0.5em;
}


/* PLUGINS - FEATHERLIGHT
==================================================== */
.featherlight .featherlight-content .caption {
    left: auto;
    right: 2rem;
}


/* MEDIA QUERIES
==================================================== */
@media (min-width: 768px) {

  .site-footer {
    text-align: right;
  }

	/* Make sure the left stays as the left in RTL */
	.blog-classic-left .blog-sidebar,
	.single-classic-left .blog-sidebar,
	.left-sidebar {
		order: 2;
	}

	/* Make sure the right stays as the right in RTL */
	.blog-classic-right .blog-sidebar,
	.single-classic-right .blog-sidebar,
	.right-sidebar {
		order: -1;
	}
}

/* Medium devices (Medium resolutions, 992px and up) */
@media (min-width: 992px) {
	.navbar-nav>li::after {
		right: 0;
		left: -0.25rem;
	}

	/* Time to show the submenu */
	.navbar-nav li:hover>ul,
	.navbar-nav li:focus>ul {
		left: 0;
		right: auto;
	}

	.navbar-nav ul li:hover>ul,
	.navbar-nav ul li:focus>ul {
		left: 0;
		right: -97%;
	}

	.navbar-nav ul {
		left: 0;
		text-align: left;
	}

	.navbar-nav li.menu-search {
		padding: 0.875rem 0.125rem 0.875rem 0;
	}

	.comment-list ol.children {
		margin-left: 0;
		margin-right: 2rem;
	}

	.navbar-nav>li::after {
		content: none;
	}
  .footer1 .footer-nav {
    justify-content: right;
  }
	.post-author-description {
		text-align: right;
	}
	  /* Post Author Bio */
	  .post-author-info {
		align-items: end;
	  }
}

/* Large devices (large resolutions, 1200px and up) */
@media (min-width: 1200px) {

	.post-navigation .nav-next,
	.comment-navigation .nav-next {
		text-align: left;
	}
}